summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keeping <john@metanate.com>2021-11-25 21:05:22 +0300
committerKever Yang <kever.yang@rock-chips.com>2021-12-24 10:17:51 +0300
commiteaee44aaaa43ad138a9b730e17e370e83bba6cf5 (patch)
treee748cad8300c6cbf9bb41ddb1c7dafd3e48675fd
parent2206356a3e4e1da1c2a07098690a59263e5f6757 (diff)
downloadu-boot-eaee44aaaa43ad138a9b730e17e370e83bba6cf5.tar.xz
rockchip: boot_mode: fix fastboot command
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>
-rw-r--r--arch/arm/mach-rockchip/boot_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-rockchip/boot_mode.c b/arch/arm/mach-rockchip/boot_mode.c
index 2158934159..1a1a887fc2 100644
--- a/arch/arm/mach-rockchip/boot_mode.c
+++ b/arch/arm/mach-rockchip/boot_mode.c
@@ -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__);