Pi3 USB boot support

Thanks for your input. These values are default from both upstream u-boot and the Mender fork, as well as what’s recommended in Mender from scratch.

When is the env supposed to be written to that space, and how can I inspect it ? My build process involves creating a golden master with the OS, then making an image of that that is inserted in an sd card, which job is to flash the internal SSD with the image. It all works except this part.

Strangely, the golden master does manage to connect to mender, even though fw_printenv shows a similar output. Any leads on this ?

golden master fw_printenv

Warning: Bad CRC, using default environment
bootargs=
bootcmd=
bootdelay=2
baudrate=115200
arch=sandbox
cpu=sandbox
board=sandbox
board_name=sandbox
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0 
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
● mender-client.service - Mender OTA update service
   Loaded: loaded (/lib/systemd/system/mender-client.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2021-06-11 17:52:06 CEST; 2 days ago
 Main PID: 953 (mender)
    Tasks: 13 (limit: 4915)
   CGroup: /system.slice/mender-client.service
           └─953 /usr/bin/mender daemon

juin 14 16:45:18 cosmyx-nova mender[953]: time="2021-06-14T16:45:18+02:00" level=info msg="State transition: check-wait [Idle] -> update-check [Syn
juin 14 16:45:19 cosmyx-nova mender[953]: time="2021-06-14T16:45:19+02:00" level=info msg="State transition: update-check [Sync] -> check-wait [Idl
juin 14 16:45:23 cosmyx-nova mender[953]: time="2021-06-14T16:45:23+02:00" level=info msg="State transition: check-wait [Idle] -> update-check [Syn
juin 14 16:45:23 cosmyx-nova mender[953]: time="2021-06-14T16:45:23+02:00" level=info msg="State transition: update-check [Sync] -> check-wait [Idl
juin 14 16:45:28 cosmyx-nova mender[953]: time="2021-06-14T16:45:28+02:00" level=info msg="State transition: check-wait [Idle] -> update-check [Syn
juin 14 16:45:28 cosmyx-nova mender[953]: time="2021-06-14T16:45:28+02:00" level=info msg="State transition: update-check [Sync] -> check-wait [Idl
juin 14 16:45:33 cosmyx-nova mender[953]: time="2021-06-14T16:45:33+02:00" level=info msg="State transition: check-wait [Idle] -> update-check [Syn
juin 14 16:45:33 cosmyx-nova mender[953]: time="2021-06-14T16:45:33+02:00" level=info msg="State transition: update-check [Sync] -> check-wait [Idl
juin 14 16:45:38 cosmyx-nova mender[953]: time="2021-06-14T16:45:38+02:00" level=info msg="State transition: check-wait [Idle] -> update-check [Syn
juin 14 16:45:38 cosmyx-nova mender[953]: time="2021-06-14T16:45:38+02:00" level=info msg="State transition: update-check [Sync] -> check-wait [Idl