[PATCH 10/13] board: dragonboard410c: Use BOOTSTD instead of DISTRO_DEFAULTS

Neil Armstrong neil.armstrong at linaro.org
Mon Apr 7 20:09:51 CEST 2025


On 07/04/2025 18:59, Stephan Gerhold wrote:
> Reduce the environment size by using standard boot instead of distro boot.
> It uses faster bootdevs first by default (eMMC -> SD -> USB -> Network), so
> set "boot_targets" to keep the current ordering (USB -> SD -> eMMC ->
> Network). Perhaps this should be changed for consistency, but for now this
> keeps the behavior similar to before.
> 
> Signed-off-by: Stephan Gerhold <stephan.gerhold at linaro.org>
> ---
>   board/qualcomm/dragonboard410c/dragonboard410c.env |  1 +
>   configs/dragonboard410c_defconfig                  |  3 ++-
>   include/configs/dragonboard410c.h                  | 11 -----------
>   3 files changed, 3 insertions(+), 12 deletions(-)
> 
> diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.env b/board/qualcomm/dragonboard410c/dragonboard410c.env
> index 0032dc3592a1021e4bb422357867cc26b4b30551..71f929b646cc305cf5223cd3462fe2350bc8093e 100644
> --- a/board/qualcomm/dragonboard410c/dragonboard410c.env
> +++ b/board/qualcomm/dragonboard410c/dragonboard410c.env
> @@ -1,3 +1,4 @@
>   /* SPDX-License-Identifier: GPL-2.0+ */
>   initrd_high=0xffffffffffffffff
>   fastboot=fastboot -l $fastboot_addr_r usb 0
> +boot_targets=usb mmc1 mmc0 pxe
> diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig
> index da1ec4bfc60cdf4a2a9077efb081383b5b39301a..62fc42c9460d075fd27c3e2823eb8eea2a559772 100644
> --- a/configs/dragonboard410c_defconfig
> +++ b/configs/dragonboard410c_defconfig
> @@ -16,7 +16,7 @@ CONFIG_IDENT_STRING="\nQualcomm-DragonBoard 410C"
>   CONFIG_REMAKE_ELF=y
>   # CONFIG_ANDROID_BOOT_IMAGE is not set
>   CONFIG_FIT=y
> -CONFIG_DISTRO_DEFAULTS=y
> +CONFIG_BOOTSTD_FULL=y
>   CONFIG_OF_BOARD_SETUP=y
>   CONFIG_USE_PREBOOT=y
>   CONFIG_SYS_CBSIZE=512
> @@ -35,6 +35,7 @@ CONFIG_CMD_USB=y
>   CONFIG_BOOTP_BOOTFILESIZE=y
>   CONFIG_CMD_CACHE=y
>   CONFIG_CMD_TIMER=y
> +CONFIG_CMD_SYSBOOT=y
>   CONFIG_ENV_IS_IN_MMC=y
>   CONFIG_SYS_RELOC_GD_ENV_ADDR=y
>   CONFIG_SYS_MMC_ENV_PART=2
> diff --git a/include/configs/dragonboard410c.h b/include/configs/dragonboard410c.h
> index 00102cd5c4f54236366e4b6380a9c9537f9b4614..c31c6c57c1a4bebde740bc3fe535ca9610af043e 100644
> --- a/include/configs/dragonboard410c.h
> +++ b/include/configs/dragonboard410c.h
> @@ -18,15 +18,4 @@
>   #define PHYS_SDRAM_1_SIZE		SZ_1G
>   #define CFG_SYS_SDRAM_BASE		PHYS_SDRAM_1
>   
> -/* Environment */
> -#define BOOT_TARGET_DEVICES(func) \
> -	func(USB, usb, 0) \
> -	func(MMC, mmc, 1) \
> -	func(MMC, mmc, 0) \
> -	func(DHCP, dhcp, na)
> -
> -#include <config_distro_bootcmd.h>
> -
> -#define CFG_EXTRA_ENV_SETTINGS BOOTENV
> -
>   #endif
> 

Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>


More information about the U-Boot mailing list