LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-14-2004, 04:17 PM   #1
AVD_ZM
Member
 
Registered: Oct 2004
Location: HELLAS aka Greece
Distribution: K/Ubuntu Knoppel
Posts: 114

Rep: Reputation: 15
how2 recompile kernel 4 nvidia drivers


how do i recompile the kernel?

i need to remove riva

i need to install my nvidia drivers.

oh n detailed instructions, thanx a lot
 
Old 11-14-2004, 04:32 PM   #2
predator.hawk
Member
 
Registered: Aug 2004
Location: USA
Distribution: FreeBSD-5.4-STABLE
Posts: 252

Rep: Reputation: 30
First, you'll proble want the vanvilla sources for the kernel as there alot less bloated. from there extract the kernel source in /usr/src/. then cd to /usr/src/linux-2.X.X. type make menuconfig. Goto console drivers (i'm on 2.4, it might have chances in 2.6), goto framebuffer and remove the rive module. save and exit. then type make && make modules && make modules_install && make install wait for that to finish and you'll then need to edit /etc/grub.conf.
 
Old 11-15-2004, 01:46 AM   #3
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
There're many how-to on this subject if you search the internet.. you do not need to recompile the kernel.. but you still need to have the kernel source.. here are the steps that I did to install the nvidia driver:
Code:
Pre-requisites:
1. You need to have development system installed
2. You need to have the most recent kernel source

Steps:
1. Go to console 1 (ctl-alt-f1)
2. Logon as root
3. Shutdown X by going to runlevel 3 
    # init 3
4. Go to kernel source directory 
    # cd /usr/src/
5. If your kernel source is not in /usr/src/linux, you need to symbolicly link the source directory to that..
    # ln -s /usr/src/linux-2.6.9 /usr/src/linux
6. Change directory to /usr/src/linux and do make oldconfig
    # cd /usr/src/linux
    # make oldconfig
7. Go to the directory where you have your nvidia driver
    # sh NVIDIA-Linux-x86-1.0-6629-pkg1.run
8. Just go through the steps there and let the system compile the new nvidia driver and ignore the riva warning messages.
9. Edit your /etc/X11/xorg.conf
    - Remove the 'Load "dri"' line (or add # at the front of the line)
    - Change the 'Driver "nv"' to 'Driver "nvidia"'.
10. If your nvidia driver is not loaded automatically, issue the following command
     # modprobe nvidia
11. Do the following to fix the UDEV problem 
     # cp /dev/nvidia* /etc/udev/devices
12. Reboot the system (no idea if it will work w/o a rebooting though).
 
Old 11-15-2004, 08:20 AM   #4
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
AVD_ZM, If it helps I am using the most current NVIDIA drivers w/ FC3 and I am not having any trouble. I didn't remove the FB_RIVA from my kernel and it is working fine.
 
Old 11-15-2004, 07:00 PM   #5
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
For Fedora 1, 2 and 3, you do NOT need to recompile the kernel to install the Nvidia drivers.

If you wish to recompile, look at my kernel notes for some tips. I made a note about the Nvidia drivers.

As for Fedora Core 3, I did NOT need the kernel source to install the Nvidia driver. In fact the kernel source is not included on the 4 install CD's.
 
Old 11-16-2004, 01:24 AM   #6
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
Quote:
Originally posted by mjmwired
As for Fedora Core 3, I did NOT need the kernel source to install the Nvidia driver. In fact the kernel source is not included on the 4 install CD's.
Ah, thanks for pointing that out .. I downloaded the kernel source when installing my nvidia driver because that was the prerequisit before (FC1/FC2)..
 
Old 12-09-2004, 02:17 AM   #7
rhinoss
LQ Newbie
 
Registered: Dec 2004
Location: Kansas
Distribution: Fedora, Mac OS X, WinXP
Posts: 19

Rep: Reputation: 0
This might be a simple question to answer, although I'm having a difficult time understanding not having to recompile the driver.

If you are not recompiling the driver, or removing the riva module in some way, how are you insuring that the new driver isn't conflicting with the riva module?
Can somebody please explain further?

I am getting the same error while trying to install the driver after using apt-get to install the 2.6.9-681_FC3 driver from freshrpms.net.
 
Old 12-11-2004, 02:10 PM   #8
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
The "riva error" is NOT AN ERROR, it is merely a warning. If you load *both* drivers at the same time, they conflict. Understand? The 'nvidia' driver will not function properly if you have loaded the 'rivafb'. That being said, the 'rivafb' module is NOT loaded automatically (well in most cases), so, as long as you don't load it, there is NO problem.

You aren't very clear, you say "recompile the driver"? You mean kernel? When the kernel is compiled the riva SUPPORT is in there, the nvidia installer only detects that support, and issues a warning.

I've installed the nvidia driver dozens of times on kernels with the riva support included, I've never had problems.
 
Old 12-11-2004, 02:34 PM   #9
rhinoss
LQ Newbie
 
Registered: Dec 2004
Location: Kansas
Distribution: Fedora, Mac OS X, WinXP
Posts: 19

Rep: Reputation: 0
Thanks for the reply, that is exactly as I expected. I just needed to be 100% sure.
After I posted that I was able to verify the driver to work correctly.

When I compiled my last kernel I did have riva support included as a module, I was essentially asking if this would pose a problem when installing the nvidia supplied driver.

In my previous reply,I did mean kernel, although I had typed driver. I'm sorry about not being entirely clear. Upon reading my post again today it was extremely difficult to understand. I had been working on this box far too long at that point and wasn't thinking clearly.

I do appreciate the reply, thanks again.
 
Old 12-25-2004, 02:44 PM   #10
Adrohak
Member
 
Registered: Jun 2004
Location: Florida
Distribution: Gentoo
Posts: 148

Rep: Reputation: 15
Quote:
Originally posted by predator.hawk
Goto console drivers (i'm on 2.4, it might have chances in 2.6), goto framebuffer and remove the rive module.
I'm having the rivafb/nvidia collision.. I went to recompile my kernel, and under "Console Drivers" exists only: "VGA Text Console" and "Video mode selection support." Neither setting both of these on nor setting both of them off (nor any other combination) provides me a menu for "framebuffer."

I'm using the kernel-source-2.4.22-noarch-3 package from Slackware 9.1; should I download the vanilla source and start from a clean source? (I would really rather not. :-o )

Last edited by Adrohak; 12-25-2004 at 02:46 PM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nvidia drivers and kernel? Shady195 Linux - Newbie 11 10-22-2005 04:30 AM
Kernel recompile -> drivers get messed ar1 Linux - General 2 12-28-2004 10:11 PM
Should I recompile kernel 2.4.7 to remove rivafb in order to solve Nvidia issues? jtp51 Slackware - Installation 2 10-06-2004 11:10 AM
Kernel recompile for NVIDIA needed .h files? britishnemesis Linux - General 2 11-03-2003 01:43 AM
kernel recompile & hw "drivers" Jebiveter Slackware 1 10-15-2003 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:35 PM.

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