LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-18-2011, 05:23 PM   #1
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
nVidia module problem with compiled kernel


I compiled the brand new 3.0 kernel (rc1) today. After compile and reboot, my nVidia graphics would not load. I tried a 'modprobe nvidia', but it told me that module did not exist. So I tried looking for nvidia.ko, but I knew I could not link it from an older kernel since the nvidia modules are kernel specific. I tried running the binary installer from a tty session, but it told me that I needed the kernel-devel package for my kernel. How do I include a kernel-devel package in my compile, and more importantly, how do I rebuild the nvidia module for my kernel?

PS: I tried restarting akmods from tty, but it told me that I didn't have anything in my build folder in my /usr/src/<kernel version>/lib/modules directory

Thanks

Alex
 
Old 06-18-2011, 10:20 PM   #2
binary_pearl
Member
 
Registered: Jul 2007
Location: Chicago Illinois
Distribution: SLES 10 SP2/SP3, SLES 11 SP1, OpenSUSE, Sabayon, Gentoo, Fedora 14, RHEL 3/4/5/6
Posts: 98
Blog Entries: 3

Rep: Reputation: 23
I would recommend getting the driver from nvidia's web site. Generally I have found that when I have trouble, using the drivers from nvidia end up correcting the issue. When I ran gentoo based systems, I always had to download the latest drivers from nvidia if there were any updates to X.

--Shaun
 
Old 06-18-2011, 10:40 PM   #3
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Original Poster
Rep: Reputation: 38
Thank you for your reply. The problem is, I already have the binary installer for nVidia's drivers from nVidia's site. The installer was telling me that I do not have kernel-devel installed. How can I have a kernel-devel for a self-compiled kernel?

Alex
 
Old 06-19-2011, 01:59 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
How can I have a kernel-devel for a self-compiled kernel ?
Like any other "kernel-devel" : a build + source link to the kernel source ..

/lib/modules/3.0/build -> /usr/src/linux-3.0/
.. where "build" is a symlink to /usr/src/linux-3.0/

I.e. : cd /lib/modules/3.0/ &&
ln -s /usr/src/linux-3.0/ build
&& ln -s /usr/src/linux-3.0/ source

..

Last edited by knudfl; 06-19-2011 at 02:01 AM.
 
Old 06-19-2011, 12:31 PM   #5
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Original Poster
Rep: Reputation: 38
I went and fixed the existing symlinks that were there and changed my kernel source folder because akmods was looking for a different one. I restarted my nVidia drivers installation from tty but it told me that my kernel source was not configured. I had no idea what that meant. I tried to force akmods to build the akmod for nvidia, but it told me that kernel-devel-3.0.0-rc1 wasnot installed, therefore the source rpms could not build because that was a necessity for nvidia-kmod. Is there any other way I can make it recognize a kernel-devel?

Alex
 
Old 06-19-2011, 07:03 PM   #6
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Original Poster
Rep: Reputation: 38
I recompiled the kernel and made sure the symlinks were correct. I tried to run the NnVidia installer again, but it told me that the kernel source was still wrong. So, I looked up my problem on Google and it turns out that there is a patch for this problem. I applied this patch to the nVidia installer like you are supposed to using this page. After patching the driver, I ran the nVidia installer and it built the kernel module, but could not load it because once again, the kernel sources were bad. Anybody actually have this problem with their new kernel?

**edit**

I forgot to mention that I tried to insmod nvidia.ko, but insmod told me that there was an unknown variable or something in the module.

Thanks

Alex

Last edited by abrinister; 06-19-2011 at 10:01 PM.
 
Old 06-20-2011, 08:16 PM   #7
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Original Poster
Rep: Reputation: 38
I decided to stop pursuing this matter because its too much of a hassle. I compiled a 2.6.39 kernel and nVidia graphics modules compile and load just fine. I think as the new kernel matures, as with all new things, people will start supporting it.

Alex
 
  


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
2in1 problem thread. (nvidia kernel module vs X module, and strange workbug phenom) htedrom Linux - Software 15 10-04-2007 10:55 PM
how to find out if a module has been compiled in my kernel? kpachopoulos Linux - General 2 09-17-2005 04:58 PM
NVIDIA module problem - Slackware 10.1 & kernel 2.6.** Vizy Slackware 7 05-20-2005 09:58 AM
install problem: Suse 9.2 AMD64 Nvidia 'forcedeth' kernel module croutonjones SUSE / openSUSE 1 01-16-2005 04:50 PM
2.6.8 kernel compiled, ndiswrapper module not found kersten78 Slackware 2 10-04-2004 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:34 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