LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-15-2006, 06:07 AM   #1
sagecss
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
Nvidia Driver Errors After Compiling 2.6.16.5 Kernel!


I compiled the latest Kernel 2.6.16.5 onto my system and when I tried to re-install my Nvidia Drivers, It would not do as it was complaining about not finding the current Kernels source. So I think, this is impossible, let me double check!

So I run uname -r and get 2.6.16.5build1.
I also ls /lib/modules to check that it actually exists there too...and it does.
Then I try to direct the Nvidia install to the directory by runnining sh NVidia.etc... --kernel-name='/lib/modules/2.6.16.5build1'

NOTHING!!!

So I recompile the kernel again only this time naming it 2.6.16.5. Fortunately saved my previous config file
Anyway go through all the same steps as above and this time the Nvidia driver compiles. Guess I messed up somewhere previously.

HeeeHaaaa, happy?....No! cause now it gives me this error:

Code:
FATAL: Module nvidia not found. 
(EE) NVIDIA(0): Failed to load the NVIDIA kernel module! 
(EE) NVIDIA(0): ***Aborting*** 
(EE) Screen(s) found, but none have a usable configuration

I assume once the NVIDIA Kernel module is sorted the rest will fall in place?

Any suggestions, please?
 
Old 04-15-2006, 06:27 AM   #2
Ellops
Member
 
Registered: Nov 2005
Location: ath.gr
Distribution: Slackware 11.0 / 2.6.19.1 /Linux Mint
Posts: 124

Rep: Reputation: 15
Check this, I think that's the problem
http://www.nvnews.net/vbulletin/showthread.php?t=62021

did u have 2.6.15 before?

Last edited by Ellops; 04-15-2006 at 06:34 AM.
 
Old 04-15-2006, 06:44 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by sagecss
Then I try to direct the Nvidia install to the directory by runnining sh NVidia.etc... --kernel-name='/lib/modules/2.6.16.5build1'

NOTHING!!!
I think you used incorrect parameter. This is what I use to build (and it works for me, I'm using a 2.6.15.6 kernel with the latest Nvidia driver on Slackware 10.2):
Code:
sh NVIDIA-Linux-x86-1.0-8756-pkg1.run --kernel-name=2.6.15.6 \
                                      --kernel-source-path=/lib/modules/2.6.15.6/build
If you are running kernel 2.6.15.6 at the time of compiling the module, you should not need any of these parameters at all, unless you moved the kernel source tree to another location after installing the kernel.

Eric
 
Old 04-15-2006, 07:04 AM   #4
sagecss
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the reply guys,

Eric, I quickly tried your suggestions (and thanks for pointing out the correct usage of the parameters) but I'm afraid no luck. Note that I am running Kernel Version 2.6.16.5.

On previous kernel installations I have had no problems as you have stated, it is only with this one. Also I have not moved the kernel sources at all...which is pretty strange that the Nvidia installation doesn't detect it!

Ellops, I did have 2.6.15 before but I actually just reinstalled SW10.2. Maybe I did something wrong with that. In brief:
Installed test26.s image and did a full installation
Then installed the modules from CD2
Then compiled the kernel version 2.6.16.5
Installed the NVidia drivers

And got the module error mentioned above.
 
Old 04-15-2006, 08:26 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Did you add support for agpgart and/or nvagp in you new kernel. Also you need support for i2c (i2c_core module)
Here is the lsmod output (related to nvidia) with the 2.6.16.5 kernel and latest nvidia 8756 driver:
Code:
nvidia               4539412  12 
i2c_core               15248  1 nvidia
agpgart                25392  1 nvidia
Hope that helps.
 
Old 04-15-2006, 09:21 AM   #6
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
You have to recompile/reinstall the nvidia drivers every time you change/compile a new kernel
 
Old 04-15-2006, 09:28 AM   #7
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
Ellops is right i think
I had to do this patch

see
http://www.linuxquestions.org/questi...d.php?t=430642

tobyl
 
Old 04-15-2006, 10:11 AM   #8
Ellops
Member
 
Registered: Nov 2005
Location: ath.gr
Distribution: Slackware 11.0 / 2.6.19.1 /Linux Mint
Posts: 124

Rep: Reputation: 15
http://www.linuxquestions.org/questi...d.php?t=428199
NV drivers under 2.6.16 needs patching, but the errors in thiw case are a bit different than the usual
maybe sagecss already patched it??

Last edited by Ellops; 04-15-2006 at 10:18 AM.
 
Old 04-15-2006, 08:13 PM   #9
sagecss
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Just a big thanks to everybody that tried to help out here with my moment of ignorance!

My problems had been with the 1.0-8178 Driver. I should have done this first before posting here, but I downloaded the laterst version 1.0-8756 Nvidia driver and it installed without a problem.

I did recompile the kernel again though, just to make sure of a couple of things (including bathory's comments) like making sure that append version info to kernel string was not selected and a couple of other things I wanted to take out anyway.

But I think it was simply a matter of using the latest driver.

Again, thanks to all,

Sage.
 
Old 04-18-2006, 02:39 AM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Append string does not affect nvidia driver installation if you are not searching for precompiled kernel interface.
 
Old 04-18-2006, 03:02 AM   #11
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Quote:
Did you add support for agpgart and/or nvagp in you new kernel. Also you need support for i2c (i2c_core module)
NVidia's drivers can work without the agpgart support - It just uses its internal agp.
 
Old 04-18-2006, 10:29 PM   #12
shuste73
LQ Newbie
 
Registered: Apr 2006
Location: California
Distribution: Slack-current
Posts: 7

Rep: Reputation: 0
Not quite

I had this problem today. My error was actually because the -current 2.6 kernel is compiled with GCC 3.4 and Slack 10.2 is using GCC 3.3 and you can't compile the Nvidia stuff (during the install) and insert into the kernel with a different GCC version.

Solution: upgrade to GCC 3.4 from -current tree.

The reason the solution above worked (recompiling the kernel yourself) is that you inadvertantly fixed the "kernel compiled with different GCC version than is on your system" problem.

You could probably have saved yourself a bit of trouble by upgrading, but your solution did work. Hope this saves someone else a kernel recompile.

shuste73@yahoo.com
 
  


Reply



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 Installer errors DoddyUK Linux - Software 1 06-03-2005 01:46 PM
nvidia driver install errors djc_slip Mandriva 3 02-25-2005 05:04 PM
Getting Nvidia 3d driver after compiling kernel using apt-get PeaceTank Linux - Software 2 12-08-2004 06:09 AM
Compiling Nvidia Driver on 2.6.0-test11 kernel... TheOneAndOnlySM Linux - General 6 12-20-2003 09:54 AM
Nvidia driver compile errors acidream Linux - General 8 02-19-2003 08:01 PM

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

All times are GMT -5. The time now is 01:06 AM.

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