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

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-01-10, 12:46 AM   #1
pbharris
Registered User
 
Join Date: Oct 2002
Location: Chicago,, IL
Posts: 13
Send a message via AIM to pbharris Send a message via Yahoo to pbharris
Default ERROR: Unable to determine the version of the kernel sources located in '/lib/

Hello,
I am trying to get a 2.6.33 kernel up an running and am having issues - it says it can not find the proper version and/or sources - even though they are there. All of the source code is present...
I am currently running a custom 2.6.31.5 kernel. I have tried
NVIDIA-Linux-x86_64-190.42-pkg2.run --kernel-name=2.6.33 -K -a --kernel-source-path=/usr/src/linux-2.6.33


I have also tried NVIDIA-Linux-x86_64-190.53-pkg2.run

Quote:
bugs:/lib/modules/2.6.33# ll /lib/modules/2.6.33/
total 1.5M
lrwxrwxrwx 1 root root 21 2010-02-28 23:08 build -> /usr/src/linux-2.6.33
drwxr-xr-x 10 root root 4.0K 2010-02-28 23:08 kernel
-rw-r--r-- 1 root root 209K 2010-02-28 23:08 modules.alias
<snip>
-rw-r--r-- 1 root root 429K 2010-02-28 23:08 modules.usbmap
lrwxrwxrwx 1 root root 21 2010-02-28 23:08 source -> /usr/src/linux-2.6.33
bugs:/lib/modules/2.6.33# ls /usr/src/linux-2.6.33/include/linux/version.h
/usr/src/linux-2.6.33/include/linux/version.h
bugs:/lib/modules/2.6.33# ls /usr/src/linux-2.6.33/include/linux/kernel.h
/usr/src/linux-2.6.33/include/linux/kernel.h
bugs:/lib/modules/2.6.33#
[/quote]


Quote:
bugs:/lib/modules/2.6.33# ls -l /usr/src/kernels/
total 12K
lrwxrwxrwx 1 root root 15 2010-02-28 16:28 2.6.33 -> ../linux-2.6.33
Quote:
ERROR: Unable to determine the version of the kernel sources located in
'/lib/modules/2.6.33/source'. 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.
pbharris is offline   Reply With Quote
Old 03-02-10, 08:11 PM   #2
rwyarbrough
Registered User
 
Join Date: Mar 2010
Posts: 6
Default Re: ERROR: Unable to determine the version of the kernel sources located in '/lib/

I am having the same problem. I suspect it is either the conftest.sh script or a test function in the nvidia-installer binary file that is not able to parse the version information in order to decide which makefile to use. Looks like a installer bug to me.
rwyarbrough is offline   Reply With Quote
Old 03-03-10, 12:08 AM   #3
pbharris
Registered User
 
Join Date: Oct 2002
Location: Chicago,, IL
Posts: 13
Send a message via AIM to pbharris Send a message via Yahoo to pbharris
Default Re: ERROR: Unable to determine the version of the kernel sources located in '/lib/

Hello,
I am pretty sure you are right - I just verified my process is correct with kernel 2.6.32.3. Thanks rwyarbrough
pbharris is offline   Reply With Quote
Old 03-03-10, 12:43 AM   #4
primerib
Registered User
 
Join Date: Dec 2008
Posts: 128
Default Re: ERROR: Unable to determine the version of the kernel sources located in '/lib/

A couple of things in 2.6.33 such as linux/autoconf.h and linux/utsrelease.h were moved to generated/autoconf.h and generated/utsrelease.h but I don't know if that's related to your problem. I was having problems compiling some things so I symlinked those in linux/ and everything has been fine.
primerib is offline   Reply With Quote
Old 03-03-10, 11:24 AM   #5
Dizzle7677
Registered User
 
Dizzle7677's Avatar
 
Join Date: May 2008
Location: Relativity
Posts: 194
Default Re: ERROR: Unable to determine the version of the kernel sources located in '/lib/

Quote:
Originally Posted by pbharris View Post
Hello,
I am trying to get a 2.6.33 kernel up an running and am having issues - it says it can not find the proper version and/or sources - even though they are there. All of the source code is present...
I am currently running a custom 2.6.31.5 kernel. I have tried
NVIDIA-Linux-x86_64-190.42-pkg2.run --kernel-name=2.6.33 -K -a --kernel-source-path=/usr/src/linux-2.6.33
What distro are you building the kernel for/on?

Look like you have the modules_image installed and built but not the kernel_headers,etc packages and are trying to point to the raw kernel src directory which kind of doesn't make sense,at least to me.

Like primerib said you have to copy the usr/src/linux-2.6.33/include/generated files to usr/src/linux-2.6.33/include/linux. You have to do this while the linux kernel is building, at the moment, otherwise it will fail at the end which looks like what happened in your case. Redo: uninstall the /lib/modules/linux2.6.33,do a make clean from /usr/src/linux* and rebuild.

