Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
modprobe iwlwifi Invalid module format[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sumous
n00b
n00b


Joined: 13 Jul 2012
Posts: 6

PostPosted: Fri Jul 13, 2012 9:24 am    Post subject: modprobe iwlwifi Invalid module format[SOLVED] Reply with quote

hello,every one!
It was my first time to install gentoo and I succeed!

However, when I compiled the drivers iwlwifi and modprobe iwlwifi, I got:
Code:
FATAL: Error inserting iwlwifi (/lib/modules/3.2.12-gentoo/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko): Invalid module format


and I find the dmesg log,got:
Code:
iwlwifi: version magic '3.2.12-gentoo SMP mod_unload modversions ' should be '3.2.12-gentoo SMP mod_unload '


Can somebody help me?


Last edited by sumous on Sun Jul 15, 2012 4:32 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jul 13, 2012 7:26 pm    Post subject: Reply with quote

sumous,

Welcome to Gentoo.

Whats happened is that you have changed an option in one part of the kernel that has affected how otherthings, that were not rebuild, should have been built.

This happends becasue make tries to be clever and reuse old binary file (without recompiling) if the binary file is newer than all of the source files needed to make the binary. It works most of the time and save a lot of time.

Remake and reinstall your kernel and its modules starting with the
Code:
make clean
step. Now there will be no old binaries for make to reuse.
Your .config will be unharmed.
_________________
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
sumous
n00b
n00b


Joined: 13 Jul 2012
Posts: 6

PostPosted: Sat Jul 14, 2012 3:32 am    Post subject: Reply with quote

Thanks a lot!

I just typed
Code:
make clean
, and then
Code:
modprobe iwlwifi
, it didn't work.

Then I type
Code:
make && make modules_install
to remake the kernel and modules, It also didn't work!

The problem was not solved, any other problem of my operation?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jul 14, 2012 10:33 am    Post subject: Reply with quote

sumous,

Quote:
Then I type
Code:

make && make modules_install

to remake the kernel and modules, It also didn't work!


That is only a part of the solution. You have made your new kernel, its modules and installed the new modules but grub still uses your old kernel.
You must copy the new kernel binary to /boot, then reboot so the new kernel is actually used.

If you have a separate boot partition, don't forget to mount it before you copy the bzImage file across.
_________________
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
sumous
n00b
n00b


Joined: 13 Jul 2012
Posts: 6

PostPosted: Sun Jul 15, 2012 4:31 am    Post subject: Reply with quote

I'm sorry! I forget the step.

Thanks a lot, I got it, the problem is solved!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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