linuxlinux-kernelkernelcross-compilinginsmod

insmod: 'error ... invalid module format' - cross compilation usage


I would like to solve this error which occurred, apparently, when updating and building a Kernel and using a previous Linux Device Driver Module (I changed one or two parameter setting to the kernel, compiled and built and get new Kernel image, for which the problem get started).

But, when building the new module device driver , I keep getting the error:

[nn.nnn] 'module.ko': version magic '4.9.0-00011-ge82bfab-dirty SMP mod_unload aarch64' should be '4.9.0 SMP mod_unload aarch64'

Few comments:

What I am missing here?


Solution

  • found the problem. Thought I was using the correct Kernel compilation but - as implied @Tsyvarev, i took the other Kernel version all this time. :-)