[SOLVED] nVidia module problem with compiled kernel
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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?
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.