We would like to do a linux update from a running system.
My thoughts about implementing this process:
- Download tar.bz2 from Server / Load via USB
- Extract and write to sd card (update.sh -o /mountpoint)
- Save database to sdcard
- Instruct u-boot to flash the eMMC with the image from the sdcard and reset the env vars
My only problem is, I’m sure how to do step nr. 4.
As far as I know there is the tool
fw_setenv to set env vars from a running system. And there is the env var
bootcmd, which is executed at startup, right? What value is needed for bootcmd to initiate the update?
is it just
run setupdate && run update && env default -a && saveenv && boot?