On that note, I compiled the unmodified ov9281 kernel module earlier, but have a problem
insmod: can't insert './ov9281.ko': invalid module formatI took the kernel source, .config, Module.symvers and System.map
from here (latter 3 renamed without the prefix, in the source folder).
Then I ran in that kernel source folder:
sudo make prepare
sudo make modules_prepareThen, in a separate module folder, where I extracted both ov9281 and ov9282, with stripped makefile, I ran
sudo make -C ../kernel M=$PWDAfter getting the above error for the first time, I saw with modinfo that my own module had a difference to the system module:
vermagic: 6.1.68-piCore-v7l SMP mod_unload modversions ARMv7 p2v8where the system one had:
vermagic: 6.1.68-piCore-v7 SMP mod_unload modversions ARMv7 p2v8So I cleaned everything, modified .config CONFIG_LOCALVERSION to match that "v7", recompiled, but still, "invalid module format"
Do I really need to compile and switch to that kernel, or what am I missing to be able to compile against the current kernel? uname -r does output "6.1.68-piCore-v7" as expected.