LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 07-20-2010, 05:29 AM   #1
mjax09
LQ Newbie
 
Registered: Sep 2008
Location: South Africa
Distribution: Vector Linux 7.0 SOHO
Posts: 13

Rep: Reputation: 0
Arrow NVidia troubles


having finally struggled until I was able to compile a proper and working kernel I now find myself with a new problem. Every time I try desperately hard to install the nvidia driver I always find myself with an error that goes somewhat like " Unable to determine the version of the kernel sources located in /lib/modules/2.6.32.8 try installing the necessary packages for instance in Red Hat Systems try to install the kernel sources RPM or if you know where the sources are located try using the --kernel-sources-path command " and each time I try to use this command I am given this very same error I have even tried using all the other list of options that are available for use with the Nvidia kernel But absolutely nothing works.can someone please tell me how to istall this driver so it can determine the kernel version a I am using or perharps how to compile the kernel so that it's version ca be easily determined by the nvidia driver.

specs:
Celeron 4
NVidia geforce FX 5200
4gb Ram
Zenwalk linux 6.2
 
Old 07-20-2010, 06:24 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,579
Blog Entries: 3

Rep: Reputation: 218Reputation: 218Reputation: 218
The reason it is not building is you distribution has the nouveau driver it is the open source driver. it is loaded at boot. you will have to blacklist the driver. if that does not work you will have to rebuild the kernel and disable the nouveau driver
Quote:
edit your /etc/modprobe.ed/blacklist.conf to blacklist nouveau
in there you will see blacklist nvidiafb edit it to this.
Quote:
# blacklist nvidiafb
Note the pound sign .
now go here http://www.nvidia.com/Download/index.aspx?lang=en-us
boot to runlevel 3 login as root and run sh ./NVIDIA-Linux-bla blah

now reboot. this is old news.As long as the naveau driver is loaded you will be unable to build the Nvidia driver.
this was done this way so you would not break your xorg.
the out put will always read unable to find kernel source or something like that.

Last edited by Drakeo; 07-20-2010 at 06:35 AM.
 
1 members found this post helpful.
Old 07-20-2010, 04:39 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,748

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
I don't think, Zenwalk uses the nouveau driver.

I would rather guess, that the "build" link in /lib/modules/Žuname -rŽ/
is pointing to the wrong "linux-<version>" in /usr/src/

..
 
Old 07-21-2010, 09:17 AM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,579
Blog Entries: 3

Rep: Reputation: 218Reputation: 218Reputation: 218
Quote:
I don't think, Zenwalk uses the nouveau driver.
It is in the default kernel and you must black list it. zenwalk uses a vanilla kernel.
look at the kernel he is using it was when the module was put in and this was the kernel when we started trouble shouting it.
Quote:
I would rather guess, that the "build" link in /lib/modules/Žuname -rŽ/
You can do that for ever go back and look at all the post from everyone.
go look at zenwalk change log it was pulled on May 25 2010 but in april it was blacklist just like Slackware.
Quote:
-----< Apr 29 2010 >----- IMAKE... -------

