nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Can't install linux binary 290.10 or 295.17 on kernel 3.2.5 (http://www.nvnews.net/vbulletin/showthread.php?t=173612)

johnnyk 02-06-12 11:38 PM

Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
Hi,

I've recently upgraded my kernel to the current stable 3.2.5 and am getting:

ERROR: If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.........


Is this due to the driver not recognising the version 3 kernel correctly? If so, is there a patch available?

FYI kernel sources are installed correctly and linked to /usr/src/linux

Gusar 02-07-12 05:49 AM

Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
If it's the same issue as with 3.3-rc, there's a patch: http://www.nvnews.net/vbulletin/showthread.php?t=172490

primerib 02-07-12 01:47 PM

Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
Quote:

Originally Posted by johnnyk (Post 2526573)
Hi,

I've recently upgraded my kernel to the current stable 3.2.5 and am getting:

ERROR: If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.........


Is this due to the driver not recognising the version 3 kernel correctly? If so, is there a patch available?

FYI kernel sources are installed correctly and linked to /usr/src/linux

Strange.. I just compiled kernel 3.2.5 here and installed 290.10 without any problems at all. I didn't use any patch or 'fix' of any kind.

gonzo_s 02-07-12 02:35 PM

Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
Sorry, but the link in that post doesn't work. Could you post here the patch, if you have it of course? :)

towo| 02-07-12 03:02 PM

Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
There is no patch needed for kernel 3.2.x.

johnnyk 02-07-12 05:38 PM

Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
Quote:

Originally Posted by towo| (Post 2526771)
There is no patch needed for kernel 3.2.x.

Well I beg to differ! Like I said, tested with 3.2.5 and the install FAILS!

After applying the patch, I was able to install the driver!

FYI - I managed to get this snippet from a cached copy of the previously posted link (thank you):


Extract the nvidia installer package with -x as argument passed to the sh package then go in the folder it was extracted to (should be /tmp)

Then go to the kernel sub folder and open the conftest.sh search for

CFLAGS=”$CFLAGS -I$SOURCES/arch/x86/include” and replace it with CFLAGS=”$CFLAGS -I$SOURCES/arch/x86/include -I$SOURCES/arch/x86/include/generated”

this way the files needed for the conftest will be included and it will succeed.

johnnyk 02-07-12 05:40 PM

Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
Quote:

Originally Posted by primerib (Post 2526718)
Strange.. I just compiled kernel 3.2.5 here and installed 290.10 without any problems at all. I didn't use any patch or 'fix' of any kind.

Did you use a vanilla kernel? I downloaded mine from kernel.org... running Ubuntu 10.10....

gonzo_s 02-08-12 05:34 AM

Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
I confirm the error. I'm running Debian Squeeze (the latest stable) with a backported 3.2.1 kernel and I can't compile the driver. I've also tried vanilla kernel using stable and beta NVidia drivers. All in vain. Every time I compile the latest kernel I have to compile it as version 2.6.40 :(

Rodercot 02-08-12 07:21 AM

Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
This is what I had to do after installing 3.3rc1 or rc2 via debs from mainline - obviously you will have to ammend the proper paths and you need sudo on the 2nd line. I got this from the ubuntu precise testing forums.


cd /usr/src/linux-headers-3.3.0-030300rc1-generic/arch/x86/include
cp generated/asm/unistd*.h ./asm

here is the thread I got the above from there are some other ideas in it as well if the the above is not working.

http://ubuntuforums.org/showthread.php?t=1911985&page=2

The driver for me still complains about my gcc version being 4.6 instead of 4.4 but seems to build and install fine I also set this up AFTER installing and removing nvidia-current from x-swat, but none would install before doing the above.


Dave

Gusar 02-08-12 07:49 AM

Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
Copying headers around seems very hackish to me. Patching the build script is by far the more correct solution.

Rodercot 02-08-12 07:53 AM

Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
Agreed, but I tried two separate patches and they would not work for me.

Dave

primerib 02-08-12 11:25 AM

Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5
 
Quote:

Originally Posted by gonzo_s (Post 2526929)
I confirm the error. I'm running Debian Squeeze (the latest stable) with a backported 3.2.1 kernel and I can't compile the driver. I've also tried vanilla kernel using stable and beta NVidia drivers. All in vain. Every time I compile the latest kernel I have to compile it as version 2.6.40 :(

I can't speak for Debian Stable, but 290.10 compiles fine on Debian Testing using a vanilla kernel 3.2[.x] from kernel.org.


All times are GMT -5. The time now is 06:28 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.