View previous topic :: View next topic |
Author |
Message |
beerisgoodmate Tux's lil' helper
Joined: 20 May 2005 Posts: 129
|
Posted: Mon Mar 12, 2007 3:36 pm Post subject: broken modules from kernel recompile? [Solved!] |
|
|
Not sure if that title is entirely accurate, but not sure how to descriobe it.
I have a fresh minimal install for a mythtv box.
Somewhere down the line I realised that I had SMP support in the kernel and subarch as PII, I decided to turn off the SMP and change the processor family to K8 (sempron 754 3000).
No when I I try to load ndiswrapper (the driver loads and hardware is present fine) I get this:
Code: | localhost ~ # ndiswrapper -l
wg311v3 : driver installed
device (11AB:1FAA) present
localhost ~ # modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.19-gentoo-r5/misc/ndiswrapper.ko): Invalid module format
localhost ~ # dmesg |grep ndiswrapper
ndiswrapper: version magic '2.6.19-gentoo-r5 mod_unload K8 REGPARM ' should be '2.6.19-gentoo-r5 SMP mod_unload PENTIUMIII REGPARM ' |
I have searched the forums, And have tried different solutions including
Code: | emerge gcc modules_init_install
make clean && make && make modules_install
emerge ndiswrapper
|
but no luck so far....[/quote]
Any hints?
Thanks
Last edited by beerisgoodmate on Mon Mar 12, 2007 4:50 pm; edited 1 time in total |
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Mon Mar 12, 2007 4:21 pm Post subject: |
|
|
The reason it's complaining is that the ndiswrapper module has been compiled against a kernel with options which are not the same as the running kernel's. Code: | localhost ~ # dmesg |grep ndiswrapper
ndiswrapper: version magic '2.6.19-gentoo-r5 mod_unload K8 REGPARM ' should be '2.6.19-gentoo-r5 SMP mod_unload PENTIUMIII REGPARM ' | From what you've said, the ndiswrapper module has been compiled against the new kernel but the running kernel is still the Pentium III/SMP one.
Check the timestamp of the kernel image in /boot which GRUB is loading against the timestamp of /usr/src/linux-2.6.19-gentoo-r5/arch/i386/boot/bzimage: they should be quite close. _________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
beerisgoodmate Tux's lil' helper
Joined: 20 May 2005 Posts: 129
|
Posted: Mon Mar 12, 2007 4:42 pm Post subject: |
|
|
well, the time stamp of the bzimage I have been copying accross is fine...
However, looking at grub.conf I am booting into /boot/kernel not /boot/bzimage!
Explains a few things if this is the case, I am recompiling the kernel at the moment so I will have to wait and see if this is my problem. But this looks promising. Thanks for the quick reply, you may have saved me some hours of sleep
[edit] solved! and you also solved all my other problems that have kept me up for the last 4 hours!@
[edit2] And now I am writing this wirelessly. So frustraing that one little change of spelling / convention meant so long recompiling and banging my keyboard when everything else including getting wireless going with WPA-PSK went so smoothly.... |
|
Back to top |
|
|
|