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

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