If it's Debian/Ubuntu-based the make-kpkg would be something like this from the /usr/src/linux-2.6.33 directory.
Code:
sudo make xconfig (copy over the old config-2.6.31.5 in /boot)
sudo make-kpkg --initrd kernel_image kernel_headers modules_image
If need be then you'd have to link the /lib/modules/kernel/source and /build to the header location like so after the Packages(.deb,etc) are installed.
Code:
sudo ln -s /usr/src/linux-headers-2.6.33 /lib/modules/2.6.33/build && sudo ln -s /usr/src/linux-headers-2.6.33 /lib/modules/2.6.33/source
Also you may need to patch the 190.42 binary(4 months old) to get it compiled with linux 2.6.33. Or just use the new 195.36.08 binary which works with 2.6.33 without patching.

Once the new 2.6.33 kernel,etc is built properly,installed and running you shouldn't have any issues.

For extra tips,tricks and bash scripts for kernel building

http://ubuntuforums.org/showthread.php?t=311158
http://ubuntuforums.org/showthread.p...56#post8013356
Dizzle7677 is offline   Reply With Quote
Old 03-03-10, 11:42 AM   #6
rwyarbrough
Registered User
 
Join Date: Mar 2010
Posts: 6
Default Re: ERROR: Unable to determine the version of the kernel sources located in '/lib/

Quote:
Originally Posted by primerib View Post
A couple of things in 2.6.33 such as linux/autoconf.h and linux/utsrelease.h were moved to generated/autoconf.h and generated/utsrelease.h but I don't know if that's related to your problem. I was having problems compiling some things so I symlinked those in linux/ and everything has been fine.
Interesting, this could be a good clue to solving this. Thanks Primerib. I will be reloading 2.6.33, (I went back to 2.6.32.7) creating the symlink, and testing to see if that's the trick.
rwyarbrough is offline   Reply With Quote
Old 03-03-10, 11:53 AM   #7
rwyarbrough
Registered User
 
Join Date: Mar 2010
Posts: 6
Default Re: ERROR: Unable to determine the version of the kernel sources located in '/lib/

Quote:
Originally Posted by Dizzle7677 View Post
What distro are you building the kernel for/on?
Slackware for me

Quote:
Originally Posted by Dizzle7677 View Post
Look like you have the modules_image installed and built but not the kernel_headers,etc packages and are trying to point to the raw kernel src directory which kind of doesn't make sense,at least to me.
I always install the kernel header package, kernel module package,and kernel source as I build a lot of packages and compile a ton of programs.

Quote:
Originally Posted by Dizzle7677 View Post
Once the new 2.6.33 kernel,etc is built properly,installed and running you shouldn't have any issues.
In my case, since I am using the pre-built slackware packages, I have to assume they were built correctly. I suspect this is related to either something changed in the 2.6.33 kernel that is confusing the installer or the installer is having a issue parsing the version information (three version designator segments (2.6.33) vs 4 designator segments (2.6.32.7) Primerib indicated a change in the location of several header files, so I will be adding symlinks and testing to see if that resolves this.
rwyarbrough is offline   Reply With Quote
Old 03-03-10, 12:06 PM   #8
rwyarbrough
Registered User
 
Join Date: Mar 2010
Posts: 6
Default Re: ERROR: Unable to determine the version of the kernel sources located in '/lib/

I also found this off another forum while searching for a solution to this:

Quote:
get mentioned patch and run (WITHOUT root privileges):
sh NVIDIA-Linux-x86-195.30-pkg1.run --apply-patch nvidia-2.6.33.patch.txt
at the end you will get
NVIDIA-Linux-x86-195.30-pkg1-custom.run
package so original file will not be overwritten
then run
sudo sh NVIDIA-Linux-x86-195.30-pkg1-custom.run -N -s

and you are back in business.
NVIDIA-Linux-x86-195.30-pkg1.run has some important performance improvements, so I would suggest to download this beta.
Leads me to believe that NVIDIA is already aware of this and has a patch available.

YMMV.....
rwyarbrough is offline   Reply With Quote

Old 03-03-10, 12:16 PM   #9
rwyarbrough
Registered User
 
Join Date: Mar 2010
Posts: 6
Default Re: ERROR: Unable to determine the version of the kernel sources located in '/lib/

I also found this http://www.nvidia.com/object/linux_d...195.36.08.html

The latest and greatest Linux x64 (AMD64/EM64T) Display Driver (certified) Release Date: 2010.03.03

That's my new plan of attack.... going to try to load that baby up....
rwyarbrough is offline   Reply With Quote
Old 03-03-10, 12:50 PM   #10
rwyarbrough
Registered User
 
Join Date: Mar 2010
Posts: 6
Default Re: ERROR: Unable to determine the version of the kernel sources located in '/lib/

Great News!!! The latest NVIDIA driver installer (195.36.08) works great.

http://www.nvidia.com/object/linux_d...195.36.08.html

Problem Solved!!!!
rwyarbrough is offline   Reply With Quote
Old 03-03-10, 10:52 PM   #11
pbharris
Registered User
 
Join Date: Oct 2002
Location: Chicago,, IL
Posts: 13
Send a message via AIM to pbharris Send a message via Yahoo to pbharris
Default Re: ERROR: Unable to determine the version of the kernel sources located in '/lib/

hey Dizzle7677 - i am running Fedora 11 - but not with a packaged kernel - and now with the new NV drivers - 195.36.08 - things are working very nicely.

Thanks all!
pbharris 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 10:20 AM.


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