summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorguoyin.chen <guoyin.chen@freescale.com>2013-07-25 11:21:05 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2013-07-25 11:21:05 +0800
commit117c045334ad694165ce0a0a5b054ab160257f41 (patch)
tree3532a9712c333d433f9b520393aeda56a6dcc0b8 /board
parentc9b49bf8b7c64e628ce2625272e4deb65b8c8720 (diff)
downloadu-boot-imx-117c045334ad694165ce0a0a5b054ab160257f41.zip
u-boot-imx-117c045334ad694165ce0a0a5b054ab160257f41.tar.gz
u-boot-imx-117c045334ad694165ce0a0a5b054ab160257f41.tar.bz2
ENGR00272558 fastboot_dev and bootcmd cannot be configured for i.MX6 SabreSDrel_imx_3.0.35_4.1.0_rc3rel_imx_3.0.35_4.1.0_rc2rel_imx_3.0.35_4.1.0_rc1rel_imx_3.0.35_4.1.0
Only init the fastboot_dev and bootcmd env in the first boot Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/mx6q_sabresd/mx6q_sabresd.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/board/freescale/mx6q_sabresd/mx6q_sabresd.c b/board/freescale/mx6q_sabresd/mx6q_sabresd.c
index 8caca4a..6f866aa 100644
--- a/board/freescale/mx6q_sabresd/mx6q_sabresd.c
+++ b/board/freescale/mx6q_sabresd/mx6q_sabresd.c
@@ -1778,12 +1778,16 @@ int board_late_init(void)
#ifdef MX6Q_SABRESD_ANDROID_H
switch (get_boot_device()) {
case SD_BOOT:
- setenv("fastboot_dev", "mmc2");
- setenv("bootcmd", "booti mmc2");
+ if (!getenv("fastboot_dev"))
+ setenv("fastboot_dev", "mmc2");
+ if (!getenv("bootcmd"))
+ setenv("bootcmd", "booti mmc2");
break;
case MMC_BOOT:
- setenv("fastboot_dev", "mmc3");
- setenv("bootcmd", "booti mmc3");
+ if (!getenv("fastboot_dev"))
+ setenv("fastboot_dev", "mmc3");
+ if (!getenv("bootcmd"))
+ setenv("bootcmd", "booti mmc3");
break;
default:
printf("unsupported boot devices\n");