- 指定image/dtb文件
bootdir=bootfile=zImagefdtfile=embest-SBCC_PH8800_WLQ.dtbloadaddr=0x82000000fdtaddr=0x88000000finduuid=part uuid mmc ${mmcdev}:2 uuidloadfdt=fatload mmc ${mmcdev}:1 ${fdtaddr} ${fdtfile}loaduimage=fatload mmc ${mmcdev}:1 ${loadaddr} ${bootfile}uenvcmd=mdio write 7 0 0x800; mmc rescan; run loaduimage; run loadfdt; run fdtbootfdtboot=run mmc_args; bootz ${loadaddr} - ${fdtaddr}mmc_args=run finduuid; setenv bootargs console=ttyS0,115200n8 loglevel=0 systemd.log_target=null systemd.journald.forward_to_console=0 ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
- 支持切换image/dtb文件
bootdir=bootfile=zImagefdtfile=embest-SBCC_PH8800_WLQ.dtbloadaddr=0x82000000fdtaddr=0x88000000finduuid=part uuid mmc ${mmcdev}:2 uuidrecoveryflag=falseuenvcmd=if test ${recoveryflag} = "true"; then setenv bootfile zImage_bak; setenv fdtfile embest-SBCC_PH8800_WLQ_bak.dtb; echo bootfile=${bootfile} fdtfile=${fdtfile}; fi; setenv loadfdt fatload mmc ${mmcdev}:1 ${fdtaddr} ${fdtfile}; setenv loaduimage fatload mmc ${mmcdev}:1 ${loadaddr} ${bootfile}; mdio write 7 0 0x800; mmc rescan; run loaduimage; run loadfdt; run fdtbootfdtboot=run mmc_args; bootz ${loadaddr} - ${fdtaddr}mmc_args=run finduuid; setenv bootargs console=ttyS0,115200n8 loglevel=0 systemd.log_target=null systemd.journald.forward_to_console=0 ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
- 软件更新
mount -o remount,rw /boot/firmware固件更新成功:(注意-i和语句中的三个斜杠)sed -i 's/recoveryflag=true/recoveryflag=false/' /boot/firmware/uEnv.txt固件更新失败:sed -i 's/recoveryflag=false/recoveryflag=true/' /boot/firmware/uEnv.txtsyncmount -o remount,ro /boot/firmware