[PATCH 2/3] mvebu: armada-8k: set fdtfile env from DEFAULT_FDT_FILE
Stefan Roese
sr at denx.de
Thu Feb 27 11:39:21 CET 2025
On 09.02.25 21:23, Josua Mayer wrote:
> Developers find themselves with two options for defining the default
> device-tree for a platform:
>
> 1. CONFIG_DEFAULT_DEVICE_TREE deciding which DT the u-boot build will
> use for itself.
> 2. CONFIG_DEFAULT_FDT_FILE deciding what should be the name of the
> actual device-tree file, when booting an OS.
>
> Armada 8k config file used option 1 while adding a marvell/ directory
> prefix. This causes issues when switching a board to CONFIG_OF_UPSTREAM
> where the marvell/ prefix would be added twice.
>
> Update the header file to set fdtfile variable instead from
> CONFIG_DEFAULT_FDT_FILE. This allows clear separation between
> device-tree for U-Boot and OS.
>
> Signed-off-by: Josua Mayer <josua at solid-run.com>
Reviewed-by: Stefan Roese <sr at denx.de>
Thanks,
Stefan
> ---
> include/configs/mvebu_armada-8k.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/configs/mvebu_armada-8k.h b/include/configs/mvebu_armada-8k.h
> index 6fedbe9ee386269533852ecc07667e77b11e83d6..cf2e92cf125576f6033a142b7ea40ccb19c92919 100644
> --- a/include/configs/mvebu_armada-8k.h
> +++ b/include/configs/mvebu_armada-8k.h
> @@ -50,7 +50,7 @@
> "fdt_addr_r=0x6f00000\0" \
> "kernel_addr_r=0x7000000\0" \
> "ramdisk_addr_r=0xa000000\0" \
> - "fdtfile=marvell/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
> + "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
> BOOTENV
>
> #endif /* _CONFIG_MVEBU_ARMADA_8K_H */
>
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
More information about the U-Boot
mailing list