[PATCH 3/3] board/qualcomm: qcom-phone: Add poweroff command
Casey Connolly
casey.connolly at linaro.org
Mon May 18 10:03:06 CEST 2026
Hi Biswapriyo,
On 12/05/2026 16:44, Biswapriyo Nath wrote:
> This command helps to shutdown the device directly from serial command
> line. Or, the phone has to be booted into recovery mode to power off.
Awesome, this has been sorely needed :D
Would you mind spinning a v2 and moving the config option to
qcom_defconfig so the command is available on all boards?
(in case you didn't know, b4 trailers -U will pull in the reviewed-by tags)
Thanks,
>
> Signed-off-by: Biswapriyo Nath <nathbappai at gmail.com>
> ---
> board/qualcomm/qcom-phone.config | 1 +
> board/qualcomm/qcom-phone.env | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/board/qualcomm/qcom-phone.config b/board/qualcomm/qcom-phone.config
> index d24094eefddb..e4727fa8b930 100644
> --- a/board/qualcomm/qcom-phone.config
> +++ b/board/qualcomm/qcom-phone.config
> @@ -5,6 +5,7 @@ CONFIG_PANIC_HANG=y
> # We use pause in various places to allow text to be read
> # before it scrolls off the screen
> CONFIG_CMD_PAUSE=y
> +CONFIG_CMD_POWEROFF=y
> CONFIG_BOOT_RETRY=y
> CONFIG_BOOT_RETRY_TIME=1
> CONFIG_BUTTON_REMAP_PHONE_KEYS=y
> diff --git a/board/qualcomm/qcom-phone.env b/board/qualcomm/qcom-phone.env
> index e91ae3ecdfbd..f9911340295f 100644
> --- a/board/qualcomm/qcom-phone.env
> +++ b/board/qualcomm/qcom-phone.env
> @@ -40,6 +40,7 @@ bootmenu_6=Dump clocks=clk dump; pause
> bootmenu_7=Dump environment=printenv; pause
> bootmenu_8=Board info=bdinfo; pause
> bootmenu_9=Dump bootargs=fdt print /chosen bootargs; pause
> +bootmenu_10=Power off=poweroff
>
> # Allow holding the volume down button while U-Boot loads to enter
> # the boot menu
>
--
// Casey (she/her)
More information about the U-Boot
mailing list