Skip to contentSkip to conversation

rockchip: boot_mode: fix fastboot command

PATCH In review John Keeping 2 participants 2 messages Nov 25, 2021 – Dec 24, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 arch/arm/mach-rockchip/boot_mode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/boot_mode.c +1 -1
index 2158934159..1a1a887fc2 100644
@@ -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__);
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · John Keeping

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.

Thanks,
- Kever

Quoted 18 lines

---

  arch/arm/mach-rockchip/boot_mode.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/boot_mode.c +1 -1
index 2158934159..1a1a887fc2 100644
@@ -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__);