This repo builds a BalenaOS builder image which is then used to build a custom BalenaOS.
$ export RELEASE=warrior
docker build -t balena-builder:$RELEASE --build-arg FSL_BRANCH=$RELEASE --no-cache .
Fetch the balena-intel sources
$ cd /build
$ git clone --recursive https://github.com/balena-os/balena-intel.git
Build for the current targe machine intel-nuc
$ docker run --rm -it --privileged -v /build:/home/build balena-builder ./balena-yocto-scripts/build/barys --rm-work -d --machine intel-nuc
Alternatively build all Balena supported platforms
$ docker run --rm -it --privileged -v $(pwd)/build/balena-intel:/home/build balena-builder
This will take a while
This process is based on alexgg's docker-balena
Relevant balenaOS forum posts and documentation
- https://forums.balena.io/t/missing-usbmon-module/5445
- https://forums.balena.io/t/can-drivers-in-nuc-image/89143
$vim balena-intel/layers/meta-balena-genericx86/recipes-kernel/linux/linux-yocto_%.bbappend
```zsh
# Notes
Linux CAN drivers are in `~/linux-src/linux/drivers/net/can/usb` in Linux kernel source tree.