FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-18-2010, 09:22 AM
Jason Filippou
 
Default 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:

jason@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=7&t=2797

Yet my problem's still not been solved. I've also installed the proper
linux-headers package, as can be verified through aptitude:

jason@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-kernel@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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTinrTEtBk7YA8Oc9fbyl5PKskNmlRWd-vsVW--nX@mail.gmail.com">http://lists.debian.org/AANLkTinrTEtBk7YA8Oc9fbyl5PKskNmlRWd-vsVW--nX@mail.gmail.com
 
Old 07-18-2010, 09:51 AM
Sven Joachim
 
Default 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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87k4otp16x.fsf@turtle.gmx.de">http://lists.debian.org/87k4otp16x.fsf@turtle.gmx.de
 
Old 07-18-2010, 01:21 PM
Amax
 
Default 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:
>
> jason@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=7&t=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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: i1uv5g$6te$1@speranza.aioe.org">http://lists.debian.org/i1uv5g$6te$1@speranza.aioe.org
 
Old 07-18-2010, 05:18 PM
Greg Madden
 
Default 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:
>
> jason@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=7&t=2797
>
> Yet my problem's still not been solved. I've also installed the proper
> linux-headers package, as can be verified through aptitude:
>
> jason@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-kernel@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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201007180918.36581.gomadtroll@gci.net">http://lists.debian.org/201007180918.36581.gomadtroll@gci.net
 
Old 07-18-2010, 05:31 PM
Sven Joachim
 
Default 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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87eif0lmrh.fsf@turtle.gmx.de">http://lists.debian.org/87eif0lmrh.fsf@turtle.gmx.de
 
Old 07-18-2010, 07:02 PM
Greg Madden
 
Default 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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201007181102.03679.gomadtroll@gci.net">http://lists.debian.org/201007181102.03679.gomadtroll@gci.net
 
Old 07-18-2010, 07:55 PM
Sven Joachim
 
Default 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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87iq4ck1jh.fsf@turtle.gmx.de">http://lists.debian.org/87iq4ck1jh.fsf@turtle.gmx.de
 

Thread Tools




All times are GMT. The time now is 04:29 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org