Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm following the steps to compile kernel 2.6.32 from source,

and have no problem to go the the last step:

...
make modules_install 
make install

And I've also configured grub.conf correctly.

But when I try to reboot,it fails to boot:

insmod: error insertimg '/lib/ehci-hcd.ko': -1 Invalid module format
...

What can be the reason?

Error when booting

share|improve this question
add comment

2 Answers

Module and kernel are not the same version OR, some times, you can get this error if you didn't used the same compiler for modules and kernel.

In your case, you recompiled the kernel and you didn't change/rebuild initrd. The screenshot what you posted now, show us a bad initrd with old modules. You should reboot with the old kernel (if you didn't overwrite it) and rebuild initrd also.

Regards

share|improve this answer
    
All those are reported "Invalid module format" are kernel modules.. –  yum Mar 21 '11 at 10:12
    
You forget to rebuild initrd. –  Sacx Mar 21 '11 at 11:18
    
Nope,make install does this for you automatically. –  yum Mar 22 '11 at 1:19
    
OK, then you forgot to add it to command line. –  Sacx Mar 22 '11 at 5:57
add comment

Check dmesg, there should be a better message which states why the loading failed.

share|improve this answer
    
But when kernel panic happens,I can not type any shell commands. –  yum Mar 21 '11 at 10:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.