Jump to content
can564

Nvidia kernel-source problem [solved]

Recommended Posts

I am try to install the nvidia drivers on my Mandrake 10.1 system.I exited the X-server,ran su,ran chmod +x, then ran my ./NVIDIA-Linux-x86-1.0-6629-pkg1.run.The installer said my source codes are not installed(I thought they where).So I urpmi kernel-source from my original discs on a unmodified kernel.The kernel-source installs fine.

 

Now when I run the Nvidia installer again and it says the same thing.I try to list the advanced options ( -a ) but they fly past and I do not know how to pause them. "| more and | less don't seem to work in this instance.I try to point the installer to my source code.I type ./NVIDIA-Linux-x86-1.0-6629-pkg1.run --kernel-source-/usr/src/linux.(I am not sure but assume the source would be here).The installer starts but says invalid option.

 

What can I do?

Share this post


Link to post
Share on other sites

You may have installed the wrong kernel-source package. If you have the default Mandrake kernel, you want the kernel-source-2.6 package. If you're using the command line, type urpmi -y kernel-source to list available kernel source packages.

Share this post


Link to post
Share on other sites

Is there an option to show where it installed the source code as well? I really don't see plainly stated facts as to it's location.From what I have seen in different post it is in /usr/src/Linux.Is this true usually?

Share this post


Link to post
Share on other sites

The installer says it cannot load module nvidia.ko. It says to try installing the kernel source.But they are installed!!!!!!!!!!!!!!

 

When I check the source like this ls -l /usr/src/ I get

[ryan@192 /]$ ls -l /usr/src/

total 8

lrwxrwxrwx 1 root root 19 Jan 31 20:03 linux -> linux-2.6.8.1-10mdk/

drwxr-xr-x 21 root root 4096 Jan 31 20:03 linux-2.6.8.1-10mdk/

drwxr-xr-x 7 root root 4096 Dec 25 08:20 RPM/

[ryan@192 /]$

 

When I check my kernel version I get this

[ryan@192 /]$ uname -r

2.6.8.1-10mdk

[ryan@192 /]$

 

I have tried reinstalling the kernel-source in init 5 and init 3.I have search these forums but no one seems to have figured this out!!

 

What gives?

Share this post


Link to post
Share on other sites
Guest anon

Run this in a consol and it will list all the kernels you have installed:

rpm -qa | grep kernel

 

 

BTW, Kernel Source package is no longer required if Kernel Header package is installed .

Share this post


Link to post
Share on other sites

[ryan@192 ryan]$ su

Password:

[root@192 ryan]# rpm -qa | grep kernel

kernel-source-2.6-2.6.8.1-10mdk

kernel-2.6.8.1.10mdk-1-1mdk

[root@192 ryan]#

 

This is the output you asked me about.I am not familiar with Kernel Header Packages.Should I see them listed here?

Share this post


Link to post
Share on other sites

You have the correct files installed. What is your error--exactly?

Share this post


Link to post
Share on other sites

I will have to check in AM but when I run the Nvidia installer .run file .I accept the terms of Nvidia,but get the "failed to load module nvidia.ko" .I forget the exact wording but it goes on to suggest that my kernel-source is not installed or wrong.You can see from the output they are right.

 

The first time I ran the installer I did not have the kernel-sources installed so the error made sense.Now they are installed and I am getting the same error.Can the Nvidia installer "remember" that I didn't have them installed?

Share this post


Link to post
Share on other sites

Have you had any luck with this problem? I get the exact fault aswell and I also have the correct files etc installed. I ended up giving up. :evilmod:

Share this post


Link to post
Share on other sites

Could it be a bad download?? I've been using nvidia since before they made the installer; this is a new problem. Seems like the downloaded file itself is bad. Try a different download.

Share this post


Link to post
Share on other sites

I gave the bad download a thought.I downloaded again after I had put the original in the trash.It said it was done so quick that I felt it must have just copied the file I sent to the trash.I thought the problem stemmed from the fact I did not have the kernel-source installed the first time I used the installer.I wondered if it could leave litter in the system somewhere that would trip up later attempts to install!

 

For grins this is my nvidia-installer.log file.It shows the exact error message I got.Hope it might give a clue as to what is going wrong.

 

nvidia-installer log file '/var/log/nvidia-installer.log'

creation time: Thu Feb 3 07:44:57 2005

 

option status:

license pre-accepted : false

update : false

force update : false

expert : false

uninstall : false

driver info : false

no precompiled interface: false

