lal
Rescue System on GoFlex Net - u-boot envs settings example June 26, 2016 01:53PM |
#force rescue command used to force the boot into rescue system. fw_setenv force_rescue 0 fw_setenv force_rescue_bootcmd 'if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi' #rescue boot command fw_setenv rescue_installed 1 fw_setenv rescue_bootcmd 'if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi' fw_setenv rescue_set_bootargs 'setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params' #update global boot command to accommodate the rescue boot cmd fw_setenv bootcmd 'run force_rescue_bootcmd; run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run rescue_bootcmd; reset'