kqemu: Invalid module format
I compiled kqemu 0.7.2 but when I try to insmod the module I get an error:
# insmod /lib/modules/2.6.11-9-amd64-k8/misc/kqemu.ko insmod: error inserting '/lib/modules/2.6.11-9-amd64-k8/misc/kqemu.ko': -1 Invalid module format
Compiling the module seemed to go cleanly. Any suggestions on where I might have gone wrong?
Please cc me in your reply. Thanks,
Shaun
$ uname -a Linux jinx.pathway.internal 2.6.11-9-amd64-k8 #1 Mon Jun 27 22:07:27 MDT 2005 x86_64 GNU/Linux $ nm /lib/modules/2.6.11-9-amd64-k8/misc/kqemu.ko | grep ' T ' 0000000000000380 T cleanup_module 00000000000002a0 T init_module 0000000000000010 T kqemu_alloc_zeroed_page 0000000000000fb0 T kqemu_delete 0000000000001a70 T kqemu_exec 0000000000000090 T kqemu_free_page 0000000000001a60 T kqemu_get_cpu_state 0000000000001050 T kqemu_init 0000000000000140 T kqemu_io_map 0000000000000150 T kqemu_io_unmap 00000000000005a0 T kqemu_lock_user_page 0000000000000160 T kqemu_log 00000000000000a0 T kqemu_page_kaddr 0000000000000400 T kqemu_schedule 00000000000003b0 T kqemu_unlock_user_page 00000000000000f0 T kqemu_vfree 00000000000000d0 T kqemu_vmalloc 0000000000000100 T kqemu_vmalloc_to_phys 0000000000000a30 T s013 000000000000212c T s015 0000000000002538 T s016 0000000000000a50 T s017 0000000000000690 T s018
The kqemu module wouldn't load because I had compiled the kqemu module using gcc 4.0.2, whereas the kernel had been compiled using gcc 3.4.5. I recompiled the module using gcc 3.4.5 and it worked wonderfully!
Cheers,
Shaun
2005/11/21, Shaun Jackman <[email protected]>:
Quoted 12 lines
I compiled kqemu 0.7.2 but when I try to insmod the module I get an error:
# insmod /lib/modules/2.6.11-9-amd64-k8/misc/kqemu.ko insmod: error inserting '/lib/modules/2.6.11-9-amd64-k8/misc/kqemu.ko': -1 Invalid module formatCompiling the module seemed to go cleanly. Any suggestions on where I might have gone wrong?
Please cc me in your reply. Thanks,
Shaun