Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[part SOLVED] disagrees bout version of symbol module_layout
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
Munin
n00b
n00b


Joined: 30 Jun 2007
Posts: 41
Location: Germany

PostPosted: Sat Apr 17, 2010 12:30 pm    Post subject: [part SOLVED] disagrees bout version of symbol module_layout Reply with quote

today I somehow managed to mess up my kernel
I was trying to get an old wifi-stick (D-Link DWL-G122, rt73) to work

I don't have a clue what I did wrong but when I booted into the new kernel a lot of modules failed to start, among them nfsd and basically anything related to sound, all complaining about the version of the symbol module_layout
what's really strange is that I just recompiled my 2.6.32-tuxonice-r5, I didn't use a new one
"make clean" didn't help and now I'm pretty helpless... I have no idea what causes those problems, after all its kernel-stuff that fails 8O

when I try to modprobe rt73usb it says
Code:
FATAL: Error inserting rt73usb (/usr/lib/modules/2.6.32-tuxonice-r5/kernel/drivers/net/wireless/rt2x00/rt73usb.ko): Invalid module format

the same goes for "modprobe snd" (and basically all the others):
Code:
FATAL: Error inserting rt73usb (/usr/lib/modules/2.6.32-tuxonice-r5/kernel/sound/core/snd.ko): Invalid module format


I knew that problem from the nvidia-drivers but strangely X still starts and nvidia-drivers work fine

does anyone have an idea on how to fix this?
_________________
Laptop: Asus F3JM | Core2Duo T5600 | 2048MB DDR2 RAM | GeForce Go 7600 | TuxOnIce 2.6.31
Desktop: custom | Core2Quad Q9650 | 4096MB DDR2 RAM | GeForce GTX285 | TuxOnIce 2.6.32


Last edited by Munin on Wed Apr 21, 2010 10:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sat Apr 17, 2010 3:05 pm    Post subject: Reply with quote

Perhaps something changed over all the modules.

Perhaps a make modules_install will fix that?
Back to top
View user's profile Send private message
Munin
n00b
n00b


Joined: 30 Jun 2007
Posts: 41
Location: Germany

PostPosted: Sat Apr 17, 2010 3:23 pm    Post subject: Reply with quote

I always do that when I compile the kernel... "make && make modules_install"
and if I'm not mistaken "make clean" should have removed everything "make" created, so everything should be created anew - including all those modules
(correct me if I'm wrong)
_________________
Laptop: Asus F3JM | Core2Duo T5600 | 2048MB DDR2 RAM | GeForce Go 7600 | TuxOnIce 2.6.31
Desktop: custom | Core2Quad Q9650 | 4096MB DDR2 RAM | GeForce GTX285 | TuxOnIce 2.6.32
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23193

PostPosted: Sat Apr 17, 2010 4:35 pm    Post subject: Reply with quote

Munin wrote:
I always do that when I compile the kernel... "make && make modules_install"
and if I'm not mistaken "make clean" should have removed everything "make" created, so everything should be created anew - including all those modules
(correct me if I'm wrong)
You are slightly incorrect on the details. make with no targets will build all, which compiles both the kernel and the modules. make install will install the kernel, system map, and supporting config. make modules_install will install just the modules. make clean will clean most, but not all, products of a build. In particular, make clean cleans the build tree, and does not touch anything you installed. Are you certain that you installed both the new kernel and the new modules to your live filesystem? Check the mtimes on both. In the meantime, it may be helpful to boot back to your previously built fully functioning kernel.
Back to top
View user's profile Send private message
Munin
n00b
n00b


Joined: 30 Jun 2007
Posts: 41
Location: Germany

PostPosted: Sat Apr 17, 2010 5:23 pm    Post subject: Reply with quote

I do know how make works, I just didn't check what rules the target clean has ;) (after all that Makefile is damn huge)

I tried booting the old kernel, was no use, the modules are the same :? (same kernel version... I expected as much since the path to those files depends on the kernel version)
_________________
Laptop: Asus F3JM | Core2Duo T5600 | 2048MB DDR2 RAM | GeForce Go 7600 | TuxOnIce 2.6.31
Desktop: custom | Core2Quad Q9650 | 4096MB DDR2 RAM | GeForce GTX285 | TuxOnIce 2.6.32
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Apr 17, 2010 5:44 pm    Post subject: Reply with quote

Munin,

Have you done a gcc upgrade?
The kernel checks that modules are made with the same version if gcc that it was. make clean should have taken care of that though.

Try
Code:
emerge -1 module-init-tools
to rebuild modprobe and friends.
_________________
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
Munin
n00b
n00b


Joined: 30 Jun 2007
Posts: 41
Location: Germany

PostPosted: Sat Apr 17, 2010 6:01 pm    Post subject: Reply with quote

if I'm not mistaken I didn't update gcc
I will give your suggestion a try as soon as I can get online with that machine

I'll also try compiling with an older version of gcc, just for the fun of it...
_________________
Laptop: Asus F3JM | Core2Duo T5600 | 2048MB DDR2 RAM | GeForce Go 7600 | TuxOnIce 2.6.31
Desktop: custom | Core2Quad Q9650 | 4096MB DDR2 RAM | GeForce GTX285 | TuxOnIce 2.6.32
Back to top
View user's profile Send private message
Munin
n00b
n00b


Joined: 30 Jun 2007
Posts: 41
Location: Germany

PostPosted: Wed Apr 21, 2010 10:30 pm    Post subject: Reply with quote

I was able to sorta fix the problem

here's what I did
boot a different kernel (different version!)
remove /lib/modules/2.6.32-tuxonice-r5/
(make sure /usr/src/linux still points to 2.6.32-tuxonice-r5)
cd to /usr/src/linux-2.6.32-tuxonice-r5
make && make modules_install
copy the new image to /boot, like usual
reboot into newly built kernel


all modules get loaded without any problems again
yet one new problem occured:
I can modprobe rt73usb, yet ifconfig -a doesn't show any new interfaces, no eth1, no wlan0


suggestions welcome, yet for now I'm just glad I can use my system again... would be nice if I could access the internet with it, too, though
_________________
Laptop: Asus F3JM | Core2Duo T5600 | 2048MB DDR2 RAM | GeForce Go 7600 | TuxOnIce 2.6.31
Desktop: custom | Core2Quad Q9650 | 4096MB DDR2 RAM | GeForce GTX285 | TuxOnIce 2.6.32
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Apr 22, 2010 5:42 pm    Post subject: Reply with quote

Munin,

That suggests your wlan0 interface is not an rt73 device.
The firmware is missing - look in dmesg. It should be in /lib/firmware
The kernel may be missing the firmware loading option but from memory, thats turned on by other kernel options that you should have turned on anyway.
_________________
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
Munin
n00b
n00b


Joined: 30 Jun 2007
Posts: 41
Location: Germany

PostPosted: Sun Apr 25, 2010 5:16 pm    Post subject: Reply with quote

you're right!
when I first googled the first three results all said its rt73 (so I didn't check any more), after your post I googled once more and all results said its rt2500usb...
so, anyway, the stick now works, thanks once more :)
_________________
Laptop: Asus F3JM | Core2Duo T5600 | 2048MB DDR2 RAM | GeForce Go 7600 | TuxOnIce 2.6.31
Desktop: custom | Core2Quad Q9650 | 4096MB DDR2 RAM | GeForce GTX285 | TuxOnIce 2.6.32
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