Commit 8c3012ac authored by Haoran.Wang's avatar Haoran.Wang Committed by faqiang.zhu

MA-12283 Enter fastboot mode directly if usb boot

Change bootcmd to "fastboot 0" directly when detect
booted from USB. By this the u-boot which booted by
uuu will enter fastboot mode and ready for the
remain commands.
Signed-off-by: 's avatarHaoran.Wang <elven.wang@nxp.com>
parent 4d436d59
......@@ -1548,6 +1548,10 @@ void board_fastboot_setup(void)
if (!getenv("bootcmd"))
setenv("bootcmd", boot_dev_part);
break;
case USB_BOOT:
printf("Detect USB boot. Will enter fastboot mode!\n");
if (!getenv("bootcmd"))
setenv("bootcmd", "fastboot 0");
#endif /*CONFIG_FASTBOOT_STORAGE_MMC*/
default:
printf("unsupported boot devices\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment