This repository uses the repo tool instead of gitsubmodules to track the different layers required.
sudo curl -o /usr/local/bin/repo http://commondatastorage.googleapis.com/git-repo-downloads/repo
sudo chmod a+x /usr/local/bin/repo
sudo install -o <your-user> -g <your-group> -d ~/balena-digi
cd ~/balena-digi
repo init -u ssh://git@stash.digi.com/~agonzal/balena-digi.git -b thud
repo sync -j8 --no-repo-verify
local.conf
.See below for using the build script.
./balena-yocto-scripts/build/barys
For a development image with a console, use the "-d" flag as in:
./balena-yocto-scripts/build/barys -d
Run the build script in dry run mode to setup an empty build
directory
./balena-yocto-scripts/build/barys --remove-build --dry-run
Edit the local.conf
in the build/conf
directory
Prepare build's shell environment
source layers/poky/oe-init-build-env
Run "MACHINE=
`nand erase.chip`
`update uboot tftp u-boot-<machine>.imx`
`reset`
`env default -a`
`env set serverip <serverip_addr>`
`env set ipaddr <target_ipaddr>`
`env save`
`update resin-boot tftp resin-image-<machine>.boot.ubifs`
`nand erase.part resin-rootA`
`ubi part resin-rootA`
`ubi createvol resin-rootA`
`update resin-rootA tftp resin-image-<machine>.hostapp-ubifs`
`boot`
For issues we use an aggregated github repository available here. When you creaste issue make sure you select the right labels.
To contribute send github pull requests targeting this repository.
Please refer to: Yocto Contribution Guidelines