On 01/09/2026 21:57, Sumit Singh Dhami wrote:
> CMD_POWEROFF requires do_poweroff(), normally provided by psci.c,
> but PSCI_RESET is disabled in snagboot mode, causing a link
> failure. Poweroff isn't needed for snagboot recovery, so disable it.
do_poweroff is also provided by sysreset-uclass?
>
> Signed-off-by: Sumit Singh Dhami <[email protected]>
> ---
> configs/qcom-snagboot.config | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/configs/qcom-snagboot.config b/configs/qcom-snagboot.config
> index d19ad453029..579bcc7732d 100644
> --- a/configs/qcom-snagboot.config
> +++ b/configs/qcom-snagboot.config
> @@ -8,6 +8,7 @@ CONFIG_QCOM_SNAGBOOT_MODE=y
> # CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR is not set
> # CONFIG_IOMMU is not set
> # CONFIG_REBOOT_MODE_ENV_UPDATE is not set
> +# CONFIG_CMD_POWEROFF is not set
>
> # Use default environment instead of loading from storage
> # This ensures snagboot mode works even with corrupted environment
--
// Casey (she/her)