LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-28-2005, 12:20 PM   #1
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
Gentoo says Invalid Module Format


I have a PC running gentoo with a 2.6.11-gentoo-r6 kernel. It all appears to work as it should and I am now trying to get a DVB card running on it.

I have downloaded a video4linux patch that I understand is necessary for this and have applied it to my kernel sources. The patch appears to go OK - no error messages of any kind.

I then do a make menuconfig and set the options required for my DVB card.

I then make and make install, all of which appears to go OK. Point grub to my new kernel and reboot. I now get the following error messages on all my modules

FATAL: Error inserting <path>cx88xx.ko: Invalid module format

My new kernel is called 2.6.11-gentoo-r6-kraxel1

If I do dmesg I see a message saying -

cx88xx: version magic '2.6.11-gentoo-r6' should be '2.6.11-gentoo-r6-kraxel1'

Now I interpret this as meaning that the new kernel is trying to load modules for the old kernel and not the ones I compiled for the new one - and it doesn't like it.

Can anyone tell me if my interpretation is right and where I go to fix the fact that the modules are being pulled from the wrong directory?

Thanks

Pete
 
Old 10-28-2005, 12:30 PM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
I didn't see "make modules_install" in that list. . .
 
Old 10-31-2005, 04:03 AM   #3
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Original Poster
Rep: Reputation: 184Reputation: 184
Ummm...I did do that...I 'm sure I did that.....didn't I? OK.. I'll try it again before I put on my "meet Mr Stupid" hat.

Cheers
 
Old 10-31-2005, 04:18 AM   #4
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Original Poster
Rep: Reputation: 184Reputation: 184
No, I did do that, sorry should have said. I do make modules and then make modules_install. I get the same thing. Invalid format. Any idea's?

Cheers
 
Old 10-31-2005, 04:51 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,353

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
In your config, set General setup -> Local version to kraxel1 and redo the make && make modules_install.
 
Old 10-31-2005, 07:33 AM   #6
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Original Poster
Rep: Reputation: 184Reputation: 184
OK, good call syg00, I now can use the driver modules I need. Unfortunately X now fails to start reporting an error in /var/log/Xorg.0.log -

(EE) NVIDIA(0): Failed to Initialize the NVIDIA kernel module.
(EE) NVIDIA(0): *** Aborting ***
(II) UnloadModule: "nvidia"
(EE) Screens found, but none have a usable configuration.

This works fine with my normal kernel, why should the patched kernel have killed it?

Every time I fix one thing I seem to break something else, its very frustrating :-(

Cheers
 
Old 10-31-2005, 07:52 AM   #7
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
You need to reinstall Nvidia when you use a new version of the kernel - it's not a bad idea to get into a routine of re-emerging Nvidia every time you compile a new kernel. . . so see if that fixes it!
 
Old 11-03-2005, 05:44 AM   #8
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Original Poster
Rep: Reputation: 184Reputation: 184
Thats fixed that bit, thanks! I'm another tiny baby step forward
 
Old 08-16-2007, 05:46 AM   #9
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Rep: Reputation: 15
Lightbulb Another solution!

I had a similar problem whereby

# uname -r

Would report a different version number than the local version configured when compiling the kernel.

I'm retrying it now, after i've emerged "git" - the comment in the config says something about it requiring "git" to work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid module format king111 Linux - Newbie 4 07-19-2005 01:14 AM
fglrx --> Invalid module format Ezzy Linux - Hardware 1 05-10-2005 02:16 AM
insmod invalid module format csfalcon Linux - Hardware 6 01-24-2005 11:03 AM
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-27-2004 11:40 PM
invalid module format powadha Slackware 5 12-25-2003 04:19 PM


All times are GMT -5. The time now is 07:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration