LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   "Invalid module format" after FULL kernel recompile (http://www.linuxquestions.org/questions/linux-general-1/invalid-module-format-after-full-kernel-recompile-214567/)

RedDwarf 08-07-2004 04:20 AM

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

kevinalm 08-07-2004 12:44 PM

Did you do:

make modules_install

and also did you creat a new initrd?

RedDwarf 08-07-2004 01:34 PM

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

kevinalm 08-07-2004 03:57 PM

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.

masand 08-07-2004 04:33 PM

why don't u try out by changing ur

EXTRAVERSION

to something small


hope this helps

RedDwarf 08-07-2004 05:44 PM

xD ......was the too long name

Thanks to both.

kevinalm 08-07-2004 08:46 PM

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.


All times are GMT -5. The time now is 08:59 PM.