LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-07-2006, 01:59 PM   #1
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Unhappy Fatal "modprobe" error with nvidia drivers in Gentoo


After compiling my own kernel and installing a fresh version Gentoo linux, i've downloaded Xorg and installed ok. Now i'm trying to install the nvidia drivers for my Nvidia 6200 8x AGP graphics card. I'm following this guide provided by Gentoo to do it. After I use "emerge" to download and install the drivers, it says to use "modprobe" to do something with the kernel and the drivers, what "modprobe" does, im not real sure. My problem is after performing modprobe I get the following error message:

Code:
FATAL: Error inserting nvidia (/lib/modules/2.6.14-gentoo-r5/video/nvidia.ko): Unknown symbol in module, or unknown parameter (see dmesg)
That bit of information dosen't really mean much to me, but i'm afraid it means I haven't compiled my own kernel with the right parameters to let Linux instert the module in for me. The beginning of that guide discusses the proper parameters that have to be compiled in the kernel for this work. Dmesg goes on to say:

Code:
nvidia: module license 'NVIDIA' taints kernel.
nvidia: Unknown symbol register_ioctl32_conversion
nvidia: Unknown symbol unregister_ioctl32_conversion
This is very frustrating because i've been trying to get my new computer up and going for about a week now with Linux and i've already made a sacrafice to get this far. Does anyone know what my problem is? I'd be more than gratefull if someone had some advice. Thank you in advance.
 
Old 01-07-2006, 03:18 PM   #2
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
I run Gentoo Linux on my desktop and I've run into the same problem before. You are in luck the solution should be relatively easy. Like the Gentoo instructions say, every time you compile your own kernel you have to make sure you re-emerge nvidia-kernel to ensure that the nvidia drivers work correctly. The last time I ran into this problem, I DID NOT compile my kernel correctly. If I remember correctly for some reason I didn't create the right symlink to my kernel that I compiled. Once I compiled it correctly and ran "emerge nvidia-kernel" again everything was fine and I went on my way.

Also make sure that you put "nvidia" in "/etc/modules.autoload.d/kernel-2.6" file that way it will autoload when you boot up your machine. Good luck.

::EDITED FOR CLARITY::

Last edited by Centinul; 01-07-2006 at 09:47 PM.
 
Old 01-07-2006, 03:31 PM   #3
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Rep: Reputation: 30
"modprobe" is the command that inserts modules into the kernel, so it can use the goodness within. In your case, "modprobe nvidia" simply loads the nvidia driver, ready for use.

You shouldn't have to copy the nvidia module anywhere, but like Centinul said, if
Code:
ls -l /usr/src/linux
doesn't point to the exact kernel you configured, or worse still if it doesn't exist, you need to
Code:
cd /usr/src
ls -l
rm linux
ln -s your_kernel_directory_here linux
and then re-emerge nvidia-driver.

FYI, the same applies to any other modules you've got installed with Portage - I "emerge nvidia-kernel alsa-driver" every time I reconfigure my kernel!

Last edited by Napalm Llama; 01-07-2006 at 03:33 PM.
 
Old 01-07-2006, 04:11 PM   #4
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Original Poster
Rep: Reputation: 45
Alright, thanks for the replys guys (and gals, maybe). I'm off to learn how to recompile my kernel and reload my modules. Thanks!
 
Old 01-08-2006, 12:12 AM   #5
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Original Poster
Rep: Reputation: 45
I reconfigured my Kernel, and that didn't help. Assuming I did that right, is there any other reason that it might not work?
 
Old 01-08-2006, 08:14 AM   #6
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Rep: Reputation: 30
You reconfigured the kernel... but did you re-emerge nvidia-kernel?

If not, do this:
Code:
emerge nvidia-kernel  # Rebuilds nvidia module for your new kernel
modprobe -r nvidia  # Removes old nvidia module from your kernel (if it's there)
modprobe nvidia  # Inserts new nvidia module into the kernel
This is assuming that you're running the kernel that's at /usr/src/linux. If you've reconfigured it, you need to reboot into the new version before running that code.

