LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Nvidia Driver Errors After Compiling 2.6.16.5 Kernel! (https://www.linuxquestions.org/questions/slackware-14/nvidia-driver-errors-after-compiling-2-6-16-5-kernel-435367/)

sagecss 04-15-2006 06:07 AM

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?

Ellops 04-15-2006 06:27 AM

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

did u have 2.6.15 before?

Alien Bob 04-15-2006 06:44 AM

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

sagecss 04-15-2006 07:04 AM

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.

bathory 04-15-2006 08:26 AM

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.

mrcheeks 04-15-2006 09:21 AM

You have to recompile/reinstall the nvidia drivers every time you change/compile a new kernel

tobyl 04-15-2006 09:28 AM

Ellops is right i think
I had to do this patch

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

tobyl

Ellops 04-15-2006 10:11 AM

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??

sagecss 04-15-2006 08:13 PM

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.

Alien_Hominid 04-18-2006 02:39 AM

Append string does not affect nvidia driver installation if you are not searching for precompiled kernel interface.

kevkim55 04-18-2006 03:02 AM

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.

shuste73 04-18-2006 10:29 PM

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


All times are GMT -5. The time now is 05:36 AM.