Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No modules will load, "Invalid Module Format"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Fri Jun 25, 2004 9:31 pm    Post subject: No modules will load, "Invalid Module Format" Reply with quote

iBook, dual-usb, kernel is 2.6.4-pegasos0 kernel

Problem: No modules load at boot time, none will be loaded after either. All modprobeing results in:
WARNING: Error inserting (name of module) (path of module): Invalid module format.

Possible causes

1) I recently added "ACCEPT_KEYWORDS="~ppc" " to my make.conf, and ran emerge world - that updated maybe 15-18 packages

2) I've never used the ethernet port before, and needed to add the module for it. I loaded my old kernel.conf, and added the module, "make vmlinux modules module_install"

I later rebooted, and now nothing will be modprobed
~ Michael
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Sat Jun 26, 2004 12:27 am    Post subject: replying to myself Reply with quote

I may have found it, or at least a hint. I know I'm posting in reply to my own post, but someone else may find this usefull.

If I run dmsg right after trying to modprobe a module, I get the following line:
Code:
airport: version magic '2.6.4-pegasos0 gcc-3.3'should be '2.6.4-pegasos0 gcc-3.2

I'm downgrading gcc to 3.2 to see if that'll fix the problem
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Sat Jun 26, 2004 5:04 am    Post subject: it worked Reply with quote

I had to re "make vmlinux modules modules_install", but it worked.

Actually, I had to run each make separately. It didn't work the first time
(eg -->
Code:
make vmlinux
make modules
make modules_install


~Michael
Back to top
View user's profile Send private message
toojays
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 150
Location: Adelaide, Australia

PostPosted: Sat Jun 26, 2004 7:24 am    Post subject: Reply with quote

Code:
airport: version magic '2.6.4-pegasos0 gcc-3.3'should be '2.6.4-pegasos0 gcc-3.2


This message is complaining that your kernel and the modules are incompatible because they were compiled with different versions of gcc. Instead of downgrading to gcc 3.2, you could have just rebuilt your kernel with gcc 3.3.
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Sat Jun 26, 2004 7:58 am    Post subject: I tried that... Reply with quote

I tried to compile it with gcc-3.3, but it still didn't want to work. I was going to upgrade my kernel soon-ish anyways, before school starts again, so I am currently emerging 3.3 again, then I'll emerge the latest kernel source, and modules.

Thanks for your help!
~Michael
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Sat Jun 26, 2004 2:11 pm    Post subject: Reply with quote

Quote:
I tried to compile it with gcc-3.3, but it still didn't want to work.


I presume that after compiling your kernel with
Code:

make clean && make vmlinux modules modules_install
that you copied the resultant "vmlinux" and "System.map" to /boot (assuming that your vmlinux and System.map are in /boot) ?
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Sat Jun 26, 2004 3:08 pm    Post subject: yes...er, sort of Reply with quote

I did not make clean...I guess I should have, huh? 8O
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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