Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
broken modules from kernel recompile? [Solved!]
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
beerisgoodmate
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2005
Posts: 129

PostPosted: Mon Mar 12, 2007 3:36 pm    Post subject: broken modules from kernel recompile? [Solved!] Reply with quote

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
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Mon Mar 12, 2007 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
beerisgoodmate
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2005
Posts: 129

PostPosted: Mon Mar 12, 2007 4:42 pm    Post subject: Reply with quote

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
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