Unable to load the kernel module 'nvidia.ko' in 2.6.32-5-686 kernel
Hello list, I just installed the new 2.6.32-5-686 kernel and I've been having trouble installing the NVIDIA linux display driver. Usually this process required of me only to download the linux-headers for the relevant kernel release and then running the shell script provided by NVIDIA on their website. I tried doing this with the 190.53 driver, which is an old driver that worked perfectly for me, and the newest 256.35 driver provided by NVIDIA. In both cases, I get the ordinary message about the CC check that failed because the gcc version that was used to compile my kernel was not the same as the one used to compile the driver and I also see the compiling kernel module progress bar filling up to 100%. After this, I get the following message: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was build against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present apd prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in this system is not supported by the NVIDIA LINUX graphics driver release. And after that I'm suggested to check some log files. My gcc version is: ja...@debian:~$ gcc -v | grep version gcc version 4.4.4 (Debian 4.4.4-6) I googled a bit and the most complete solution to the problem that I found was manny's response to this thread: http://forums.debian.net/viewtopic.php?f=7t=2797 Yet my problem's still not been solved. I've also installed the proper linux-headers package, as can be verified through aptitude: ja...@debian:~$ sudo aptitude show linux-headers-2.6.32-5-686 [sudo] password for root: Package: linux-headers-2.6.32-5-686 New: yes State: installed Automatically installed: yes Version: 2.6.32-15 Priority: optional Section: kernel Maintainer: Debian Kernel Team debian-ker...@lists.debian.org Uncompressed Size: 6,885k Depends: linux-headers-2.6.32-5-common (= 2.6.32-15), linux-kbuild-2.6.32, gcc-4.3 Provides: linux-headers, linux-headers-2.6 Description: Header files for Linux 2.6.32-5-686 This package provides the architecture-specific kernel header files for Linux kernel 2.6.32-5-686, generally used for building out-of-tree kernel modules. These files are going to be installed into /usr/src/linux-headers-2.6.32-5-686, and can be used for building modules that load into the kernel provided by the linux-image-2.6.32-5-686 package. Which steps should I follow to compile the NVIDIA driver into the new kernel? Thanks for your time. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktinrtetbk7ya8oc9fbyl5pksknmlrwd-vsvw-...@mail.gmail.com
Re: Unable to load the kernel module 'nvidia.ko' in 2.6.32-5-686 kernel
On Sun, Jul 18, 2010 at 11:22 AM, Jason Filippou jason.filip...@gmail.com wrote: ... Which steps should I follow to compile the NVIDIA driver into the new kernel? Are you using squeeze ? If so I would suggest: http://packages.debian.org/squeeze/nvidia-kernel-dkms - apt-get install nvidia-kernel-dkms I am using module-assistant on my debian lenny box, but this require some tweaking. HTH -- Mathieu -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktimeyaedk0x_hgxyvqsmsyrofuboextwbkknt...@mail.gmail.com
Re: Unable to load the kernel module 'nvidia.ko' in 2.6.32-5-686 kernel
On 2010-07-18 11:22 +0200, Jason Filippou wrote: I just installed the new 2.6.32-5-686 kernel and I've been having trouble installing the NVIDIA linux display driver. Usually this process required of me only to download the linux-headers for the relevant kernel release and then running the shell script provided by NVIDIA on their website. I tried doing this with the 190.53 driver, which is an old driver that worked perfectly for me, and the newest 256.35 driver provided by NVIDIA. I would recommend to use the Debian packages (nvidia-glx etc.) instead. In both cases, I get the ordinary message about the CC check that failed because the gcc version that was used to compile my kernel was not the same as the one used to compile the driver and I also see the compiling kernel module progress bar filling up to 100%. After this, I get the following message: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was build against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present apd prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in this system is not supported by the NVIDIA LINUX graphics driver release. The reason is that a driver such as rivafb/nvidiafb is present…, namely the nouveau module which is new in 2.6.32-5. You need to blacklist it (see modprobe.conf(5) and reboot to get rid of it. If you had used the Debian packages this would not have happened, because the nvidia-kernel-common package blacklists nouveau for you. Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87k4otp16x@turtle.gmx.de
Re: Unable to load the kernel module 'nvidia.ko' in 2.6.32-5-686 kernel
On Sun, Jul 18, 2010 at 10:51 AM, Sven Joachim svenj...@gmx.de wrote: On 2010-07-18 11:22 +0200, Jason Filippou wrote: I just installed the new 2.6.32-5-686 kernel and I've been having trouble installing the NVIDIA linux display driver. Usually this process required of me only to download the linux-headers for the relevant kernel release and then running the shell script provided by NVIDIA on their website. I tried doing this with the 190.53 driver, which is an old driver that worked perfectly for me, and the newest 256.35 driver provided by NVIDIA. I would recommend to use the Debian packages (nvidia-glx etc.) instead. In both cases, I get the ordinary message about the CC check that failed because the gcc version that was used to compile my kernel was not the same as the one used to compile the driver and I also see the compiling kernel module progress bar filling up to 100%. After this, I get the following message: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was build against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present apd prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in this system is not supported by the NVIDIA LINUX graphics driver release. The reason is that a driver such as rivafb/nvidiafb is present…, namely the nouveau module which is new in 2.6.32-5. You need to blacklist it (see modprobe.conf(5) and reboot to get rid of it. If you had used the Debian packages this would not have happened, because the nvidia-kernel-common package blacklists nouveau for you. Sven Or, you can use the sgfxi scrip if you need/want newer drivers than are in squeeze See here: http://techpatterns.com/forums/about933.html Regards, Angus ps I had some problems with the problems with the 32bit compat libs on AMD64 not being install correctly via sgfxi, unfortunately I had to run the nvidia installer again to fix it (ie not via sgfxi) but the script did the blacklisting for me so that helped. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktimhfsdith4vxfbymkb3vb2_jgsnqgjnrdrvv...@mail.gmail.com
[SOLVED] Re: Unable to load the kernel module 'nvidia.ko' in 2.6.32-5-686 kernel
On Sun, Jul 18, 2010 at 12:48 PM, Mathieu Malaterre mathieu.malate...@gmail.com wrote: On Sun, Jul 18, 2010 at 11:22 AM, Jason Filippou jason.filip...@gmail.com wrote: ... Which steps should I follow to compile the NVIDIA driver into the new kernel? Are you using squeeze ? If so I would suggest: http://packages.debian.org/squeeze/nvidia-kernel-dkms - apt-get install nvidia-kernel-dkms I am using module-assistant on my debian lenny box, but this require some tweaking. HTH -- Mathieu Thanks Mathieu, nvidia-kernel-dkms worked like a charm. Marking this solved. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktilasgmuuea9yeprfy4io_gghsfchlrjrjo2j...@mail.gmail.com
Re: Unable to load the kernel module 'nvidia.ko' in 2.6.32-5-686 kernel
On Sun, 18 Jul 2010 11:40:02 +0200, Jason Filippou wrote: Hello list, I just installed the new 2.6.32-5-686 kernel and I've been having trouble installing the NVIDIA linux display driver. Usually this process required of me only to download the linux-headers for the relevant kernel release and then running the shell script provided by NVIDIA on their website. I tried doing this with the 190.53 driver, which is an old driver that worked perfectly for me, and the newest 256.35 driver provided by NVIDIA. In both cases, I get the ordinary message about the CC check that failed because the gcc version that was used to compile my kernel was not the same as the one used to compile the driver and I also see the compiling kernel module progress bar filling up to 100%. After this, I get the following message: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was build against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present apd prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in this system is not supported by the NVIDIA LINUX graphics driver release. And after that I'm suggested to check some log files. My gcc version is: ja...@debian:~$ gcc -v | grep version gcc version 4.4.4 (Debian 4.4.4-6) I googled a bit and the most complete solution to the problem that I found was manny's response to this thread: http://forums.debian.net/viewtopic.php?f=7t=2797 Yet my problem's still not been solved. I've also installed the proper linux-headers package, as can be verified through aptitude: snip Which steps should I follow to compile the NVIDIA driver into the new kernel? Thanks for your time. I found out that the newer NVIDIA drivers no longer have the binary included that allows the install file to integrate with your current kernel. What has to be done now is: ./NVIDIA-Linux-x86-256.35.run -a (automatically accepts the annoying licencing agreement) -e (the expert option will go step-by-step, giving you more control) --use-this-kernel The --use-this-kernel option will produce another NVIDIA install file marked CUSTOM or something similar to differentiate it from the original. Install this new file and you should be good to go. ~A~ -- I may not be smart enough to do everything, but I am dumb enough to try anything. — Geoff Johns Registered Linux User No. 306834 -- /home/agricolae/sigs/dumb_enough.txt -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/i1uv5g$6t...@speranza.aioe.org
Re: Unable to load the kernel module 'nvidia.ko' in 2.6.32-5-686 kernel
On Sunday 18 July 2010 01:22:00 Jason Filippou wrote: Hello list, I just installed the new 2.6.32-5-686 kernel and I've been having trouble installing the NVIDIA linux display driver. Usually this process required of me only to download the linux-headers for the relevant kernel release and then running the shell script provided by NVIDIA on their website. I tried doing this with the 190.53 driver, which is an old driver that worked perfectly for me, and the newest 256.35 driver provided by NVIDIA. In both cases, I get the ordinary message about the CC check that failed because the gcc version that was used to compile my kernel was not the same as the one used to compile the driver and I also see the compiling kernel module progress bar filling up to 100%. After this, I get the following message: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was build against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present apd prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in this system is not supported by the NVIDIA LINUX graphics driver release. And after that I'm suggested to check some log files. My gcc version is: ja...@debian:~$ gcc -v | grep version gcc version 4.4.4 (Debian 4.4.4-6) I googled a bit and the most complete solution to the problem that I found was manny's response to this thread: http://forums.debian.net/viewtopic.php?f=7t=2797 Yet my problem's still not been solved. I've also installed the proper linux-headers package, as can be verified through aptitude: ja...@debian:~$ sudo aptitude show linux-headers-2.6.32-5-686 [sudo] password for root: Package: linux-headers-2.6.32-5-686 New: yes State: installed Automatically installed: yes Version: 2.6.32-15 Priority: optional Section: kernel Maintainer: Debian Kernel Team debian-ker...@lists.debian.org Uncompressed Size: 6,885k Depends: linux-headers-2.6.32-5-common (= 2.6.32-15), linux-kbuild-2.6.32, gcc-4.3 Provides: linux-headers, linux-headers-2.6 Description: Header files for Linux 2.6.32-5-686 This package provides the architecture-specific kernel header files for Linux kernel 2.6.32-5-686, generally used for building out-of-tree kernel modules. These files are going to be installed into /usr/src/linux-headers-2.6.32-5-686, and can be used for building modules that load into the kernel provided by the linux-image-2.6.32-5-686 package. Which steps should I follow to compile the NVIDIA driver into the new kernel? Thanks for your time. to make it work with the stuff from Nvidia's site, 1. Squeeze kernel 2.6.32-5 is configured with gcc 4.3.5 2. gcc that is installed on Squeeze is 4.4.4 4.3.5 3. installing gcc creates a symbolic link to version of gcc-4.4.4 4. gcc is a depend of a few packages, dkms for one, but is not installed by default, or as a depend of the kernel or matching headers. I had to create the symlink : 'ln -s /usr/bin/gcc-4.3 /usr/bin/gcc' 'cat /proc/version' shows the version of gcc that was used 'gcc -v' shows what version of gcc is being used. btw, is this a bug ? -- Peace, Greg -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201007180918.36581.gomadtr...@gci.net
Re: Unable to load the kernel module 'nvidia.ko' in 2.6.32-5-686 kernel
On 2010-07-18 19:18 +0200, Greg Madden wrote: to make it work with the stuff from Nvidia's site, 1. Squeeze kernel 2.6.32-5 is configured with gcc 4.3.5 2. gcc that is installed on Squeeze is 4.4.4 4.3.5 3. installing gcc creates a symbolic link to version of gcc-4.4.4 4. gcc is a depend of a few packages, dkms for one, but is not installed by default, or as a depend of the kernel or matching headers. You have to use gcc-4.3, and linux-headers-2.6.32-5-$flavour depends on it. I had to create the symlink : 'ln -s /usr/bin/gcc-4.3 /usr/bin/gcc' This is wrong and may break at any time: as soon as the gcc package is upgraded, it will overwrite your symlink. Instead, set CC=gcc-4.3 if necessary. 'cat /proc/version' shows the version of gcc that was used 'gcc -v' shows what version of gcc is being used. btw, is this a bug ? No. Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87eif0lmrh@turtle.gmx.de
Re: Unable to load the kernel module 'nvidia.ko' in 2.6.32-5-686 kernel
On Sunday 18 July 2010 09:31:46 Sven Joachim wrote: On 2010-07-18 19:18 +0200, Greg Madden wrote: to make it work with the stuff from Nvidia's site, 1. Squeeze kernel 2.6.32-5 is configured with gcc 4.3.5 2. gcc that is installed on Squeeze is 4.4.4 4.3.5 3. installing gcc creates a symbolic link to version of gcc-4.4.4 4. gcc is a depend of a few packages, dkms for one, but is not installed by default, or as a depend of the kernel or matching headers. You have to use gcc-4.3, and linux-headers-2.6.32-5-$flavour depends on it. I had to create the symlink : 'ln -s /usr/bin/gcc-4.3 /usr/bin/gcc' This is wrong and may break at any time: as soon as the gcc package is upgraded, it will overwrite your symlink. Instead, set CC=gcc-4.3 if necessary. Thanks, what I don't understand though is why when gcc is installed it does a symlink to gcc-4.4, on Squeeze. It could be an issue with using non-Debian sources as they do fail because they look at 'usr/bin/gcc' and whatever it is liked to. lrwxrwxrwx 1 root root 7 July 18 10:46 /usr/bin/gcc - /usr/bin/gcc-4.4 'cat /proc/version' shows the version of gcc that was used 'gcc -v' shows what version of gcc is being used. btw, is this a bug ? No. Sven -- Peace, Greg -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201007181102.03679.gomadtr...@gci.net
Re: Unable to load the kernel module 'nvidia.ko' in 2.6.32-5-686 kernel
On 2010-07-18 21:02 +0200, Greg Madden wrote: Thanks, what I don't understand though is why when gcc is installed it does a symlink to gcc-4.4, on Squeeze. Because gcc-4.4 is the default compiler, but the kernel has been compiled with gcc-4.3 (mainly to avoid regressions that may show up when building the kernel with the newer compiler). That the kernel folks are rather insane and insist on building third-party modules with the same GCC version as the kernel is another problem (consider what would happen if libraries were handled that way). It could be an issue with using non-Debian sources as they do fail because they look at 'usr/bin/gcc' and whatever it is liked to. They should look at the CC environment variable first. I don't quite know if/how Debian's linux-kbuild infrastructure takes care of setting that, but there is a file /usr/src/linux-headers-2.6.32-5-$flavour/.kernelvariables in the linux-headers-2.6.32-5-$flavour package that seems to set CC. Sven -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87iq4ck1jh@turtle.gmx.de