LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Unable to install NVIDIA driver 195.36.24 after kernel upgrade (https://www.linuxquestions.org/questions/debian-26/unable-to-install-nvidia-driver-195-36-24-after-kernel-upgrade-805813/)

colotd 05-04-2010 06:04 AM

Unable to install NVIDIA driver 195.36.24 after kernel upgrade
 
After upgrading kernel package to 2.6.32-5 NVIDIA installation gave me
ERROR:Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built 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 and 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 this NVIDIA Linux graphics driver release.

Here is /var/log/nvidia-installer.log:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue May 4 11:49:38 2010
installer version: 1.0.7

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
no X server check : false
no cc version check : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
compat32 install chroot : (not specified)
compat32 install prefix : (not specified)
compat32 install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 195.36.24.
-> There appears to already be a driver installed on your system (version: 195.
36.15). As part of installing this driver (version: 195.36.24), the existin
g driver will be uninstalled. Are you sure you want to continue? ('no' will
abort installation) (Answer: Yes)
-> Performing CC sanity check with CC="/usr/bin/gcc-4.3".
-> Performing CC version check with CC="/usr/bin/gcc-4.3".
-> Kernel source path: '/lib/modules/2.6.32-5-amd64/source'
-> Kernel output path: '/lib/modules/2.6.32-5-amd64/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
/scripts/modu
le-common.lds --build-id -o /tmp/selfgz3053/NVIDIA-Linux-x86_64-195.36.24-pk
g2/usr/src/nv/nvidia.ko /tmp/selfgz3053/NVIDIA-Linux-x86_64-195.36.24-pkg2/u
sr/src/nv/nvidia.o /tmp/selfgz3053/NVIDIA-Linux-x86_64-195.36.24-pkg2/usr/sr
c/nv/nvidia.mod.o
NVIDIA: left KBUILD.
-> done.
-> Kernel module compilation complete.
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built 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 and 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 this NVIDIA Linux graphics
driver release.

Please see the log entries 'Kernel module load error' and 'Kernel
messages' at the end of the file '/var/log/nvidia-installer.log' for
more information.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
-1 No such device
-> Kernel messages:
[ 46.366003] Bluetooth: HCI socket layer initialized
[ 46.409098] Bluetooth: L2CAP ver 2.14
[ 46.409100] Bluetooth: L2CAP socket layer initialized
[ 46.456142] Bluetooth: RFCOMM TTY layer initialized
[ 46.456146] Bluetooth: RFCOMM socket layer initialized
[ 46.456148] Bluetooth: RFCOMM ver 1.11
[ 46.457761] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 46.457763] Bluetooth: BNEP filters: protocol multicast
[ 46.476805] Bridge firewalling registered
[ 46.523095] Bluetooth: SCO (Voice Link) ver 0.6
[ 46.523097] Bluetooth: SCO socket layer initialized
[ 48.447075] sky2 eth1: enabling interface
[ 48.447554] ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 48.661315] lp: driver loaded but no devices found
[ 48.671799] ppdev: user-space parallel port driver
[ 441.444378] nvidia: module license 'NVIDIA' taints kernel.
[ 441.444381] Disabling lock debugging due to kernel taint
[ 441.938713] NVRM: The NVIDIA probe routine was not called for 1
device(s).
[ 441.938716] NVRM: This can occur when a driver such as rivafb, nvidiafb
or
[ 441.938718] NVRM: rivatv was loaded and obtained ownership of the NVIDIA
[ 441.938719] NVRM: device(s).
[ 441.938721] NVRM: Try unloading the rivafb, nvidiafb or rivatv kernel
module
[ 441.938722] NVRM: (and/or reconfigure your kernel without rivafb/nvidiafb
[ 441.938723] NVRM: support), then try loading the NVIDIA kernel module
again.
[ 441.938726] NVRM: No NVIDIA graphics adapter probed!
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.

Any ideas??????

pixellany 05-04-2010 06:12 AM

Just guessing...

When you updated the kernel, did you also update the kernel headers?

I'm assuming that you are running the NVidia installer (which compiles the driver against the current kernel headers). If the headers don't match the current kernel, then things will not go well.....

colotd 05-04-2010 06:20 AM

Yes, full upgrade with debs....

colotd 05-04-2010 06:23 AM

