autoboot.c : allow fastboot to send u-boot commands

parent 8aaacfc9
......@@ -312,12 +312,9 @@ const char *bootdelay_process(void)
bootdelay = s ? (int)simple_strtol(s, NULL, 10) : CONFIG_BOOTDELAY;
#if defined(is_boot_from_usb)
if (is_boot_from_usb() && getenv("bootcmd_mfg")) {
disconnect_from_pc();
printf("Boot from USB for mfgtools\n");
if (is_boot_from_usb()) {
printf("Boot from USB for fastboot\n");
bootdelay = 0;
set_default_env("Use default environment for \
mfgtools\n");
} else {
printf("Normal Boot\n");
}
......@@ -350,9 +347,9 @@ const char *bootdelay_process(void)
s = getenv("bootcmd");
#if defined(is_boot_from_usb)
if (is_boot_from_usb() && getenv("bootcmd_mfg")) {
s = getenv("bootcmd_mfg");
printf("Run bootcmd_mfg: %s\n", s);
if (is_boot_from_usb()) {
s = getenv("bootcmd");
printf("Run bootcmd: %s\n", s);
}
#endif
......
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