[x] Updated imake-1.0.3-i486-1.txz (Upgraded.)
[x] Updated libdrm-2.4.20-i486-1.txz (Upgraded.)
[x] Updated libxcb-1.6-i486-1.txz (Upgraded.)
[x] Updated mesa-7.8.1-i486-1.txz (Upgraded.)
[x] Updated util-macros-1.7.0-noarch-1.txz (Upgraded.)
[x] Updated xdm-1.1.10-i486-1.txz (Upgraded.)
[x] Updated xf86-input-evdev-2.3.3-i486-1.txz (Upgraded.)
[x] Updated xf86-input-vmmouse-12.6.9-i486-1.txz (Upgraded.)
[x] Updated xf86-input-wacom-0.10.5-i486-1.txz (Upgraded.)
[x] Updated xf86-video-ati-6.13.0-i486-1.txz (Upgraded.)
[x] Updated xf86-video-geode-2.11.8-i486-1.txz (Upgraded.)
[x] Updated xf86-video-intel-2.11.0-i486-1.txz (Upgraded.)
[x] Removed xf86-video-newport-0.2.3-i486-1.txz (Removed. This driver supports a video chipset used only on MIPS hardware.)
[x] Updated xf86-video-nouveau-blacklist-noarch-1.txz (Added. This is NOT the nouveau driver! It installs a file in /etc/modprobe.d/ to prevent the kernel module from autoloading. We don't want the nouveau loaded since we do not ship the nouveau driver (yet), and having the module loaded prevents the nv and binary nVidia drivers from working.)
which means the nouveau gallium driver for 3d is not stable enough for most linux systems and is very limited. this is the driver they are refering to.
This has been documented in nouveau wiki. and In LQ If the nouveau driver for this is loaded the out put on bulding the kernel is what you been looking at. no headers no kernel source. It will not let you build it.http://www.linuxquestions.org/questi...6-33-a-792515/

Last edited by Drakeo; 07-21-2010 at 10:24 AM.
 
1 members found this post helpful.
Old 07-23-2010, 04:16 AM   #5
mjax09
LQ Newbie
 
Registered: Sep 2008
Location: South Africa
Distribution: Vector Linux 7.0 SOHO
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
I don't think, Zenwalk uses the nouveau driver.
say somehow the build link is after all pointing to the wrong Linux version. what do I do then because even when I try to use the command --kernel-source=/lib/modules/2.6.32.8 it still gives me the very same error message. how do I then treat this problem is there an option I am suppose to select when compiling the kernel or am I suppose to do something else completely.
 
Old 07-24-2010, 05:22 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,748

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
""--kernel-source=/lib/modules/2.6.32.8"" : This is not the source.
The source is /usr/src/linux-Žuname -rŽ


cd /lib/modules/2.6.32.8/

rm build
ln -s /usr/src/linux-2.6.32.8/ build

... Then the "build" link should be correct,
... if you want to use 2.6.32.8 and it really is Žuname -rŽ
...
 
1 members found this post helpful.
Old 07-24-2010, 09:40 AM   #7
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,579
Blog Entries: 3

Rep: Reputation: 218Reputation: 218Reputation: 218
I guess no one want's to believe the people that worked this problem out with the nouveau blacklist and build the Nvidia Kernel. if you have nouveau loaded the your nvidia buid will fail. so read this FC thread.
 
Old 07-24-2010, 09:59 AM   #8
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Drakeo is right - Nouveau & nVidia do not necessarily play nice together - as you can see in some other LQ threads from the past few months where he and I (mostly him) and others have fiddled with this on and off..

Another thing that may at some point have a bearing on this situation, is whether the particular version of the nvidia driver the OP is working with, is one of those that needed to be patched in order to work with certain kernel versions. I did not see above, what particular nvidia driver the OP is trying to use, but I believe that problem was fixed after maybe two driver versions, and is now gone. FWIW I just yesterday installed the freshest 64bit nVidia binary driver on my 2.6.33.1 kernel, and it was simple as pie.

At this moment, I cannot remember exactly which kernel version & driver version were affected, but the result was as the OP indicated: "Cannot determine kernel version; build fails". It happened even if the kernel source was right where it should be, and even with the --kernel-source= flag.

Making sure Nouveau is not involved (or un-involving it) would be a prudent first step. Then, if necessary due to continuing troubles, consider upgrading either the kernel, or the nVidia driver version you're working with, or both.
 
1 members found this post helpful.
Old 07-24-2010, 03:11 PM   #9
LouRobytes
Member
 
Registered: Mar 2010
Location: Nova Scotia, Canada
Distribution: Ubuntu & Fedora
Posts: 189

Rep: Reputation: 44
What version of Nvidia are you trying to install? At one point, I don't recall which version, the linux kernel moved some headers to a different location causing the Nvidia installer to fail. Nvidia eventually caught up but, if you are using an older version of the installer, it will fail because it is still looking in the old location for headers which determine the kernel version. I suggest you make sure you are using the latest version of the Nvidia installer.

Cheers, Lou
 
Old 07-25-2010, 09:42 AM   #10
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,579
Blog Entries: 3

Rep: Reputation: 218Reputation: 218Reputation: 218
If you are using the latest driver is the latest 173.14.25 this should build for your kernel and the 2.6.33.4 kernel
but has not been updated for the FC13 xorg yet. If you feel you want to try there beta go to the nvidia beta and archives.http://www.nvidia.com/Download/Find.aspx?lang=en-us

Last edited by Drakeo; 07-25-2010 at 09:50 AM.
 
Old 07-25-2010, 07:34 PM   #11
John VV
Guru
 
Registered: Aug 2005
Posts: 12,955

Rep: Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721
In the nvidia ftp page there is a "173.14.27"
BUILT for xorg 1.8
ftp://download.nvidia.com/XFree86/Linux-x86/
173 is still supported .
and the forum page
http://www.nvnews.net/vbulletin/showthread.php?t=122606
 
1 members found this post helpful.
  


Reply

Tags
graphics, working


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 troubles jus71n742 Linux - General 21 11-25-2008 08:34 PM
troubles with SATA, troubles with NVIDIA aevangelica Linux - Hardware 6 10-17-2005 02:39 AM
nVidia Troubles ncf Slackware 20 08-06-2005 06:21 AM
Troubles with Nvidia permissions crud Slackware 4 05-26-2005 02:16 PM
Sorry! Nvidia Driver Troubles Sean_Glenville Linux - Newbie 4 07-18-2003 05:43 PM


All times are GMT -5. The time now is 04:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration