summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorfaqiang.zhu <faqiang.zhu@nxp.com>2018-09-03 20:45:18 +0800
committerfaqiang.zhu <faqiang.zhu@nxp.com>2018-09-04 19:28:20 +0800
commit5d746216871b477dc32b477a0f1d75f7007a543f (patch)
tree93c0da4bf49efc4951b164640312d42ec125ebef /common
parent4a8a24ae8b77e394911fd83374ef9c0a89cb9688 (diff)
MA-12283-2 fix issue of imx6 boot from SD card when use uuu
get_boot_device() for imx6 series can't judge the chips is boot from USB or not. So, when use uuu, "bootcmd" parameter will get the same value as boot from SD card, so if the SD card has image in it, uboot will not enter fastboot mode when use uuu. This patch use is_boot_from_usb(void) to judge whether boot from USB then change the "bootcmd" parameter accordingly. Change-Id: I366aca2e32eab67193f45798abd142b2d5cb86bc Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
Diffstat (limited to 'common')
-rw-r--r--common/autoboot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/autoboot.c b/common/autoboot.c
index b9c59233e3..08a0798eea 100644
--- a/common/autoboot.c
+++ b/common/autoboot.c
@@ -318,6 +318,9 @@ const char *bootdelay_process(void)
bootdelay = 0;
set_default_env("Use default environment for \
mfgtools\n");
+ } else if (is_boot_from_usb()) {
+ printf("Boot from USB for uuu\n");
+ env_set("bootcmd", "fastboot 0");
} else {
printf("Normal Boot\n");
}