View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


LinkBack Search this Thread
Old 12-13-2004, 02:30 AM   #1
Registered: Mar 2004
Location: USA - West Coast
Distribution: Mandriva 2009
Posts: 30

Rep: Reputation: 15
Question how to recompile kernel?

I am having the rivafb problem with installing the nvidia drivers, the latest one of course. I am running Mandrake 10.1 Official and get the Warning message when trying to install the nVidia driver. Well, the warning is something to take note of. I simply want to recomplie the kernel without the rivafb driver. I am a bit of a noob to Linux but have gotton just so far. Following is a list of commands I have been through sucessfully without the rivafb. Please complete what I need to finish the recompile.

Note: Using LILO bootloader.

make menuconfig (disabled rivafb)
make dep
make clean
make zImage
make modules

That is as far as I have gotten...

Thanks everyone, cheers

Last edited by rlbewick; 12-13-2004 at 02:40 PM.
Old 12-13-2004, 03:27 AM   #2
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
if you use a recent kernel (2.6 series) then you can run it simply like this (this first step is the menuconfig above, so you know where we start):

make menuconfig (disabled rivafb)
make clean
make all
make modules_install

and you're set. then you get the following files (you sit in the source directory's root at the moment, where you did this):

now you simply copy the files to your /boot (do NOT overwrite existing files; instead, rename these new files a bit like adding -2 to the end of the filename or something so they do not overwrite anything) and after that edit your LILO's config file. locate the section that tells about the current kernel, copy it and paste below the first section (so now you have two identical sections of a kernel and boot options), and then simply alter the lower section so that it points to your newly copied files. save, run lilo (this is important when your booting has changed!) and reboot.

you could have overwritten the older kernel files, and editing LILO's config would have been unnecessary, but this way you're safe - if your new kernel refuses to boot (kernel panic or something) for some reason, you can always reboot the older kernel that still sits in your LILO. nice after you have tested that your newer kernel works, you can safely remove the older kernel from /boot and LILO's config (remember to always re-run lilo after changing the boot config, so lilo recognizes the changes).
Old 12-13-2004, 02:35 PM   #3
Registered: Mar 2004
Location: USA - West Coast
Distribution: Mandriva 2009
Posts: 30

Original Poster
Rep: Reputation: 15

Well, the recompile of the kernel went fine. The nVidia 6629 driver installs without Warning or Error. The downside is... The driver still does not work.


I was able to get the nvidia driver to work, here is how I did it after the kernel was recompiled without 'rivafb'.

First I uninstalled the driver >nvidia-installer --uninstall

Then reinstalled the driver for my kernel >sh --kernel-name=

Finally edited the 'xorg.conf' to add the nvidia driver

That's it! Thanks for your help recompiling the kernel

Last edited by rlbewick; 12-13-2004 at 03:07 PM.
Old 12-14-2004, 02:57 AM   #4
Registered: Mar 2004
Location: USA - West Coast
Distribution: Mandriva 2009
Posts: 30

Original Poster
Rep: Reputation: 15
Well, it was good while it lasted... It seems when I reboot the system it has a problem loading the nvidia kernel module, as before. The problem is fixed by reinstalling the driver. How can I make this permanant so the driver loads correctly at boot time
Old 12-14-2004, 05:46 PM   #5
Registered: Oct 2003
Location: London, ON, Canada
Distribution: Mandriva 2007 Free
Posts: 507

Rep: Reputation: 30
Do #7 on aus9's instructions.

Must do that, or what you describe will happen on newer 2.6 kernels.
Old 12-15-2004, 02:37 AM   #6
Registered: Dec 2004
Location: USA
Distribution: Debian
Posts: 124

Rep: Reputation: 15
I'm having the same problem, disabled riva, recompiled, reinstalled the nvidia driver. It worked once, I started back up now, getting the old error. Changed the modprobe file too by adding nvidia to the end, no dice...hmm


jfi's 2 lines of code there in that script solved it. No idea what it but hey it works

Last edited by Thorium; 12-15-2004 at 02:50 AM.
Old 12-15-2004, 02:14 PM   #7
Registered: Mar 2004
Location: USA - West Coast
Distribution: Mandriva 2009
Posts: 30

Original Poster
Rep: Reputation: 15

Adding the line 'nvidia' to /etc/modprobe.preload did the trick. It seems the nvidia-installer adds a line to the file as 'nvidia-agp' but it seems not to work.

Thanks for your assitance


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to recompile kernel 2.4.21-15.EL zameer_india Linux - Newbie 2 12-24-2004 01:02 AM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
Recompile kernel 2.6 heema Linux - General 3 05-26-2004 10:29 AM
9.2 kernel recompile dukeinlondon Mandriva 3 11-10-2003 06:34 AM
Recompile Kernel ? Amerist Linux - Newbie 5 04-16-2002 04:13 AM

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration