diff options
author | guoyin.chen <guoyin.chen@freescale.com> | 2013-07-25 11:21:05 +0800 |
---|---|---|
committer | guoyin.chen <guoyin.chen@freescale.com> | 2013-07-25 11:21:05 +0800 |
commit | 117c045334ad694165ce0a0a5b054ab160257f41 (patch) | |
tree | 3532a9712c333d433f9b520393aeda56a6dcc0b8 | |
parent | c9b49bf8b7c64e628ce2625272e4deb65b8c8720 (diff) | |
download | u-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>
-rw-r--r-- | board/freescale/mx6q_sabresd/mx6q_sabresd.c | 12 |
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"); |