|
|
#1 | |
|
Registered User
Join Date: Feb 2012
Posts: 9
|
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 |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Apr 2006
Posts: 277
|
If it's the same issue as with 3.3-rc, there's a patch: http://www.nvnews.net/vbulletin/showthread.php?t=172490
|
|
|
|
|
|
|
#3 | |
|
Registered User
Join Date: Dec 2008
Posts: 128
|
Quote:
|
|
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Mar 2009
Posts: 57
|
Sorry, but the link in that post doesn't work. Could you post here the patch, if you have it of course?
![]() |
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Feb 2007
Posts: 113
|
There is no patch needed for kernel 3.2.x.
|
|
|
|
|
|
#6 | |
|
Registered User
Join Date: Feb 2012
Posts: 9
|
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. |
|
|
|
|
|
|
#7 |
|
Registered User
Join Date: Feb 2012
Posts: 9
|
|
|
|
|
|
|
#8 |
|
Registered User
Join Date: Mar 2009
Posts: 57
|
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
![]() |
|
|
|
|
|
#9 |
|
Registered User
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 12
|
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 |
|
|
|
|
|
#10 |
|
Registered User
Join Date: Apr 2006
Posts: 277
|
Copying headers around seems very hackish to me. Patching the build script is by far the more correct solution.
|
|
|
|
|
|
#11 |
|
Registered User
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 12
|
Agreed, but I tried two separate patches and they would not work for me.
Dave |
|
|
|
|
|
#12 | |
|
Registered User
Join Date: Dec 2008
Posts: 128
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
|
|