Skip to content

Build BalenaOS in a docker maintained builder environment

License

Notifications You must be signed in to change notification settings

sthysel-freight/balena-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BalenaOS builder (Version 0.0.1)

Shark Horse

This repo builds a BalenaOS builder image which is then used to build a custom BalenaOS.

Build the builder

$ export RELEASE=warrior
docker build -t balena-builder:$RELEASE --build-arg FSL_BRANCH=$RELEASE --no-cache .

Use the builder to build BalenaOS

Prepare BalenaOS on host

Fetch the balena-intel sources

$ cd /build
$ git clone --recursive https://github.com/balena-os/balena-intel.git

Use the balena-builder container to build BalenaOS

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

Resources

This process is based on alexgg's docker-balena

Relevant balenaOS forum posts and documentation

Patch the build

$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.

About

Build BalenaOS in a docker maintained builder environment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published