View Single Post
Old 04-07-09, 08:01 AM   #8
microcris
Registered User
 
Join Date: Apr 2005
Posts: 12
Default Re: 2.6.29 Debian is breaking NVIDIA (and other kernel module packages)

Quote:
Originally Posted by Asriazh View Post
It's pretty simple to fix. Grab your Nvidia driver package, like "NVIDIA-Linux-x86-180.44-pkg0.run" for example and extract it with "./NVIDIA-Linux-x86-180.44-pkg0.run -x". Then do "cd NVIDIA-Linux-x86-180.44-pkg0/usr/src/nv" and open "nv.c" there.
Locate all instances of code mentioning "owner" like ".owner = THIS_MODULE," and comment it out by using /* */ like this for example "/*.owner = THIS_MODULE,*/". Save the result and install the driver by going into the "NVIDIA-Linux-x86-180.44-pkg0" folder the extraction created and use "./nvidia-installer" to compile and install the kernel module against the 2.6.29 kernel source. This works with the ALSA module too.

-Asriazh
I made what you said but had no luck :S

Code:
ERROR: The kernel header file
       '/lib/modules/2.6.29-1-amd64/build/include/linux/kernel.h' does not
       exist.  The most likely reason for this is that the kernel source path
       '/lib/modules/2.6.29-1-amd64/build' is incorrect.  Please make sure you
       have installed the kernel source files for your kernel and that they are
       properly configured; on Red Hat Linux systems, for example, be sure you
       have the 'kernel-source' or 'kernel-devel' RPM installed.  If you know
       the correct kernel source files are installed, you may specify the
       kernel source path with the '--kernel-source-path' command line option.
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.
it fails to build the module because the installer can't find the kernel headers...
From what I read, nvidia installer needs to use kbuild instead looking for headers in /lib/modules/<version>/build/
microcris is offline   Reply With Quote