Hello,
Please have a look at https://github.com/balena-os/kernel-module-build and check its README
I was able to build https://github.com/gnab/rtl8812au with it (couldn’t try as I don’t have a pi4)
Basically:
-
git clone git@github.com:balena-os/kernel-module-build.git
; -
cd kernel-module-build
; -
git clone https://github.com/gnab/rtl8812au
; - edit
Dockerfile.template
, change VERSION to2.60.1+rev5.prod
andexample_module
tortl8812au
; - commit your changes;
-
balena push someRaspberryPi4Application
;