Hey all, I just realized something. The stock Debian image for the BeagleBone Black comes with a flasher. And that has been very useful to quickly get a new board set up. I tried to modify that to work with our Mender image. However I was unsuccessful. Does anyone have any ideas as to how I can write the image on the SD card to the onboard emmc at boot time?
Dont know much about BBB, but if it uses uboot bootloader then there’s normally an option (by dropping into uboot shell) to put your emmc into USB mass storage mode which can be mounted as a block storage device on your laptop/pc.
Yes, U-Boot has the ums command which will do that.
Bootloaders aren’t really my area of expertise
I was looking for more of an autonomous way to do it; where I just insert the SD card, boot, and just wait. The only other thing I can think of is to write a script that runs at startup which will just dd the image file that I have included.
As you said you will need to add a startup script that will image the file from your sdcard to emmc either if the image exists or when the user button gpio is held high (or low depending on the electronics. The BBB boot scripts appear to be on github for inspiration