Hi! I have a makefile which builds my module using the new kbuild system of kernel 2.6. As a result i will get a .o and a .ko module file which i try to load via insmod. Both of these file return the "invalid module format" error. The logfile does not give further information on the error. What is the new module format? Is there any information about it? I've read the kbuild documentation and lots of newsgrep entries but nothing helped me... Is there a possibility to get more information about my specific error? Has anyone a solution. I'm beginning to curse the new kernel :-(((( I had some mail traffic with Andi Kleen who gave me some hints, i should define KBUILD_MODNAME and i should enable the "DEBUGP" define in kernel/module.c and arch/x86_64/kernel/module.c and recompiling to get some information. I mailed him the output but he couldn't help anymore. I attached my Makefile and the output from insmod in my logfile. Thanks for your patience Carsten
Attachment:
Makefile
Description: Binary data
Feb 11 17:36:04 s20c41 kernel: load_module: umod=0000002a95582010, len=132290, uargs=0000000000502010 Feb 11 17:36:04 s20c41 kernel: Core section allocation order: Feb 11 17:36:04 s20c41 kernel: ^I.text Feb 11 17:36:04 s20c41 kernel: ^I.fixup Feb 11 17:36:04 s20c41 kernel: ^I.exit.text Feb 11 17:36:04 s20c41 kernel: ^I.rodata Feb 11 17:36:04 s20c41 kernel: ^I__param Feb 11 17:36:04 s20c41 kernel: ^I__ex_table Feb 11 17:36:04 s20c41 kernel: ^I.eh_frame Feb 11 17:36:04 s20c41 kernel: ^I.symtab Feb 11 17:36:04 s20c41 kernel: ^I.strtab Feb 11 17:36:04 s20c41 kernel: ^I.data Feb 11 17:36:04 s20c41 kernel: ^I.gnu.linkonce.this_module Feb 11 17:36:04 s20c41 kernel: ^I.bss Feb 11 17:36:04 s20c41 kernel: Init section allocation order: Feb 11 17:36:04 s20c41 kernel: ^I.init.text Feb 11 17:36:04 s20c41 kernel: ^I.init.data Feb 11 17:36:04 s20c41 kernel: addr ffffffffa0000000 Feb 11 17:36:04 s20c41 kernel: module_alloc size 69632 = ffffffffa0000000 Feb 11 17:36:04 s20c41 kernel: vmlist ffffffffa0000000 73728 addr ffffffffa0000000 Feb 11 17:36:04 s20c41 kernel: addr ffffffffa0012000 Feb 11 17:36:04 s20c41 kernel: module_alloc size 8192 = ffffffffa0012000 Feb 11 17:36:04 s20c41 kernel: final section addresses: Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa0000000 .text Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa0012000 .init.text Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa000a144 .fixup Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa000a1b8 .exit.text Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa000a540 .rodata Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa000cfd8 __param Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa000d000 __ex_table Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa000d0b0 .eh_frame Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa0010420 .data Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa0010900 .gnu.linkonce.this_module Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa0013670 .init.data Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa0010e80 .bss Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa000dae8 .symtab Feb 11 17:36:04 s20c41 kernel: ^I0xffffffffa000f4b0 .strtab Feb 11 17:36:04 s20c41 kernel: Absolute symbol: 0x00000000 Feb 11 17:36:04 s20c41 last message repeated 7 times Feb 11 17:36:05 s20c41 kernel: Common symbol: asPciDataRec