]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: boot_mode: fix fastboot command
authorJohn Keeping <john@metanate.com>
Thu, 25 Nov 2021 18:05:22 +0000 (18:05 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 24 Dec 2021 07:17:51 +0000 (15:17 +0800)
The USB controller index must be separated from the type argument,
otherwise the preboot command fails with the error:

Error: Wrong USB controller index format

Add the missing space to fix fastboot mode here.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/boot_mode.c

index 2158934159a5b997a102d2b3649352b635927a98..1a1a887fc2cd637c6f9ff34322672496ac9f12ad 100644 (file)
@@ -95,7 +95,7 @@ int setup_boot_mode(void)
        switch (boot_mode) {
        case BOOT_FASTBOOT:
                debug("%s: enter fastboot!\n", __func__);
-               env_set("preboot", "setenv preboot; fastboot usb0");
+               env_set("preboot", "setenv preboot; fastboot usb 0");
                break;
        case BOOT_UMS:
                debug("%s: enter UMS!\n", __func__);