Reputation: 1
Am trying to insert a test module but getting an error like:
insmod: ERROR: could not insert module test.ko: Invalid module format
I have checked the kernel version and architecture: both the things are matches correctly and tried with uninstall and reinstall the headers but still same issue.
I have tried following things:
uname -r
5.15.0-52-generic
modinfo test.ko
license: GPL
srcversion: 0D9203C0EB39345D74EBCEF
vermagic: 5.15.0-52-generic SMP mod_unload modversions
uname -m
x86_64
file test.ko
test.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV),
BuildID[sha1]=274b1d760d4234e583f5abfc894f27fcc5c04ec1, with
debug_info, not stripped
How can I insert my module?
Upvotes: 0
Views: 267