Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Invalid module format
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
shortyno1
n00b
n00b


Joined: 25 Aug 2012
Posts: 52
Location: Bremen

PostPosted: Sat Aug 25, 2012 4:41 pm    Post subject: Invalid module format Reply with quote

i don't know whats happend after a while (perhaps i changed my kernel?) , i'll get this error:

Code:

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


any suggestions to fix this? i just want to use my optimus notebook ...

Greetings
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sat Aug 25, 2012 4:56 pm    Post subject: Reply with quote

Any hints in dmesg ?
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Sat Aug 25, 2012 5:10 pm    Post subject: Reply with quote

Did you install/upgrade a new kernel?
If so you should have run
Code:

module-rebuild rebuild

Module-rebuild is in portage.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54831
Location: 56N 3W

PostPosted: Sat Aug 25, 2012 6:39 pm    Post subject: Reply with quote

shortyno1,

You changed and important config option, you changed gcc versions or module-init-tools is broken.
module-init-tools has been repelaced by kmod, you will only have one of thise.

Rebuild your kernel and all of the modules (including nvidia) starting with
Code:
make clean
so old binariaries are not reused.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Wed Sep 26, 2012 1:47 pm    Post subject: Reply with quote

I'm getting something similar too.

Heres what i did to get it (running a GTX-670)
I changed my make.conf VIDEO_CARD="nvidia" (from nouveau)
then i ran emerge xorg-drivers

and then... well... i get the above error a couple of times on my bootup.

I tried the things suggested in this thread so far, no luck. (module-rebuild command not found)
_________________
This picture was my biggest reason for ever trying Gentoo <3


Last edited by rabcor on Wed Sep 26, 2012 2:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
mvaterlaus
Apprentice
Apprentice


Joined: 01 Oct 2010
Posts: 237
Location: Switzerland

PostPosted: Wed Sep 26, 2012 2:05 pm    Post subject: Reply with quote

rabcor wrote:
I tried the things suggested in this thread so far, no luck. (module-rebuild command not found)


you must emerge module-rebuild
Back to top
View user's profile Send private message
Killerchronic
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2007
Posts: 91
Location: UK

PostPosted: Tue Oct 16, 2012 7:11 pm    Post subject: Reply with quote

I had both built modules and hadn't updated my kernel (fresh install so first build) and was getting this error, rebuilding fixed however.

Thanks
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