From 292f453210a2c7ae89a7705f36e6a27cb20862b2 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 10 Mar 2015 11:48:13 +0100 Subject: [PATCH] congfigs/bootcmd: run recovery if bootm fails --- u-boot/include/configs/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/u-boot/include/configs/common.h b/u-boot/include/configs/common.h index 08697cd9e6..f6595512b9 100644 --- a/u-boot/include/configs/common.h +++ b/u-boot/include/configs/common.h @@ -11,7 +11,6 @@ #define BOOTSTRAP_CFG_MONITOR_BASE BOOTSTRAP_TEXT_BASE #endif - /* * The following #defines are needed to get flash environment right */ @@ -50,7 +49,8 @@ #define CFG_ENV_ADDR 0x9f040000 #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