]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: qualcomm: phone: enable CMD_FASTBOOT_ABORT_KEYED
authorSam Day <me@samcday.com>
Thu, 18 Jun 2026 23:55:01 +0000 (09:55 +1000)
committerMattijs Korpershoek <mkorpershoek@kernel.org>
Fri, 26 Jun 2026 09:12:22 +0000 (11:12 +0200)
Thus users are able to exit from fastboot by pressing a key.

It's also possible to bail out by running `fastboot continue` from the
host, but it's nice to be consistent with UMS. Also convenient to be
able to bailout during testing if USB isn't working properly.

Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Reviewed-by: Casey Connolly <casey.connolly@linaro.org>
Signed-off-by: Sam Day <me@samcday.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Link: https://patch.msgid.link/20260619-fastboot-abort-keyed-v2-2-684e53949a42@samcday.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
board/qualcomm/qcom-phone.config
board/qualcomm/qcom-phone.env

index d24094eefddb4899342abcba06423c73b65eee1c..1387aa1dfa29a8d3929562cf47696562fbee4497 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x1A000000
 CONFIG_USB_FUNCTION_FASTBOOT=y
 CONFIG_USB_FUNCTION_ACM=y
 CONFIG_CMD_UMS_ABORT_KEYED=y
+CONFIG_CMD_FASTBOOT_ABORT_KEYED=y
 
 # Record all console output and let it be dumped via fastboot
 CONFIG_CONSOLE_RECORD=y
index 42f58c3bac61149c871f646adb4452c40f5faf50..5eaa2ceada8bcbd9c3a6aa7e3852b6bf6d7d7542 100644 (file)
@@ -32,7 +32,7 @@ menucmd=setenv bootcmd run menucmd; bootmenu -1
 bootmenu_0=Boot=bootefi bootmgr; pause
 bootmenu_1=Enable serial console gadget=run serial_gadget
 bootmenu_2=Enable USB mass storage=echo "Press any key to exit UMS mode"; ums 0 scsi 0
-bootmenu_3=Enable fastboot mode=run fastboot
+bootmenu_3=Enable fastboot mode=echo "Press any key to exit fastboot mode"; run fastboot
 # Disabling bootretry means we'll just drop the shell
 bootmenu_4=Drop to shell=setenv bootretry -1
 bootmenu_5=Reset device=reset