I tried building my required kernel module using https://github.com/balena-os/kernel-module-build. When I settled on using beaglebone-black headers, rather than beaglebone-green-wifi, I was able to find a version matching the balenaOS version and get my module built. However, when I loaded it, my iio subsystem stopped reporting a local service.
The module works for me in the latest 5.4.70-ti-r21 kernel from https://github.com/beagleboard/linux, so I tried simply installing it from the .deb file. It reported
insmod: ERROR: could not insert module ./hm3301.ko: Invalid module format
I’ve gone through the hurdles of building my own disk image using the meta-balena sources, so I thought I might be able to figure out how to extract the right bits and update the balenaOS. I was rather confused by this error.
Looking at this forum in making this post, I found Remote OS upgrade of custom host image possible?. The original link to the hostapp-update script seems to be broken, but https://github.com/balena-os/balenahup is there and seems to be the new method. I’m still working through it as I have to get my Yocto build setup again, but let me know if I’m making it harder than it needs to be.