zero-gravitas.h: turn off if booting into fallback fails
parent
a93a17ca12
commit
f021613c83
|
@ -99,6 +99,12 @@
|
|||
"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; " \
|
||||
"setenv bootcount 1; " \
|
||||
"saveenv; " \
|
||||
"poweroff; " \
|
||||
"fi; " \
|
||||
"setenv mmcpart ${fallback_partition}; " \
|
||||
"setenv bootargs console=${console},${baudrate} " \
|
||||
"root=/dev/mmcblk1p${fallback_partition} rootwait rw; " \
|
||||
|
|
Loading…
Reference in New Issue