My distro is sid and all worked excelent with old kernel 2.6.32-3 and NVIDIA 195.36.15.

pixellany 05-04-2010 06:34 AM

The good news: NVidia supplies a Linux driver

The bad news: It changes constantly. I have had occassions where I could not use the latest driver with a particular kernel.

My system (Arch) supplies binaries of the NVidia driver. For the 2.6.33 kernel, they are offering nvidia 195.36.15

If that version worked for you previously, you might try it again.

colotd 05-04-2010 06:56 AM

I tryed and problem is steel here. I think thet is some problem with kernel....

craigevil 05-04-2010 07:04 AM

Try using smxi.

pixellany 05-04-2010 07:08 AM

I just glanced at that site and it is not obvious to me how it is relevant to installing an NVidia driver.

the trooper 05-04-2010 02:35 PM

Quote:

Originally Posted by pixellany (Post 3956740)
I just glanced at that site and it is not obvious to me how it is relevant to installing an NVidia driver.

Smxi is a console run script that will install the Nvidia driver for you,as well as many other tasks.
Very easy to use.

craigevil 05-04-2010 11:24 PM

195.36.24 installed just fine here using smxi. Fully upgraded Debian sid with a liquorix kernel.

System: Host craigevil Kernel 2.6.33-3.dmz.2-liquorix-686 i686 (32 bit) Distro Debian GNU/Linux squeeze/sid
CPU: Single core Intel Pentium 4 (UP) cache 1024 KB flags (lm nx sse sse2 sse3) bmips 5586.19
Clock Speeds: (1) 2793.096 MHz (2) 2793.096 MHz
Graphics: Card nVidia G96 [GeForce 9400 GT] X.Org 1.7.7 Res: 1280x1024@50.0hz
GLX Renderer GeForce 9400 GT/PCI/SSE2 GLX Version 3.2.0 NVIDIA 195.36.24 Direct Rendering Yes

colotd 05-05-2010 06:26 AM

Unable to install NVIDIA driver 195.36.24 after kernel upgrade- solved
 
Thanks to all for helping me.
It seems that problem is compiler version. My compiler version is gcc-4.4, compiler version used to build deb package of kernel 2.6.32-5 is gcc-4.3. Finally i decided to build my own deb package of kernel 2.6.33.3 using gcc-4.4. After all i install new kernel deb package (image and headers) and installation of NVIDIA driver 195.36.24 pass without any problem.
My system:sid_64 bit;kernel 2.6.33.3; NVIDIA driver 195.36.24
Intel Quad 9450;8GB RAM;
NVIDIA Quadro 3700; X.Org.1.7.7; ASUS VH242H res.:1920x1080;
Finally my system speed increase 10-15%, apps speed increase 10-20% (SALOME, ELMER, VARICAD, GMSH, SCILAB....etc...)and all work fine.
Another way is to change CC environment variable but is bug-i work. I did not try smxi because is not debian way.

craigevil 05-05-2010 07:04 AM

Quote:

Originally Posted by colotd (Post 3957934)
Thanks to all for helping me.
I did not try smxi because is not debian way.


Neither is installing using the Nvidia installer. Which btw is what smxi uses. But each to his/her own. Glad you finally got it working.

gradinaruvasile 05-06-2010 02:51 AM

Quote:

Originally Posted by colotd (Post 3957934)
Thanks to all for helping me.
It seems that problem is compiler version. My compiler version is gcc-4.4, compiler version used to build deb package of kernel 2.6.32-5 is gcc-4.3. Finally i decided to build my own deb package of kernel 2.6.33.3 using gcc-4.4. After all i install new kernel deb package (image and headers) and installation of NVIDIA driver 195.36.24 pass without any problem.
My system:sid_64 bit;kernel 2.6.33.3; NVIDIA driver 195.36.24
Intel Quad 9450;8GB RAM;
NVIDIA Quadro 3700; X.Org.1.7.7; ASUS VH242H res.:1920x1080;
Finally my system speed increase 10-15%, apps speed increase 10-20% (SALOME, ELMER, VARICAD, GMSH, SCILAB....etc...)and all work fine.
Another way is to change CC environment variable but is bug-i work. I did not try smxi because is not debian way.

I just installed gcc-4.3 and set it as default gcc until i installed the driver. Then linked back gcc-4.4.


All times are GMT -5. The time now is 07:48 PM.