Tiny Core Base > Raspberry Pi

OV9281 DToverlay not loading kernel module

<< < (2/5) > >>

Juanito:
The headers are supplied by linux-6.12.y_api_headers.tcz or similar.

After preparing the piCore kernel you should be able to compile an individual module using make -C

zharr:
EDIT: Nevermind
Do you know which packages I'd need? I got the api headers (which I'm not sure when they'll come into play yet), the picore-specific source + 6.1.68-piCore-v7l_Module.symvers (not sure if I need to rename that file), and ran make prepare / modules_prepare. So far so good

patrikg:
Have you also see that picore 13 is very old it's now 15 or 16.

http://tinycorelinux.net/15.x/

And you can also get the precompiled modules in the modules package.
If this module is in the mainline.
http://tinycorelinux.net/15.x/aarch64/releases/RPi/src/kernel/

zharr:
Yes, but we're in the embedded world - I'm using this for an embedded computer vision camera. Whether it's 5 or 10 years old doesn't really matter to me. What does matter is that 13 has a wifi problem, and 14 has a camera problem, and I see myself fixing a faulty driver module more than fixing a faulty kernel/wifi stack (and having to distribute that).
15 seems to have no packages for armv6, and I'd like to retain compatibility with pi zero 1s (since they are mostly sufficient for my purposes and it's a DIY-friendly project). Considering I didn't see any announcement of dropping og Pi Zero 1 support with 15, that might have been an oversight. Can explore that later, fact is 15 has the same broken ov9281 behaviour, so where I fix this first doesn't really matter.

zharr:
On that note, I compiled the unmodified ov9281 kernel module earlier, but have a problem

--- Code: ---insmod: can't insert './ov9281.ko': invalid module format
--- End code ---
I 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:

--- Code: ---sudo make prepare
sudo make modules_prepare
--- End code ---
Then, in a separate module folder, where I extracted both ov9281 and ov9282, with stripped makefile, I ran

--- Code: ---sudo make -C ../kernel M=$PWD
--- End code ---
After getting the above error for the first time, I saw with modinfo that my own module had a difference to the system module:

--- Code: ---vermagic:       6.1.68-piCore-v7l SMP mod_unload modversions ARMv7 p2v8
--- End code ---
where the system one had:

--- Code: ---vermagic:       6.1.68-piCore-v7 SMP mod_unload modversions ARMv7 p2v8
--- End code ---
So 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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version