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>
This commit is contained in:
faqiang.zhu 2018-09-03 20:45:18 +08:00
parent 4a8a24ae8b
commit 5d74621687
1 changed files with 3 additions and 0 deletions

View File

@ -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");
}