no ncurses color : false

query latest driver ver : false

OpenGL header files : false

no questions : false

silent : false

no backup : false

kernel module only : false

sanity : false

add this kernel : false

no runlevel check : false

no network : false

no ABI note : false

no RPMs : false

force tls : (not specified)

force compat32 tls : (not specified)

X install prefix : /usr/X11R6

OpenGL install prefix : /usr

compat32 install prefix : (not specified)

installer install prefix: /usr

utility install prefix : /usr

kernel name : (not specified)

kernel include path : (not specified)

kernel source path : /usr/src/linux

kernel output path : (not specified)

kernel install path : (not specified)

proc mount point : /proc

ui : (not specified)

tmpdir : /root/tmp

ftp mirror : ftp://download.nvidia.com

RPM file list : (not specified)

 

Using: nvidia-installer ncurses user interface

-> License accepted.

-> A precompiled kernel interface for kernel 'Mandrake Linux 10.1 kernel

2.6.8.1-10mdk i586' has been found here:

./usr/src/nv/precompiled/nv-linux.o-1.0-6629.mdk10.1_2.6.8.1-10mdk.

executing: 'cd ./usr/src/nv; /usr/bin/ld -d -r -o nvidia.koprecompiled-nv-

linux.o nv-kernel.o'...

-> Kernel module linked successfully.

ERROR: Unable to load the kernel module 'nvidia.ko'. 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.

-> Kernel module load error: insmod: error inserting

'./usr/src/nv/nvidia.ko':

-1 No such device

-> Kernel messages:

nvidia: probe of 0000:01:00.0 failed with error -1

PCI: No IRQ known for interrupt pin A of device 0000:01:00.0. Please try

using pci=biosirq.

nvidia: probe of 0000:01:00.0 failed with error -1

PCI: No IRQ known for interrupt pin A of device 0000:01:00.0. Please try

using pci=biosirq.

nvidia: probe of 0000:01:00.0 failed with error -1

ERROR: Installation has failed. Please see the file

'/var/log/nvidia-installer.log' for details. You may find suggestions

on fixing installation problems in the README available on the Linux

driver download page at www.nvidia.com.

 

In the error it seems to be using a precompile nvidia module.I don't really understand why it wants kernel-sources at all!

Edited by can564

Share this post


Link to post
Share on other sites
Guest anon

Try deleting /usr/src/nv/precompiled/nv-linux.o-1.0-6629.mdk10.1_2.6.8.1-10mdk.

and run the installer again. The correct output should read something like this: (ignore my kernel version)

Using: nvidia-installer ncurses user interface

-> License accepted.

-> No precompiled kernel interface was found to match your kernel; would you li

  ke the installer to attempt to download a kernel interface for your kernel f

  rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)

-> No matching precompiled kernel interface was found on the NVIDIA ftp site;

  this means that the installer will need to compile a kernel interface for

  your kernel.

-> Kernel source path: '/lib/modules/2.6.8.1-12mdk/source'

etc etc.

Share this post


Link to post
Share on other sites
Guest anon

OK, yea i think this line

-> A precompiled kernel interface for kernel 'Mandrake Linux 10.1 kernel

2.6.8.1-10mdk i586' has been found here:

./usr/src/nv/precompiled/nv-linux.o-1.0-6629.mdk10.1_2.6.8.1-10mdk.

....is the problem. Don't know where you got that from. :juggle:

But i'm guessing removing it with (from a consol as root (su)

rm /usr/src/nv/precompiled/nv-linux.o-1.0-6629.mdk10.1_2.6.8.1-10mdk

and running the installer again should do the trick.

Share this post


Link to post
Share on other sites

Well I tried to find that file or even just the /usr/src/nv folder but could not.I even tried ls -a to show any hidden folders or files and got nothing!

 

However on a post I place on the nvidia forum I got a tip that solved the problem.It took a week or so but someone suggested this.This is my post back to him.

 

"make sure you've "Assign IRQ for VGA" enabled and "PNP OS installed" disabled in your BIOS"

 

Thanks Chunky.I was so busy with the module load error that I didn't try and solve the error listed below that!At first I didn't see where you where coming from.But after reading the log file again I saw the IRQ problem.I just thought the it was a chicken and egg thing where the nvidia.ko not loading had to be the root cause not the IRQ probing.I quess the module did not load because it felt there was no Nvidia video card installed!!??

 

Thanks to everyone who responded!!

 

Thank you guys too for responding here is to you as well :beer:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...