LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-03-2010, 03:47 AM   #1
Danzille
LQ Newbie
 
Registered: Nov 2009
Distribution: Slackware 13.0 32-bit
Posts: 21

Rep: Reputation: 15
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?

Any ideas?
 
Old 08-03-2010, 04:42 AM   #2
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
There are a lot of nvidia drivers at http://slackbuilds.org for Slack13.0

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
 
1 members found this post helpful.
Old 08-03-2010, 04:56 AM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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.
 
Old 08-03-2010, 05:34 AM   #4
Danzille
LQ Newbie
 
Registered: Nov 2009
Distribution: Slackware 13.0 32-bit
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ChrisAbela View Post
There are a lot of nvidia drivers at http://slackbuilds.org for Slack13.0

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!
 
Old 08-03-2010, 05:38 AM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
According to the nvidia driver portal here: http://www.nvidia.com/object/linux_d..._71.86.13.html

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.
 
Old 08-03-2010, 05:43 AM   #6
Danzille
LQ Newbie
 
Registered: Nov 2009
Distribution: Slackware 13.0 32-bit
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by GrapefruiTgirl View Post
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 View Post
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 View Post
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))))
 
Old 08-03-2010, 06:14 AM   #7
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
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?

Adam
 
2 members found this post helpful.
Old 08-03-2010, 06:15 AM   #8
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
I feel you bro
mine is a old K7 with GeForce4 MX 4000 card
http://www.linuxquestions.org/questi...4/#post4045655

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/

http://smxi.org/

http://smxi.org/docs/sgfxi-manual.htm
 
Old 08-03-2010, 06:24 AM   #9
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,896

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
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.
 
1 members found this post helpful.
Old 08-03-2010, 06:30 AM   #10
Danzille
LQ Newbie
 
Registered: Nov 2009
Distribution: Slackware 13.0 32-bit
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linus72 View Post
I feel you bro
mine is a old K7 with GeForce4 MX 4000 card
http://www.linuxquestions.org/questi...4/#post4045655
MX 4000 is GOOOD!!!
I'll try sgfxi after reading the manual.

Thank you very much!
Dan
 
Old 08-03-2010, 06:42 AM   #11
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Quote:
MX 4000 is GOOOD!!!
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
 
Old 08-03-2010, 06:43 AM   #12
Danzille
LQ Newbie
 
Registered: Nov 2009
Distribution: Slackware 13.0 32-bit
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by GazL View Post
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.
Are you talking about smth like this:

ln -s /lib/modules/<kernel name>/source <link name> ?

What <link name> I have to type?
 
Old 08-03-2010, 07:15 AM   #13
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,896

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
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:
Code:
gazl@nix:/boot$ ls -l /lib/modules/2.6.34.2/
total 3456
lrwxrwxrwx  1 root root     23 2010-08-03 13:42 build -> /usr/src/linux-2.6.34.2/
drwxr-xr-x 10 root root   4096 2010-08-03 13:38 kernel/
-rw-r--r--  1 root root 548977 2010-08-03 13:44 modules.alias
-rw-r--r--  1 root root 533048 2010-08-03 13:44 modules.alias.bin
-rw-r--r--  1 root root   6198 2010-08-03 13:37 modules.builtin
-rw-r--r--  1 root root   9035 2010-08-03 13:44 modules.builtin.bin
-rw-r--r--  1 root root     69 2010-08-03 13:44 modules.ccwmap
-rw-r--r--  1 root root 250731 2010-08-03 13:44 modules.dep
-rw-r--r--  1 root root 353318 2010-08-03 13:44 modules.dep.bin
-rw-r--r--  1 root root   1257 2010-08-03 13:44 modules.ieee1394map
-rw-r--r--  1 root root    218 2010-08-03 13:44 modules.inputmap
-rw-r--r--  1 root root   3084 2010-08-03 13:44 modules.isapnpmap
-rw-r--r--  1 root root     74 2010-08-03 13:44 modules.ofmap
-rw-r--r--  1 root root  84562 2010-08-03 13:37 modules.order
-rw-r--r--  1 root root 324605 2010-08-03 13:44 modules.pcimap
-rw-r--r--  1 root root   1219 2010-08-03 13:44 modules.seriomap
-rw-r--r--  1 root root 206451 2010-08-03 13:44 modules.symbols
-rw-r--r--  1 root root 266894 2010-08-03 13:44 modules.symbols.bin
-rw-r--r--  1 root root 895596 2010-08-03 13:44 modules.usbmap
lrwxrwxrwx  1 root root     23 2010-08-03 13:42 source -> /usr/src/linux-2.6.34.2/

Last edited by GazL; 08-03-2010 at 07:18 AM.
 
0 members found this post helpful.
Old 08-03-2010, 08:33 AM   #14
croxen
Member
 
Registered: May 2002
Posts: 100

Rep: Reputation: 42
Quote:
Originally Posted by GrapefruiTgirl View Post
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.
 
Old 08-03-2010, 09:36 AM   #15
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Cool

Quote:
Originally Posted by croxen View Post
...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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nvidia driver install script: "Unable to determine the version of the kernel sources" lumix Linux - Software 9 12-18-2008 06:40 AM
Problems emerging nvidia-kernel-1.0.8762-r1 on gentoo-sources-2.6.17-r4 lableupunn Linux - Distributions 3 07-26-2006 05:10 PM
kernel nvidia sources chil326 Mandriva 7 08-30-2005 12:57 PM
NVIDIA 7174 Driver - Wrong kernel sources error dezza Linux - Hardware 6 05-06-2005 01:34 PM
NVIDIA installer cant find kernel sources weeds84 Debian 6 02-22-2004 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration