View previous topic :: View next topic |
Author |
Message |
sumous n00b

Joined: 13 Jul 2012 Posts: 6
|
Posted: Fri Jul 13, 2012 9:24 am Post subject: modprobe iwlwifi Invalid module format[SOLVED] |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55015 Location: 56N 3W
|
Posted: Fri Jul 13, 2012 7:26 pm Post subject: |
|
|
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 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 |
|
 |
sumous n00b

Joined: 13 Jul 2012 Posts: 6
|
Posted: Sat Jul 14, 2012 3:32 am Post subject: |
|
|
Thanks a lot!
I just typed , and then , 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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55015 Location: 56N 3W
|
Posted: Sat Jul 14, 2012 10:33 am Post subject: |
|
|
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 |
|
 |
sumous n00b

Joined: 13 Jul 2012 Posts: 6
|
Posted: Sun Jul 15, 2012 4:31 am Post subject: |
|
|
I'm sorry! I forget the step.
Thanks a lot, I got it, the problem is solved! |
|
Back to top |
|
 |
|