Flashing custom yocto build to SD card

Hey @bblankenship,

So happy to hear you had success flashing your custom build of balenaOS! It’s quite a process so I can appreciate the effort you put into it :slight_smile:

As for manually copying the config.txt into your image, might I suggest an easier method? Using the balenaCLI you can interactively generate a device configuration once, then provision your OS image to your existing application.

Here’s the CLI doc for generating a config:

Here’s the CLI doc for configuring your image:

For example, to provision your OS image to your existing app:

$ balena os build-config ../path/resin-image-raspberrypi4-64-20201211013047.rootfs.img raspberrypi4-64 --output raspberrypi4-64-config.json
$ balena os configure ../path/resin-image-raspberrypi4-64-20201211013047.rootfs.img --app MyApp --config raspberrypi4-64-config.json

Or if you want to streamline the process, you can generate

Regarding cmdline.txt, did you make any customization to this file that required it being added to the image? The file produced by the yocto build should be sufficient for most cases.

We are looking into the Etcher errors and will let you know if we have any updates or require additional information!

Take care,
Kyle