If it still doesn't work, post your /usr/src/linux/.config file here - we'll take a look and see if there's anything that needs changing.

Also, it would help to know what model of graphics card we're dealing with here
 
Old 01-10-2006, 04:29 PM   #7
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Original Poster
Rep: Reputation: 45
I've since reinstalle Ubuntu because of my frustration with Gentoo. Ubuntu is VERY easy to use, and not that Gentoo was really that hard, but I needed my computer back lol. I can't go forever without this thing. Your post though, along with what i've learned since trying unsucessfuly to install Gentoo twice (yes I used the guide both times) makes me want to try again. Perhaps this weekend I will look into that. One or maybe two questions though about the Gentoo install:

If your not really sure what to enable and not enable in your custom kernel gentoo lets you create, is it best to just use 'genkernel'?

If I don't know what to disable in my new Kernel, because I don't need it, so I just don't get rid of it, am I really helping anything?

Thanks for the reply though!
 
Old 01-11-2006, 09:05 AM   #8
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Rep: Reputation: 30
Hmm, I would advise trying genkernel first to see if that produces something that'll work. I tried it first (because I was scared of making my own kernel!) but whatever it was that it spat out, it wasn't bootable. So I bit the bullet and hand-configured my own kernel - and now I've never looked back!

I'm a fan of monolithic kernels - if you lsmod on my box, you'll see "nvidia" and some alsa stuff, but nothing else. I have actually been known to physically recoil from the reams of output lsmod gives on some other distros...

For most things in-kernel, enabling unnecessary options won't hurt. Don't quote me on that (there might be things I can't think of at the moment) but in general, and especially in the Drivers section, I would say it's quite a good rule of thumb. (But don't forget lspci)

I'm assuming you're using the make menuconfig method - if so, press H over the option you're not sure about (or move the cursor right to select the Help button) - some things don't have help text attached, but most things do and I still rely quite heavily on the descriptions provided.

If the option is marked "Experimental", the obvious thing would be not to enable it unless you know you need it.

Finally, you won't always get your kernel right first time. Pay attention to what it says during startup (so disable any bootsplash you might have) and have a look through dmesg if it boots far enough for you to type that in.

If you're still stuck, LinuxQuestions is always open - as are the excellent Gentoo Forums! Don't give up - Gentoo is the best distro of the best OS I've ever used, and I don't intend to switch any time soon.
 
Old 01-11-2006, 10:42 AM   #9
RemusX2
Member
 
Registered: Oct 2003
Location: Bozeman, Montana
Distribution: Gentoo 2010, Ubuntu 9.04
Posts: 175

Rep: Reputation: 30
I've hard a the same problem (maybe similar) before... I was having troubles because I had the symlink in /usr/src pointing to a different kernel then the one I was actually running. This may be irrelivent to your problem, but keep it in mind.
 
Old 01-11-2006, 11:59 AM   #10
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Original Poster
Rep: Reputation: 45
Well, Napalm Llama, even if your answers don't work (I don't know, I haven't tried them yet) you are atleast very inspirational! This weekend when I have some spare time I beleive I'm going to try to reinstall Gentoo Linux on my desktop. I think i'll compile my own kernel though, the last time I did it, it worked and it booted, I just couldn't get the nvidia module to load in it. But this time i'll be more carefull about how I do it.
 
Old 01-11-2006, 12:00 PM   #11
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by RemusX2
keep it in mind.
Will do. Thank you.
 
Old 01-11-2006, 05:16 PM   #12
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Rep: Reputation: 30
Well, I do try

Good luck with your Gentooage!
 
  


Reply


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
"FATAL: Unknown capture source type" error from Kismet atlantanewbie Linux - Wireless Networking 2 04-03-2010 06:34 AM
XIO: fatal IO error 04 (connection reset by peer) on X server ":0.0" Kernel 2.6.5 Slackware 15 10-29-2007 12:53 AM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 03:11 PM
Nvidia TV-out gives "fatal IO error 104" culler Debian 2 11-20-2004 11:26 PM
Driver "nvidia" causes Fatal Error: no screens found Gamezace Linux - Newbie 3 04-19-2004 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration