summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorZhang Jiejing <jiejing.zhang@freescale.com>2010-09-25 18:05:57 +0800
committerZhang Jiejing <jiejing.zhang@freescale.com>2010-09-26 18:45:44 +0800
commiteb2a5695baa418412b75ef834537399aa20560bc (patch)
treecdbc3e53532af5461855348aa654262ee947f877 /board/freescale
parent55019fc8eebe6b9d8b0f4b52725289e616879d8a (diff)
downloadu-boot-imx-eb2a5695baa418412b75ef834537399aa20560bc.zip
u-boot-imx-eb2a5695baa418412b75ef834537399aa20560bc.tar.gz
u-boot-imx-eb2a5695baa418412b75ef834537399aa20560bc.tar.bz2
ENGR00131936 MX5X corrent mx53_evk mx51_BBG android default env setting
This change make a bootable default setting of MX53 EVK and MX51 BBG board, the old default setting is too old to boot android system up. Also add the recovery command in the env strings, if you want to boot to recovery mode with mx53_evk, you can just : > run bootcmd_android_recovery This command will boot android into recovery mode. Also fix MX51 can't see UI in recovery mode. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/common/recovery.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/board/freescale/common/recovery.c b/board/freescale/common/recovery.c
index 9f488b8..90b76c5 100644
--- a/board/freescale/common/recovery.c
+++ b/board/freescale/common/recovery.c
@@ -84,16 +84,14 @@ void setup_recovery_env(void)
env = getenv("bootargs_android_recovery");
/* Set env to recovery mode */
+ /* Only set recovery env when these env not exist, give user a
+ * chance to change their recovery env */
if (!env)
setenv("bootargs_android_recovery", boot_args);
- else
- setenv("bootargs_android_recovery", env);
env = getenv("bootcmd_android_recovery");
if (!env)
setenv("bootcmd_android_recovery", boot_cmd);
- else
- setenv("bootcmd_android_recovery", env);
setenv("bootcmd", "run bootcmd_android_recovery");
}