Building balenaOS for RPI4


I’m trying to build I’m trying to accomplish that using resin/yocto-build-env, getting into the container with the following command:

docker run -v /var/run/docker.sock:/var/run/docker.sock -v $SSH_AUTH_SOCK:/tmp/ssh-agent -e SSH_AUTH_SOCK=/tmp/ssh-agent -e BUILDER_UID=$(id -u) -e BUILDER_GID=$(id -g) --privileged -it resin/yocto-build-env /bin/bash

In the container, I clone the repo, checkout the branch, init the submodules and then run ./balena-yocto-scripts/build/barys -m raspberrypi4-64. Unfortunately, the building stops at

ERROR: Nothing PROVIDES 'resin-image'
resin-image was skipped: missing required distro feature 'systemd' (not in DISTRO_FEATURES

Being a complete yocto newbie, I’m not sure how to proceed here.

Appreciate your help,

Hello @wngr unfortunately we don’t support rpi4 yet, but we are working hard have it ready as soon as possible. I forwarded this to the devices team in the hopes they can find some time to take a look and point you in the right direction, but keep in mind we can not guarantee support for this yet.