1
0
Fork 0

zero-gravitas.h: turn off if booting into fallback fails

optimizations
Martin T. H. Sandsmark 2017-07-05 15:30:28 +02:00
parent a93a17ca12
commit f021613c83
1 changed files with 6 additions and 0 deletions

View File

@ -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; " \