Nvidia driver package refuse to cooperate with kernel sources
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Nvidia driver package refuse to cooperate with kernel sources
I'm using Slackware 13.0 on rather old PC with old Riva TNT2 video card.
Default driver is "nv". Everything work fine, but without hardware 2D acceleration under X.
After studying various manuals I
1. downloaded Nvidia binary package suitable for my video card.
2. Recompile kernel without Riva framebuffer support.
3. Start Nvidia script.
Script said: "Error: unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured...""
Kernel sources are in /usr/src/linux-2.6.29.6
I have all kernel packages installed.
I was trying various switches for script in order to show the right path - nothing! 8(((
Some people say that Nvidia script don't like 4th digit in a kernel's name and get it from "uname -r" output. Can I change it somehow?
nvidia-driver System 195.36.15 13.0
nvidia-kernel System 195.36.15 13.0
nvidia-legacy173-driver System 173.14.25 13.0
nvidia-legacy173-kernel System 173.14.25 13.0
nvidia-legacy96-driver System 96.43.16 13.0
nvidia-legacy96-kernel System 96.43.16 13.0
As for the 4th digit in kernel's name -- I have never found this to be a problem. However, to circumvent this problem if it is occurring, why not symlink your kernel sources folder to "linux" like in the old days?
Code:
ln -s /usr/src/linux-2.6.29.6 /usr/src/linux
That should eliminate any problems with the digits.
Yours is not the first thread about a problem with the nvidia drivers and the latest Slackware(s) - I don't know if everyone is having the exact same troubles, and I myself have not had these troubles using recent drivers with Slackware, but if my suggestion doesn't help, and you've tried ChrisAbela's suggestion(s) above to no avail, please search LQ a little bit for threads very similar to yours, and see if resolutions can be found there.
It might be that nvidia's older drivers of certain vintage, have not all been updated/patched for the newest kernels, and will continue to cause problems with certain versions..
Also, for the record: I have an old machine here containing a Riva TNT card, and from what I remember about messing with drivers for it, there wasn't really much to gain by installing the binary driver. I think I just ended up using the vesa driver for that. Your case may be different; by all means try it out - but don't expect awesome video performance
nvidia-driver System 195.36.15 13.0
nvidia-kernel System 195.36.15 13.0
nvidia-legacy173-driver System 173.14.25 13.0
nvidia-legacy173-kernel System 173.14.25 13.0
nvidia-legacy96-driver System 96.43.16 13.0
nvidia-legacy96-kernel System 96.43.16 13.0
Try them
Yes, I know about this site, but there is no info about supported video cards on this page. Nevertheless, I'll try. Thank you!
you want the 71.86.13 driver, which is allegedly the latest version to support your TNT2 card. Unfortunately the list shown by ChrisAbela does not show this version, so there may or may not be a SlackBuild for it at SBo.
However I would think it not too complex to modify a SlackBuild for a different version of driver, with a little work (I've never used a SlackBuild to install the binary driver, so please don't quote me on this! )
Last edited by GrapefruiTgirl; 08-03-2010 at 05:40 AM.
As for the 4th digit in kernel's name -- I have never found this to be a problem. However, to circumvent this problem if it is occurring, why not symlink your kernel sources folder to "linux" like in the old days?
Code:
ln -s /usr/src/linux-2.6.29.6 /usr/src/linux
That should eliminate any problems with the digits.
Thanks a lot!
Of course I tried this variant already. And renaming of folder too.
Nothing!
Quote:
Originally Posted by GrapefruiTgirl
please search LQ a little bit for threads very similar to yours, and see if resolutions can be found there.
All threads with this error ended with "At last I did it!" but without any helpful info. 8((
Quote:
Originally Posted by GrapefruiTgirl
by all means try it out - but don't expect awesome video performance
Best of luck.
OK
I don't expect awesome video performance from a 10 year old card with 16Mb of RAM on board. I need some 2D performance under X. (I'm using fluxbox) Software renderer is tooooooo sloooooow for some software 8))))
I'm not all that familiar with the nvidia drivers, but perhaps you need to make sure that /usr/src/linux-2.6.29.6/.config matches your running kernel and then do a 'make prepare' on the kernel to get the headers to match your current kernel?
and only Ubuntu can actually get it done using jockey-gtk app....every other distro (debian/arch/slackware) cannot get the driver installed 'cause it "can't" find the kernel source,etc
you could try the "sgfxi" script from smxi; it works for debian/arch systems but I have heard it may work for slackware too
though I have yet to try it... http://code.google.com/p/sgfxi/
If I remember correctly, the nvidia installer uses the /lib/modules/2.6.x.y/source (or possibly build) symlink to find the appropriate version of the kernel source.
yeah well I think cause it's a "no-name" PC is the problem...
it has no maker's name anywhere and is just enclosed in a white cabinet
I found it in trash...lol and there was nothin wrong with it
If I remember correctly, the nvidia installer uses the /lib/modules/2.6.x.y/source (or possibly build) symlink to find the appropriate version of the kernel source.
They should already be there. Just creating the symlink really isn't going to get you very far.
To make use of the nvidia drivers you're going to have to switch to a modular kernel (such as the shipped 'generic' one).
Make sure you have kernel-generic and kernel-modules packages installed. Then read /boot/README.initrd for instructions on how to switch to using the generic kernel. You'll also find plenty of help on this forum for building an initrd as it's a topic that's come up in the past quite a bit.
If you've installed the modules correctly you should have something like:
As for the 4th digit in kernel's name -- I have never found this to be a problem. However, to circumvent this problem if it is occurring, why not symlink your kernel sources folder to "linux" like in the old days?
Code:
ln -s /usr/src/linux-2.6.29.6 /usr/src/linux
That should eliminate any problems with the digits.
Yours is not the first thread about a problem with the nvidia drivers and the latest Slackware(s) - I don't know if everyone is having the exact same troubles, and I myself have not had these troubles using recent drivers with Slackware, but if my suggestion doesn't help, and you've tried ChrisAbela's suggestion(s) above to no avail, please search LQ a little bit for threads very similar to yours, and see if resolutions can be found there.
It might be that nvidia's older drivers of certain vintage, have not all been updated/patched for the newest kernels, and will continue to cause problems with certain versions..
Also, for the record: I have an old machine here containing a Riva TNT card, and from what I remember about messing with drivers for it, there wasn't really much to gain by installing the binary driver. I think I just ended up using the vesa driver for that. Your case may be different; by all means try it out - but don't expect awesome video performance
Best of luck.
Another potential problem might be what I discovered when I was upgrading from 12.2 to 13.0: the NVidia installer would not install 177 and earlier series drivers if it found Xorg-server-1.6.3 installed. I found that I had to either backlevel Xorg to 12.2's 1.4.2 (which I did for a while), or move to 185 or later series NVidia drivers with Slack's 13.0's version of Xorg (which I did eventually).
I don't know how NVidia's legacy driver installer will play with Slack 13's Xorg 1.6.3.
...the NVidia installer would not install 177 and earlier series drivers if it found Xorg-server-1.6.3 installed ... I don't know how NVidia's legacy driver installer will play with Slack 13's Xorg 1.6.3.
That is interesting - I didn't know that there might be difficulties related to particular Xorg versions.
But, I don't believe it to be the OP's particular problem, as their issue seems to be revolving around an apparent inability of the installer to find kernel sources.
Nonetheless, thank you for sharing that info! All possibilities should be considered.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.