congfigs/bootcmd: run recovery if bootm fails

This commit is contained in:
Alexander Couzens 2015-03-10 11:48:13 +01:00
parent 847feac483
commit 292f453210
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,6 @@
#define BOOTSTRAP_CFG_MONITOR_BASE BOOTSTRAP_TEXT_BASE #define BOOTSTRAP_CFG_MONITOR_BASE BOOTSTRAP_TEXT_BASE
#endif #endif
/* /*
* The following #defines are needed to get flash environment right * The following #defines are needed to get flash environment right
*/ */
@ -50,7 +49,8 @@
#define CFG_ENV_ADDR 0x9f040000 #define CFG_ENV_ADDR 0x9f040000
#define CFG_ENV_SIZE 0x10000 #define CFG_ENV_SIZE 0x10000
#define CONFIG_BOOTCOMMAND "inccycle ; if checkcycle ; then bootm 0x9f050000 ; else run_recovery ; fi" /* check if boot cycle threshold reached : if not try to boot linux if this fails run recovery */
#define CONFIG_BOOTCOMMAND "inccycle ; if checkcycle ; then bootm 0x9f050000 ; run_recovery ; else run_recovery ; fi"
#define CONFIG_NET_MULTI #define CONFIG_NET_MULTI