I try to install a module using this command:
sudo insmod mymod.ko [arg1] [arg2]
but I get this error while loading the module:
insmod: error inserting 'mymod.ko': -1 Invalid module format
my current kernel:
uname -r
4.4.6-040406-generic
To compile the module for my linux kernel, I downloaded linux 4.4.6 since I couldn't find any source code for 4.4.6-040506-generic. This is the information about the module:
modinfo mymod.ko
vermagic: 4.4.6 SMP mod_unload modversions
When I try to boot the kernel from the compiled source code, it fails to boot. It stuck with busybox and prompt initramfs.
Any suggestion?