LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Fresh Slack 10 install, nvidia wrong kernel problem. (http://www.linuxquestions.org/questions/slackware-14/fresh-slack-10-install-nvidia-wrong-kernel-problem-214188/)

csDraco_ 08-06-2004 06:29 AM

Fresh Slack 10 install, nvidia wrong kernel problem.
 
Hi all, I'm trying to install the latest nvidia drivers using NVIDIA-Linux-x86-1.0-6111-pkg1.run, but it tells me that my kernel is of the wrong version, so I do run:
NVIDIA-Linux-x86-1.0-6111-pkg1.run --kernel-source-path="/usr/src/linux-2.4.26"
the compilation of nvidia.o proceeds and the following error follows:
Code:

ERROR: Unable to load the kernel module 'nvidia.o'. 
This is most likely because the kernel module was built using the wrong kernel source files. 
Please make sure you have installed the kernel source files for your kernel;
on Red Hat Linux systems, for example, be sure you have the 'kernel-source' rpm installed. 
If you know the correct kernel source files are installed, you may specify
the kernel source path with the '--kernel-source-path' commandline option.

Which also sugests that I have choosen a wrong version of the kernel .. does Slackware 10 comes with a different kernal source than which it uses?


Also when I run:
sh NVIDIA-Linux-x86-1.0-6111-pkg1.run --kernel-name=`uname -r` (uname -r being 2.4.26) That does a successfull installation, but afterward the nvidia.o can't be loaded.

ie. insmod nvidia
Code:

Using /lib/modules/2.4.26/kernel/drivers/video/nvidia.o
Warning: loading /lib/modules/2.4.26/kernel/drivers/video/nvidia.o will taint the kernel: non-GPL license - NVIDIA
  See http://www.tux.org/lkml/#export-tainted for information about tainted modules
  /lib/modules/2.4.26/kernel/drivers/video/nvidia.o: init_module: No such device
  /lib/modules/2.4.26/kernel/drivers/video/nvidia.o: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg

Key line being:
/lib/modules/2.4.26/kernel/drivers/video/nvidia.o: init_module: No such device

What's the init_module?
Sounds like nvidia.o was compiled for a wrong kernal version ... am I right or is it something else?

Cedrik 08-06-2004 06:35 AM

did you try :
sh NVIDIA-Linux-x86-1.0-6111-pkg1.run -K=2.4.26 ?

csDraco_ 08-06-2004 08:26 AM

csDraco_
 
Thanks for replying Cedric.

-K is intended to be used to install kernel modules for additional kernels, correct me if I'm wrong but I think you mean -k=2.4.26 .. in that case yes, as "-k" and "--kernel-name" are the same options.

csDraco_ 08-06-2004 08:47 AM

I just examined /var/log/syslog and found that whenever I try to load nvidia.o the following is appended to the log

Code:

Aug  6 09:33:33 doomstar kernel: NVRM: Can't find an IRQ for your NVIDIA card!
Aug  6 09:33:33 doomstar kernel: NVRM: Please check your BIOS settings.
Aug  6 09:33:33 doomstar kernel: NVRM: [Plug & Play OS  ] should be set to NO
Aug  6 09:33:33 doomstar kernel: NVRM: [Assign IRQ to VGA] should be set to YES
Aug  6 09:33:33 doomstar kernel: NVRM: the NVIDIA probe routine was not called for 1 device(s)!!
Aug  6 09:33:33 doomstar kernel: NVRM: no devices probed, aborting!
Aug  6 09:33:33 doomstar kernel: NVRM: this often occurs when rivafb is loaded and claims the device's resources.
Aug  6 09:33:33 doomstar kernel: NVRM: try removing the rivafb module (or reconfiguring your kernel to remove
Aug  6 09:33:33 doomstar kernel: NVRM: rivafb support) and then try loading the NVIDIA kernel module again.

I pretty sure these settings are wrong in my bios:

[Plug & Play OS ] should be set to NO
[Assign IRQ to VGA] should be set to YES


I need to check that once I get home ... can't do that through ssh :)

I'll reply back this evening after work .. as I don't find a 100km (one way) drive to my pc at home an option during lunch time :)

Cedrik 08-06-2004 09:41 AM

[Plug & Play OS ] should be set to NO
It is set to yes in my pc and it works fine, when you tried -k options, did you give it explicitly 2.4.26 or by `uname -r` ? I remember I had a similar problem and I had to give it the number not issued by uname command.

Excuse me for off topic, but is it common for canadian people to work 100 km away their home ?

csDraco_ 08-06-2004 10:06 AM

Sorry my mistake .. make that 54km one way ... not 100 .. I was thinking "both ways" and wrote down "on way" ... around 50km is average I'd say. It takes me about 40min to drive through that 54km.

csDraco_ 08-06-2004 06:02 PM

Finally I got home ... and it's Friday!
I'm typing this in mozilla 1.7.2 without squinting my eyes .. at the non irritating 85Hz vertical refresh rate of my monitor :)

Just as syslog said:

[Plug & Play OS ] should be set to NO
[Assign IRQ to VGA] should be set to YES


I had both in reverse ... probably only the latter makes the diference.

Thanks for replying Cedrik! ... that keept me motivated :)

H2O-linux 11-30-2004 07:41 PM

csDraco_

That worked for me also. I set the bios to IRQ for VGA !!!


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