1. U-Boot> printenv -a
  2. altbootcmd=run mender_altbootcmd; run bootcmd
  3. arch=arm
  4. baudrate=115200
  5. board=rpi
  6. board_name=Zero W
  7. board_rev=0xC
  8. board_rev_scheme=1
  9. board_revision=0x9000C1
  10. boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
  11. boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
  12. boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
  13. boot_net_usb_start=usb start
  14. boot_prefixes=/ /boot/
  15. boot_script_dhcp=boot.scr.uimg
  16. boot_scripts=boot.scr.uimg boot.scr
  17. boot_syslinux_conf=extlinux/extlinux.conf
  18. boot_targets=mmc0 mmc1 usb0 pxe dhcp
  19. bootargs=coherent_pool=1M 8250.nr_uarts=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:20:AF:02 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 rootfstype=ext4 rootwait root=${mender_kernel_root}
  20. bootcmd=run distro_bootcmd
  21. bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00010:UNDI:003000;setenv bootp_arch 0xa;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci;
  22. bootcmd_mmc0=setenv devnum 0; run mmc_boot
  23. bootcmd_mmc1=setenv devnum 1; run mmc_boot
  24. bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
  25. bootcmd_usb0=setenv devnum 0; run usb_boot
  26. bootcount=1
  27. bootdelay=2
  28. bootfstype=fat
  29. bootlimit=1
  30. cpu=arm1176
  31. devnum=0
  32. devplist=1
  33. devtype=mmc
  34. dhcpuboot=usb start; dhcp u-boot.uimg; bootm
  35. distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
  36. efi_dtb_prefixes=/ /dtb/ /dtb/current/
  37. fdt_addr=1bfe9d00
  38. fdt_addr_r=0x02600000
  39. fdt_high=ffffffff
  40. fdtaddr=1bfe9d00
  41. fdtcontroladdr=1bf9d8e0
  42. fdtfile=bcm2835-rpi-zero-w.dtb
  43. fileaddr=2400000
  44. filesize=12c
  45. initrd_high=ffffffff
  46. kernel_addr_r=0x00080000
  47. load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
  48. loadaddr=0x00200000
  49. mender_altbootcmd=if test ${mender_boot_part} = 2; then setenv mender_boot_part 3; setenv mender_boot_part_hex 3; else setenv mender_boot_part 2; setenv mender_boot_part_hex 2; fi; setenv upgrade_available 0; saveenv; run mender_setup
  50. mender_boot_kernel_type=bootz
  51. mender_boot_part=2
  52. mender_boot_part_hex=2
  53. mender_check_saveenv_canary=1
  54. mender_dtb_name=bcm2708-rpi-zero-w.dtb
  55. mender_kernel_name=zImage
  56. mender_saveenv_canary=1
  57. mender_setup=if test "${mender_saveenv_canary}" != "1"; then setenv mender_saveenv_canary 1; saveenv; fi; if test "${mender_pre_setup_commands}" != ""; then run mender_pre_setup_commands; fi; if test "${mender_systemd_machine_id}" != ""; then setenv bootargs systemd.machine_id=${mender_systemd_machine_id} ${bootargs}; fi; setenv mender_kernel_root /dev/mmcblk0pp${mender_boot_part}; if test ${mender_boot_part} = 2; then setenv mender_boot_part_name /dev/mmcblk0p2; else setenv mender_boot_part_name /dev/mmcblk0p3; fi; setenv mender_kernel_root_name ${mender_boot_part_name}; setenv mender_uboot_root mmc 0:${mender_boot_part_hex}; setenv mender_uboot_root_name ${mender_boot_part_name}; setenv expand_bootargs "setenv bootargs \\"${bootargs}\\""; run expand_bootargs; setenv expand_bootargs; if test "${mender_post_setup_commands}" != ""; then run mender_post_setup_commands; fi
  58. mender_try_to_recover=if test ${upgrade_available} = 1; then reset; fi
  59. mender_uboot_boot=mmc 0:1
  60. mender_uboot_dev=0
  61. mender_uboot_if=mmc
  62. mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi
  63. preboot=usb start
  64. pxefile_addr_r=0x02500000
  65. ramdisk_addr_r=0x02700000
  66. 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;run scan_dev_for_efi;
  67. 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
  68. scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootarm.efi; then echo Found EFI removable media binary efi/boot/bootarm.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
  69. scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
  70. 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
  71. scriptaddr=0x02400000
  72. serial#=00000000ed20af02
  73. soc=bcm283x
  74. stderr=serial,vidconsole
  75. stdin=serial,usbkbd
  76. stdout=serial,vidconsole
  77. upgrade_available=0
  78. usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
  79. vendor=raspberrypi
  80. Environment size: 5988/16379 bytes