Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error loading nvidia modules [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gnat79
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2004
Posts: 111
Location: Richmond Virginia, USA

PostPosted: Thu Oct 05, 2006 2:08 pm    Post subject: Error loading nvidia modules [solved] Reply with quote

I just upgraded to nvidia-drivers

[ebuild R ] x11-drivers/nvidia-drivers-1.0.8774

but now I can't start X as a regular user. I can do it as root. I always get this message:

FATAL: Error inserting nvidia (/lib/modules/2.6.15-gentoo-r1/video/nvidia.ko): Invalid module format

I'm not sure what the problem is. Do I have to upgrade my kernel to get the latest to work? I thought that the nvidia drivers were totally separate from the kernel.

Thanks in advance.
_________________
There are 11 kinds of people in the world:
those who can count in binary and those who can't.


Last edited by gnat79 on Sat Oct 07, 2006 4:25 am; edited 1 time in total
Back to top
View user's profile Send private message
Big Jim Slade
Apprentice
Apprentice


Joined: 04 May 2005
Posts: 197
Location: Washington State

PostPosted: Thu Oct 05, 2006 2:22 pm    Post subject: Reply with quote

Have you updated gcc recently? I believe (although it's been a while) that you'll see this error if you compile your kernel with one major version of gcc and modules with another (like kernel with gcc 3.4 and nvidia with 4.1).

If you're not sure, try rebuilding the kernel and see if that helps. It may require you to re-emerge any other modules though, such as alsa if you're not using the built-in module.
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Thu Oct 05, 2006 3:53 pm    Post subject: Reply with quote

here's what you should do:

emerge module-rebuild
cd /usr/src/linux
make && make modules_install install && module-rebuild rebuild
reboot


See if that works.
Back to top
View user's profile Send private message
gnat79
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2004
Posts: 111
Location: Richmond Virginia, USA

PostPosted: Thu Oct 05, 2006 6:43 pm    Post subject: Reply with quote

Ahh.. yeah when I rebuilt the kernel last it was with gcc 3.3.4 and then I updated to gcc-4.1.1

I'll rebuild and upgrade the kernel and see what happens then.

Thanks!
_________________
There are 11 kinds of people in the world:
those who can count in binary and those who can't.
Back to top
View user's profile Send private message
millerl
n00b
n00b


Joined: 26 Jul 2004
Posts: 51
Location: Coeur d'Alene

PostPosted: Thu Oct 05, 2006 7:42 pm    Post subject: Reply with quote

sonicbhoc wrote:
here's what you should do:

emerge module-rebuild
cd /usr/src/linux
make && make modules_install install && module-rebuild rebuild
reboot



See if that works.


That did it. But its odd, I don't recall building any new verisons of gcc recently seeing as this is a new install I'm on. *shrug*

Thanks sonicbhoc, that fixed it for me! ;)
Back to top
View user's profile Send private message
gnat79
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2004
Posts: 111
Location: Richmond Virginia, USA

PostPosted: Fri Oct 06, 2006 7:02 pm    Post subject: Reply with quote

I did that

Quote:

emerge module-rebuild
cd /usr/src/linux
make && make modules_install install && module-rebuild rebuild
reboot


and I still have the problem.

I think there is something messed up with my kernel because I get funny compile messages when I compile it. I'll post those in a little while, maybe that is the cause.
_________________
There are 11 kinds of people in the world:
those who can count in binary and those who can't.
Back to top
View user's profile Send private message
gnat79
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2004
Posts: 111
Location: Richmond Virginia, USA

PostPosted: Sat Oct 07, 2006 4:25 am    Post subject: Reply with quote

Ok, my kernel was compiling funny because the old one was compiled with gcc3.3.4 and the new one was using 4.1.1. So, updating to a newer kernel solved that without me having to clean the old stuff out. I also got nvidia drivers working on the second try (forgot that you don't want nvidia frambuffer support in the kernel). So, now it's working nicely.

Thanks to all of you for your help!
_________________
There are 11 kinds of people in the world:
those who can count in binary and those who can't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum