LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-07-2004, 03:20 AM   #1
RedDwarf
LQ Newbie
 
Registered: Aug 2004
Posts: 25

Rep: Reputation: 15
"Invalid module format" after FULL kernel recompile


I have compiled (my first kernel compile) the last kernel from mandrake RPM ( linux-2.6.3-15mdk ) optimizing for K7 and making it preemptive.
Now all modules say this at load "version magic '2.6.3-15mdk 586 ' should be '2.6.3-15mdk preempt K7 '"

Makefile says:
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 3
EXTRAVERSION = -15mdkcustom

modinfo says:
vermagic: 2.6.3-15mdk 586

And I have tried with and without "Module versioning support"

Any idea of how to solve this?
 
Old 08-07-2004, 11:44 AM   #2
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Did you do:

make modules_install

and also did you creat a new initrd?
 
Old 08-07-2004, 12:34 PM   #3
RedDwarf
LQ Newbie
 
Registered: Aug 2004
Posts: 25

Original Poster
Rep: Reputation: 15
Yes I did, and the initrd was made by "make install".

I have saw that the problem is that it seems to ignore "EXTRAVERSION". "uname -r" says "2.6.3-15mdk" and not "2.6.3-15mdkcustom" and so it uses the modules at "/lib/modules/2.6.3-15mdk" and no at "/lib/modules/2.6.3-15mdkcustom".
Copying the directory of modules from "mdkcustom" to "mdk" (with a backup of mdk) everything works, but...
 
Old 08-07-2004, 02:57 PM   #4
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Ok, are you sure you are actually booting the new kernel? uname -r _should_ give the version of the kernel that is actually running. This is rather peculiar. Never had anything like this happen myself, but then I always download the plain vanilla kernel source from kernel.org and manually install. (Copying the bzImage etc. myself and editing the boot menu myself.
 
Old 08-07-2004, 03:33 PM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
why don't u try out by changing ur

EXTRAVERSION

to something small


hope this helps
 
Old 08-07-2004, 04:44 PM   #6
RedDwarf
LQ Newbie
 
Registered: Aug 2004
Posts: 25

Original Poster
Rep: Reputation: 15
xD ......was the too long name

Thanks to both.
 
Old 08-07-2004, 07:46 PM   #7
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Hmm, that's a new one. Never imagined there was a length limit on EXTRAVERSION. Don't remember anything in the kernel docs. Glad you got it working.

Completely off topic, your username RedDwarf wouldn't have anything to do with Rimmer, Lister, Kryton, Kat, Holly and Christine would it. Just curious.
 
  


Reply



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
Realtek 8180 ,Debian, "Invalid module format" medo Linux - Wireless Networking 0 05-25-2005 07:08 AM
fglrx - "Invalid module format" Carl-Fredrik Linux - Hardware 1 10-29-2004 10:55 AM
Redhat 9 recompile kernel for "module" support? realized Linux - Newbie 2 10-11-2004 03:42 AM
"invalid module format" kinasz Linux - General 2 06-05-2004 03:04 AM
"Invalid module format" when I try to install my ATI drivers freddurgan Linux - Newbie 2 05-21-2004 10:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration