[PATCH] ARM: stm32: Default dfu_alt_info for STM32MP13xx SPI NOR
Patrice CHOTARD
patrice.chotard at foss.st.com
Tue Mar 19 11:22:04 CET 2024
On 3/19/24 03:44, Marek Vasut wrote:
> Define dfu_alt_info with SPI NOR layout to make it easy to
> install or update bootloader in the SPI NOR using dfu-util.
>
> Use the following U-Boot commands to start DFU mode:
> "
> => sf probe && dfu 0 mtd
> "
>
> Use the following dfu-util invocation on Host PC to install binaries:
> "
> $ dfu-util -w -a 0 -D build/stm32mp1/release/tf-a-stm32mp135f-dhcor-dhsbc.stm32
> $ dfu-util -w -a 1 -D build/stm32mp1/release/tf-a-stm32mp135f-dhcor-dhsbc.stm32
> $ dfu-util -w -a 2 -D build/stm32mp1/release/fip.bin
> "
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> ---
> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: u-boot at dh-electronics.com
> Cc: u-boot at lists.denx.de
> Cc: uboot-stm32 at st-md-mailman.stormreply.com
> ---
> include/configs/stm32mp13_common.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/configs/stm32mp13_common.h b/include/configs/stm32mp13_common.h
> index 5b0658ced92..d6e4f8fd915 100644
> --- a/include/configs/stm32mp13_common.h
> +++ b/include/configs/stm32mp13_common.h
> @@ -63,6 +63,7 @@
> "fi;\0"
>
> #define STM32MP_EXTRA \
> + "dfu_alt_info=mtd nor0=fsbl1 raw 0x0 0x40000;fsbl2 raw 0x40000 0x40000;uboot raw 0x80000 0x160000\0" \
> "env_check=if env info -p -d -q; then env save; fi\0" \
> "boot_net_usb_start=true\0"
>
Hi Marek
On our STM32 board, the dfu_alt_info is build dynamically, we have CONFIG_SET_DFU_ALT_INFO enable
Can you add the dfu_alt_info in a specific stm32mp13_dhxx.common.h instead ?
Thanks
Patrice
More information about the U-Boot
mailing list