BeagleY-AI build kernel modules - how?

Hi all,

I have to rebuild one IMU device driver and also add a new driver to the BeagleY-AI. How can I do that? I tried to find a debian source package for the kernel “bbb.io-kernel-6.1-ti-k3-j722s” but found none.

Is there a way just to (re)build single, local kernel modules for which I have the sources given a currently installed kernel or do I really have to rebuild and replace the whole kernel?

Regards
jgrmpf

At The Kernel — BeagleBoard Documentation I find this:

When compiling on the Bone, all you need to do is load the Kernel Headers for the version of the kernel you’re running:

bone$ sudo apt install linux-headers-$(uname -r)

Does this also apply to BeagleY-AI?

Correct, or use the kernel module thru CONFIG_KHEADERS which is enabled…

Regards,