I am working with a nitrogen8mm and have a yocto image that successfully flashes via SD card. I am looking to add mender support for this image via the mender layer. Previously, I had used the kirkstone release docs here to flash the produced image via Mender, but this image assumes flashing via eMMC, not SD card. Mender Kirkstone Release for i.MX8 platforms - Boundary Devices
I was told that the mender layer would need to be adjusted to be able to support an image that flashes via the SD card, as the default flashes via eMMC. How would I adjust the mender layer in my yocto image to allow it to flash via SD card and also be able to be flashed with mender?
MENDER_STORAGE_DEVICE looks promising. I was assuming that if MENDER_STORAGE_DEVICE=/dev/sda or something, there would need to be some repartitioning with some other config as well. I see there is a “mender-convert” option which looks like it could be helpful as well, but there are only a few different platforms officially supported with this. (not arm64 like I am looking for)
@texierp if you have any more information that you’d be able to share too, that’d be greatly appreciated!
The MENDER_STORAGE_DEVICE variable should in practice only affect the configuration files which are shipped with the image, e.g. /etc/mender/mender.conf and eventually u-boot scripts.
If you’ve given it a try, please let us know if it works for you so others can benefit too.
I attempted to change these two things in my yocto build and it broke the build with the following error:
Failed to load ‘/boot/imx8mm-nitrogen8mm_rev2.dtb’
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via “fdt addr ” command.
Aborting!