For the STM32MP15 DHSOM, change the default environment so an AB schema on a device can be detected.
The first patch makes possible to substitute the 'part list' command inside 'scan_dev_for_boot_part' with a custom board specific implementation. The second patch uses the change of the first patch to plug the board specific code for booting from AB into the standard boot of all boot targets at the STM32MP15 DHSOM. The detection works by looking for the partitions with specific lables. The name of those partitions are in the variables and its defaults: * dh_ab_partname_primary=rootfs-a * dh_ab_partname_secondary=rootfs-b To prevent being hanging at bootcmd, enable "CONFIG_BOOT_RETRY" and "CONFIG_RESET_TO_RETRY", but the timer will only be activated, if the AB partitions are detected. Pascal Zimmermann (2): config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM configs/stm32mp15_dhsom.config | 3 +++ include/config_distro_bootcmd.h | 7 +++++- include/configs/stm32mp15_dh_dhsom.h | 33 ++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) Signed-off-by: Pascal Zimmermann <pzimmerm...@dh-electronics.com> --- Cc: Marek Vasut <ma...@denx.de> Cc: Patrick Delaunay <patrick.delau...@foss.st.com> Cc: Patrice Chotard <patrice.chot...@foss.st.com> Cc: Tom Rini <tr...@konsulko.com> Cc: Simon Glass <s...@chromium.org> Cc: u-b...@dh-electronics.com Cc: uboot-st...@st-md-mailman.stormreply.com Cc: u-boot@lists.denx.de -- 2.30.2