Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-06-12, 11:38 PM   #1
johnnyk
Registered User
 
Join Date: Feb 2012
Posts: 9
Default 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
johnnyk is offline   Reply With Quote
Old 02-07-12, 05:49 AM   #2
Gusar
Registered User
 
Join Date: Apr 2006
Posts: 277
Default 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
Gusar is offline   Reply With Quote
Old 02-07-12, 01:47 PM   #3
primerib
Registered User
 
Join Date: Dec 2008
Posts: 128
Default Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5

Quote:
Originally Posted by johnnyk View Post
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.
primerib is offline   Reply With Quote
Old 02-07-12, 02:35 PM   #4
gonzo_s
Registered User
 
Join Date: Mar 2009
Posts: 58
Default 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?
gonzo_s is offline   Reply With Quote
Old 02-07-12, 03:02 PM   #5
towo|
Registered User
 
Join Date: Feb 2007
Posts: 113
Default 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.
towo| is offline   Reply With Quote
Old 02-07-12, 05:38 PM   #6
johnnyk
Registered User
 
Join Date: Feb 2012
Posts: 9
Default Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5

Quote:
Originally Posted by towo| View Post
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 is offline   Reply With Quote
Old 02-07-12, 05:40 PM   #7
johnnyk
Registered User
 
Join Date: Feb 2012
Posts: 9
Default Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5

Quote:
Originally Posted by primerib View Post
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....
johnnyk is offline   Reply With Quote
Old 02-08-12, 05:34 AM   #8
gonzo_s
Registered User
 
Join Date: Mar 2009
Posts: 58
Default 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
gonzo_s is offline   Reply With Quote

Old 02-08-12, 07:21 AM   #9
Rodercot
Registered User
 
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 12
Default 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
Rodercot is offline   Reply With Quote
Old 02-08-12, 07:49 AM   #10
Gusar
Registered User
 
Join Date: Apr 2006
Posts: 277
Default 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.
Gusar is offline   Reply With Quote
Old 02-08-12, 07:53 AM   #11
Rodercot
Registered User
 
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 12
Default 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
Rodercot is offline   Reply With Quote
Old 02-08-12, 11:25 AM   #12
primerib
Registered User
 
Join Date: Dec 2008
Posts: 128
Default Re: Can't install linux binary 290.10 or 295.17 on kernel 3.2.5

Quote:
Originally Posted by gonzo_s View Post
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.
primerib is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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


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