Currently trying to get BalenaOS up and running on SolidRun’s SolidSense IoT gateway. I was hopeful that it would work with BalenaOS out of the box because the underlying hardware is just a Hummingboard Gate/Edge.
When I insert the SD card the resin-image-flasher executable runs, provisions the device, and attempts to flash the image to the internal eMMC on the hummingboard. Then it reboots the device as normal. The first issue is that the Hummingboard Gate/Edge has configurable boot select jumpers that need to be physically changed to boot from eMMC, so if the device boots again from the SD card it attempts to provision itself again and creates a whole new device in the Balena dashboard. When I power off the device, change the jumpers, and power it back on, it fails to boot from eMMC and I’m stuck at the uboot command line. From the UBoot command line I can see that the image was loaded to eMMC, but uboot does not seem to want to load the OS.
I have a workaround for the problem above:
- Insert SD card with BalenaOS image and power up the board.
- Allow it to provision itself and when it restarts power off the device.
- Manually remove the resin-image-flasher executable from the balenaOS image flash-boot folder.
- Re-insert SD card and power up hummingboard.
This workaround brings the board online as the device it just provisioned itself as. The issue I’m facing now is an infinite update loop when the image is attempting to update but reports that it is running out of space.
06.08.19 11:34:47 (-0600) Downloading image ‘registry2.balena-cloud.com/v2/4f184cf667e4059c5d430a7cf617ab1c@sha256:bec45c512ccd912492d3e4369cb5926ed86f754ab1ee829f09cca325889cd108’
06.08.19 11:39:14 (-0600) Failed to download image ‘registry2.balena-cloud.com/v2/4f184cf667e4059c5d430a7cf617ab1c@sha256:bec45c512ccd912492d3e4369cb5926ed86f754ab1ee829f09cca325889cd108’ due to ‘failed to register layer: Error processing tar file(exit status 1): write /usr/lib/jvm/java-8-openjdk-armhf/lib/tools.jar: no space left on device’
I have the image flashed on to a 16gb sd card. Is there something special I need to do to expand the partitions/ which partitions would need to be expanded?