bootscript: try to boot more before giving up
parent
accdf1001e
commit
7fe6264cbc
|
@ -98,8 +98,8 @@
|
|||
"bootz ${loadaddr} ${initrd} ${fdt_addr};\0" \
|
||||
"altbootcmd=echo Running from fallback root...; " \
|
||||
"run memboot; " \
|
||||
"if test ${bootcount} -gt 2; then " \
|
||||
"echo WARN: Failed too much, turning off; " \
|
||||
"if test ${bootcount} -gt 10; then " \
|
||||
"echo WARN: Failed too much, resetting bootcount and turning off; " \
|
||||
"setenv bootcount 0; " \
|
||||
"saveenv; " \
|
||||
"poweroff; " \
|
||||
|
@ -122,7 +122,6 @@
|
|||
"run mmcboot; " \
|
||||
"echo WARN: unable to boot from either RAM or eMMC; " \
|
||||
"setenv upgrade_available 1; " \
|
||||
"setenv bootcount 1; " \
|
||||
"saveenv; " \
|
||||
"reset; "
|
||||
|
||||
|
|
Loading…
Reference in New Issue