diff options
-rw-r--r-- | board/freescale/mx51_3stack/mx51_3stack.c | 12 | ||||
-rw-r--r-- | board/freescale/mx51_bbg/mx51_bbg.c | 14 |
2 files changed, 17 insertions, 9 deletions
diff --git a/board/freescale/mx51_3stack/mx51_3stack.c b/board/freescale/mx51_3stack/mx51_3stack.c index e70234a..af5d3df 100644 --- a/board/freescale/mx51_3stack/mx51_3stack.c +++ b/board/freescale/mx51_3stack/mx51_3stack.c @@ -703,12 +703,16 @@ static int switch_to_recovery_mode(void) env = getenv("bootargs_android_recovery"); /* Set env to recovery mode */ if (!env) - setenv("bootargs_android_recovery", boot_args); + setenv("bootargs_android", boot_args); + else + setenv("bootargs_android", env); + env = getenv("bootcmd_android_recovery"); if (!env) - setenv("bootcmd_android_recovery", boot_cmd); - setenv("bootcmd", "run bootcmd_android_recovery"); - + setenv("bootcmd_android", boot_cmd); + else + setenv("bootcmd_android", env); + setenv("bootcmd", "run bootcmd_android"); return 0; } diff --git a/board/freescale/mx51_bbg/mx51_bbg.c b/board/freescale/mx51_bbg/mx51_bbg.c index e5ac369..b9a4292 100644 --- a/board/freescale/mx51_bbg/mx51_bbg.c +++ b/board/freescale/mx51_bbg/mx51_bbg.c @@ -1,7 +1,7 @@ /* * Copyright (C) 2007, Guennadi Liakhovetski <lg@denx.de> * - * (C) Copyright 2009 Freescale Semiconductor, Inc. + * (C) Copyright 2009-2010 Freescale Semiconductor, Inc. * * See file CREDITS for list of people who contributed to this * project. @@ -806,12 +806,16 @@ inline int switch_to_recovery_mode(void) env = getenv("bootargs_android_recovery"); /* Set env to recovery mode */ if (!env) - setenv("bootargs_android_recovery", boot_args); + setenv("bootargs_android", boot_args); + else + setenv("bootargs_android", env); + env = getenv("bootcmd_android_recovery"); if (!env) - setenv("bootcmd_android_recovery", boot_cmd); - setenv("bootcmd", "run bootcmd_android_recovery"); - + setenv("bootcmd_android", boot_cmd); + else + setenv("bootcmd_android", env); + setenv("bootcmd", "run bootcmd_android"); return 0; } |