* [RESEND PATCH 0/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM
@ 2025-03-27 14:38 Pascal Zimmermann
2025-03-27 14:38 ` [RESEND PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd Pascal Zimmermann
2025-03-27 14:38 ` [RESEND PATCH 2/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM Pascal Zimmermann
0 siblings, 2 replies; 7+ messages in thread
From: Pascal Zimmermann @ 2025-03-27 14:38 UTC (permalink / raw)
To: u-boot
Cc: Pascal Zimmermann, Marek Vasut, Patrick Delaunay, Patrice Chotard,
Tom Rini, Simon Glass, u-boot, uboot-stm32
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 <pzimmermann@dh-electronics.com>
---
Cc: Marek Vasut <marex@denx.de>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: u-boot@dh-electronics.com
Cc: uboot-stm32@st-md-mailman.stormreply.com
Cc: u-boot@lists.denx.de
--
2.30.2
^ permalink raw reply [flat|nested] 7+ messages in thread* [RESEND PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd
2025-03-27 14:38 [RESEND PATCH 0/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM Pascal Zimmermann
@ 2025-03-27 14:38 ` Pascal Zimmermann
2025-04-11 7:15 ` Patrice CHOTARD
2025-03-27 14:38 ` [RESEND PATCH 2/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM Pascal Zimmermann
1 sibling, 1 reply; 7+ messages in thread
From: Pascal Zimmermann @ 2025-03-27 14:38 UTC (permalink / raw)
To: u-boot; +Cc: Pascal Zimmermann, Tom Rini, Simon Glass, Marek Vasut, u-boot
Make it possible to substitute the 'part list' command inside
'scan_dev_for_boot_part' with a custom board specific implementation.
For this the new define 'SCAN_DEV_FOR_BOOT_PARTS' is introduced.
Signed-off-by: Pascal Zimmermann <pzimmermann@dh-electronics.com>
---
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de
Cc: Marek Vasut <marex@denx.de>
Cc: u-boot@dh-electronics.com
---
include/config_distro_bootcmd.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index 0a4e4b8ff85..df0dc8cfdee 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -194,6 +194,11 @@
#define SCAN_DEV_FOR_EFI
#endif
+#ifndef SCAN_DEV_FOR_BOOT_PARTS
+#define SCAN_DEV_FOR_BOOT_PARTS \
+ "part list ${devtype} ${devnum} -bootable devplist; "
+#endif
+
#ifdef CONFIG_SATA
#define BOOTENV_SHARED_SATA BOOTENV_SHARED_BLKDEV(sata)
#define BOOTENV_DEV_SATA BOOTENV_DEV_BLKDEV
@@ -538,7 +543,7 @@
"\0" \
\
"scan_dev_for_boot_part=" \
- "part list ${devtype} ${devnum} -bootable devplist; " \
+ SCAN_DEV_FOR_BOOT_PARTS \
"env exists devplist || setenv devplist 1; " \
"for distro_bootpart in ${devplist}; do " \
"if fstype ${devtype} " \
--
2.30.2
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [RESEND PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd
2025-03-27 14:38 ` [RESEND PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd Pascal Zimmermann
@ 2025-04-11 7:15 ` Patrice CHOTARD
2025-05-05 12:42 ` Patrice CHOTARD
0 siblings, 1 reply; 7+ messages in thread
From: Patrice CHOTARD @ 2025-04-11 7:15 UTC (permalink / raw)
To: Pascal Zimmermann, u-boot; +Cc: Tom Rini, Simon Glass, Marek Vasut, u-boot
On 3/27/25 15:38, Pascal Zimmermann wrote:
> Make it possible to substitute the 'part list' command inside
> 'scan_dev_for_boot_part' with a custom board specific implementation.
>
> For this the new define 'SCAN_DEV_FOR_BOOT_PARTS' is introduced.
>
> Signed-off-by: Pascal Zimmermann <pzimmermann@dh-electronics.com>
> ---
> Cc: Tom Rini <trini@konsulko.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: u-boot@lists.denx.de
> Cc: Marek Vasut <marex@denx.de>
> Cc: u-boot@dh-electronics.com
> ---
> include/config_distro_bootcmd.h | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
> index 0a4e4b8ff85..df0dc8cfdee 100644
> --- a/include/config_distro_bootcmd.h
> +++ b/include/config_distro_bootcmd.h
> @@ -194,6 +194,11 @@
> #define SCAN_DEV_FOR_EFI
> #endif
>
> +#ifndef SCAN_DEV_FOR_BOOT_PARTS
> +#define SCAN_DEV_FOR_BOOT_PARTS \
> + "part list ${devtype} ${devnum} -bootable devplist; "
> +#endif
> +
> #ifdef CONFIG_SATA
> #define BOOTENV_SHARED_SATA BOOTENV_SHARED_BLKDEV(sata)
> #define BOOTENV_DEV_SATA BOOTENV_DEV_BLKDEV
> @@ -538,7 +543,7 @@
> "\0" \
> \
> "scan_dev_for_boot_part=" \
> - "part list ${devtype} ${devnum} -bootable devplist; " \
> + SCAN_DEV_FOR_BOOT_PARTS \
> "env exists devplist || setenv devplist 1; " \
> "for distro_bootpart in ${devplist}; do " \
> "if fstype ${devtype} " \
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Thanks
Patrice
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [RESEND PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd
2025-04-11 7:15 ` Patrice CHOTARD
@ 2025-05-05 12:42 ` Patrice CHOTARD
0 siblings, 0 replies; 7+ messages in thread
From: Patrice CHOTARD @ 2025-05-05 12:42 UTC (permalink / raw)
To: Pascal Zimmermann, u-boot; +Cc: Tom Rini, Simon Glass, Marek Vasut, u-boot
On 4/11/25 09:15, Patrice CHOTARD wrote:
>
>
> On 3/27/25 15:38, Pascal Zimmermann wrote:
>> Make it possible to substitute the 'part list' command inside
>> 'scan_dev_for_boot_part' with a custom board specific implementation.
>>
>> For this the new define 'SCAN_DEV_FOR_BOOT_PARTS' is introduced.
>>
>> Signed-off-by: Pascal Zimmermann <pzimmermann@dh-electronics.com>
>> ---
>> Cc: Tom Rini <trini@konsulko.com>
>> Cc: Simon Glass <sjg@chromium.org>
>> Cc: u-boot@lists.denx.de
>> Cc: Marek Vasut <marex@denx.de>
>> Cc: u-boot@dh-electronics.com
>> ---
>> include/config_distro_bootcmd.h | 7 ++++++-
>> 1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
>> index 0a4e4b8ff85..df0dc8cfdee 100644
>> --- a/include/config_distro_bootcmd.h
>> +++ b/include/config_distro_bootcmd.h
>> @@ -194,6 +194,11 @@
>> #define SCAN_DEV_FOR_EFI
>> #endif
>>
>> +#ifndef SCAN_DEV_FOR_BOOT_PARTS
>> +#define SCAN_DEV_FOR_BOOT_PARTS \
>> + "part list ${devtype} ${devnum} -bootable devplist; "
>> +#endif
>> +
>> #ifdef CONFIG_SATA
>> #define BOOTENV_SHARED_SATA BOOTENV_SHARED_BLKDEV(sata)
>> #define BOOTENV_DEV_SATA BOOTENV_DEV_BLKDEV
>> @@ -538,7 +543,7 @@
>> "\0" \
>> \
>> "scan_dev_for_boot_part=" \
>> - "part list ${devtype} ${devnum} -bootable devplist; " \
>> + SCAN_DEV_FOR_BOOT_PARTS \
>> "env exists devplist || setenv devplist 1; " \
>> "for distro_bootpart in ${devplist}; do " \
>> "if fstype ${devtype} " \
>
> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Hi Pascal
Applied to u-boot-stm32/master
Thanks
Patrice
>
> Thanks
> Patrice
^ permalink raw reply [flat|nested] 7+ messages in thread
* [RESEND PATCH 2/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM
2025-03-27 14:38 [RESEND PATCH 0/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM Pascal Zimmermann
2025-03-27 14:38 ` [RESEND PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd Pascal Zimmermann
@ 2025-03-27 14:38 ` Pascal Zimmermann
2025-04-11 7:24 ` Patrice CHOTARD
1 sibling, 1 reply; 7+ messages in thread
From: Pascal Zimmermann @ 2025-03-27 14:38 UTC (permalink / raw)
To: u-boot
Cc: Pascal Zimmermann, Marek Vasut, Patrick Delaunay, Patrice Chotard,
Tom Rini, Simon Glass, u-boot, uboot-stm32
For the STM32MP15 DHSOM, change the default environment so an AB schema
on a device can be detected.
For this the define "SCAN_DEV_FOR_BOOT_PARTS" is overwritten and
appended.
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.
Signed-off-by: Pascal Zimmermann <pzimmermann@dh-electronics.com>
---
Cc: Marek Vasut <marex@denx.de>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: u-boot@dh-electronics.com
Cc: uboot-stm32@st-md-mailman.stormreply.com
Cc: u-boot@lists.denx.de
---
configs/stm32mp15_dhsom.config | 3 +++
include/configs/stm32mp15_dh_dhsom.h | 33 ++++++++++++++++++++++++++++
2 files changed, 36 insertions(+)
diff --git a/configs/stm32mp15_dhsom.config b/configs/stm32mp15_dhsom.config
index 7e5b5aa67ef..c84116482f6 100644
--- a/configs/stm32mp15_dhsom.config
+++ b/configs/stm32mp15_dhsom.config
@@ -10,6 +10,9 @@ CONFIG_BOARD_EARLY_INIT_F=y
CONFIG_BOARD_SIZE_LIMIT=1441792
CONFIG_BOOTCOUNT_BOOTLIMIT=3
CONFIG_BOOTDELAY=1
+CONFIG_BOOTRETRY=y
+CONFIG_RESET_TO_RETRY=y
+CONFIG_BOOT_RETRY_TIME=-1
CONFIG_CMD_ADC=y
CONFIG_CMD_REMOTEPROC=y
CONFIG_CMD_STBOARD=y
diff --git a/include/configs/stm32mp15_dh_dhsom.h b/include/configs/stm32mp15_dh_dhsom.h
index c004a8cec82..267e3446779 100644
--- a/include/configs/stm32mp15_dh_dhsom.h
+++ b/include/configs/stm32mp15_dh_dhsom.h
@@ -17,7 +17,40 @@
" 0x800000\0"
#endif
+/* Add the search for AB partitons */
+#define SCAN_DEV_FOR_BOOT_PARTS \
+ "run dh_check_if_ab; " \
+ "if test -z \"${devplist}\"; " \
+ "then " \
+ "part list ${devtype} ${devnum} -bootable devplist; " \
+ "fi; "
+
#define STM32MP_BOARD_EXTRA_ENV \
+ "altbootcmd= " \
+ "setenv dh_ab_get_partnames " \
+ "'setenv dh_ab_partnames ${dh_ab_partname_secondary} " \
+ "${dh_ab_partname_primary}' && " \
+ "run bootcmd\0" \
+ "dh_check_if_ab= " /* Sets devplist if AB partitions*/ \
+ "echo test for AB on ${devtype} ${devnum} && " \
+ "run dh_ab_get_partnames && " \
+ "setenv devplist && " \
+ "for partname in ${dh_ab_partnames}; do " \
+ "setenv partnum && " \
+ "if part number ${devtype} ${devnum} ${partname} partnum; "\
+ "then " \
+ "setenv devplist \"${devplist} ${partnum}\" && "\
+ "setenv bootretry 60 ;" \
+ "fi; " \
+ "done ; " \
+ "if test -n \"${devplist}\"; " \
+ "then echo AB partitions found! ; " \
+ "fi\0" \
+ "dh_ab_get_partnames= " /* Sets dh_ab_partnames */ \
+ "setenv dh_ab_partnames ${dh_ab_partname_primary} " \
+ "${dh_ab_partname_secondary}\0" \
+ "dh_ab_partname_primary=rootfs-a\0" /* Names of AB partitions */\
+ "dh_ab_partname_secondary=rootfs-b\0" \
"dh_preboot=" \
"run dh_testbench_backward_compat\0" \
"dh_update_sd_to_emmc=" /* Install U-Boot from SD to eMMC */ \
--
2.30.2
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [RESEND PATCH 2/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM
2025-03-27 14:38 ` [RESEND PATCH 2/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM Pascal Zimmermann
@ 2025-04-11 7:24 ` Patrice CHOTARD
2025-05-05 12:43 ` Patrice CHOTARD
0 siblings, 1 reply; 7+ messages in thread
From: Patrice CHOTARD @ 2025-04-11 7:24 UTC (permalink / raw)
To: Pascal Zimmermann, u-boot
Cc: Marek Vasut, Patrick Delaunay, Tom Rini, Simon Glass, u-boot,
uboot-stm32
On 3/27/25 15:38, Pascal Zimmermann wrote:
> For the STM32MP15 DHSOM, change the default environment so an AB schema
> on a device can be detected.
>
> For this the define "SCAN_DEV_FOR_BOOT_PARTS" is overwritten and
> appended.
>
> 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.
>
> Signed-off-by: Pascal Zimmermann <pzimmermann@dh-electronics.com>
> ---
> Cc: Marek Vasut <marex@denx.de>
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Tom Rini <trini@konsulko.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: u-boot@dh-electronics.com
> Cc: uboot-stm32@st-md-mailman.stormreply.com
> Cc: u-boot@lists.denx.de
> ---
> configs/stm32mp15_dhsom.config | 3 +++
> include/configs/stm32mp15_dh_dhsom.h | 33 ++++++++++++++++++++++++++++
> 2 files changed, 36 insertions(+)
>
> diff --git a/configs/stm32mp15_dhsom.config b/configs/stm32mp15_dhsom.config
> index 7e5b5aa67ef..c84116482f6 100644
> --- a/configs/stm32mp15_dhsom.config
> +++ b/configs/stm32mp15_dhsom.config
> @@ -10,6 +10,9 @@ CONFIG_BOARD_EARLY_INIT_F=y
> CONFIG_BOARD_SIZE_LIMIT=1441792
> CONFIG_BOOTCOUNT_BOOTLIMIT=3
> CONFIG_BOOTDELAY=1
> +CONFIG_BOOTRETRY=y
> +CONFIG_RESET_TO_RETRY=y
> +CONFIG_BOOT_RETRY_TIME=-1
> CONFIG_CMD_ADC=y
> CONFIG_CMD_REMOTEPROC=y
> CONFIG_CMD_STBOARD=y
> diff --git a/include/configs/stm32mp15_dh_dhsom.h b/include/configs/stm32mp15_dh_dhsom.h
> index c004a8cec82..267e3446779 100644
> --- a/include/configs/stm32mp15_dh_dhsom.h
> +++ b/include/configs/stm32mp15_dh_dhsom.h
> @@ -17,7 +17,40 @@
> " 0x800000\0"
> #endif
>
> +/* Add the search for AB partitons */
> +#define SCAN_DEV_FOR_BOOT_PARTS \
> + "run dh_check_if_ab; " \
> + "if test -z \"${devplist}\"; " \
> + "then " \
> + "part list ${devtype} ${devnum} -bootable devplist; " \
> + "fi; "
> +
> #define STM32MP_BOARD_EXTRA_ENV \
> + "altbootcmd= " \
> + "setenv dh_ab_get_partnames " \
> + "'setenv dh_ab_partnames ${dh_ab_partname_secondary} " \
> + "${dh_ab_partname_primary}' && " \
> + "run bootcmd\0" \
> + "dh_check_if_ab= " /* Sets devplist if AB partitions*/ \
> + "echo test for AB on ${devtype} ${devnum} && " \
> + "run dh_ab_get_partnames && " \
> + "setenv devplist && " \
> + "for partname in ${dh_ab_partnames}; do " \
> + "setenv partnum && " \
> + "if part number ${devtype} ${devnum} ${partname} partnum; "\
> + "then " \
> + "setenv devplist \"${devplist} ${partnum}\" && "\
> + "setenv bootretry 60 ;" \
> + "fi; " \
> + "done ; " \
> + "if test -n \"${devplist}\"; " \
> + "then echo AB partitions found! ; " \
> + "fi\0" \
> + "dh_ab_get_partnames= " /* Sets dh_ab_partnames */ \
> + "setenv dh_ab_partnames ${dh_ab_partname_primary} " \
> + "${dh_ab_partname_secondary}\0" \
> + "dh_ab_partname_primary=rootfs-a\0" /* Names of AB partitions */\
> + "dh_ab_partname_secondary=rootfs-b\0" \
> "dh_preboot=" \
> "run dh_testbench_backward_compat\0" \
> "dh_update_sd_to_emmc=" /* Install U-Boot from SD to eMMC */ \
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Thanks
Patrice
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [RESEND PATCH 2/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM
2025-04-11 7:24 ` Patrice CHOTARD
@ 2025-05-05 12:43 ` Patrice CHOTARD
0 siblings, 0 replies; 7+ messages in thread
From: Patrice CHOTARD @ 2025-05-05 12:43 UTC (permalink / raw)
To: Pascal Zimmermann, u-boot
Cc: Marek Vasut, Patrick Delaunay, Tom Rini, Simon Glass, u-boot,
uboot-stm32
On 4/11/25 09:24, Patrice CHOTARD wrote:
>
>
> On 3/27/25 15:38, Pascal Zimmermann wrote:
>> For the STM32MP15 DHSOM, change the default environment so an AB schema
>> on a device can be detected.
>>
>> For this the define "SCAN_DEV_FOR_BOOT_PARTS" is overwritten and
>> appended.
>>
>> 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.
>>
>> Signed-off-by: Pascal Zimmermann <pzimmermann@dh-electronics.com>
>> ---
>> Cc: Marek Vasut <marex@denx.de>
>> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
>> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
>> Cc: Tom Rini <trini@konsulko.com>
>> Cc: Simon Glass <sjg@chromium.org>
>> Cc: u-boot@dh-electronics.com
>> Cc: uboot-stm32@st-md-mailman.stormreply.com
>> Cc: u-boot@lists.denx.de
>> ---
>> configs/stm32mp15_dhsom.config | 3 +++
>> include/configs/stm32mp15_dh_dhsom.h | 33 ++++++++++++++++++++++++++++
>> 2 files changed, 36 insertions(+)
>>
>> diff --git a/configs/stm32mp15_dhsom.config b/configs/stm32mp15_dhsom.config
>> index 7e5b5aa67ef..c84116482f6 100644
>> --- a/configs/stm32mp15_dhsom.config
>> +++ b/configs/stm32mp15_dhsom.config
>> @@ -10,6 +10,9 @@ CONFIG_BOARD_EARLY_INIT_F=y
>> CONFIG_BOARD_SIZE_LIMIT=1441792
>> CONFIG_BOOTCOUNT_BOOTLIMIT=3
>> CONFIG_BOOTDELAY=1
>> +CONFIG_BOOTRETRY=y
>> +CONFIG_RESET_TO_RETRY=y
>> +CONFIG_BOOT_RETRY_TIME=-1
>> CONFIG_CMD_ADC=y
>> CONFIG_CMD_REMOTEPROC=y
>> CONFIG_CMD_STBOARD=y
>> diff --git a/include/configs/stm32mp15_dh_dhsom.h b/include/configs/stm32mp15_dh_dhsom.h
>> index c004a8cec82..267e3446779 100644
>> --- a/include/configs/stm32mp15_dh_dhsom.h
>> +++ b/include/configs/stm32mp15_dh_dhsom.h
>> @@ -17,7 +17,40 @@
>> " 0x800000\0"
>> #endif
>>
>> +/* Add the search for AB partitons */
>> +#define SCAN_DEV_FOR_BOOT_PARTS \
>> + "run dh_check_if_ab; " \
>> + "if test -z \"${devplist}\"; " \
>> + "then " \
>> + "part list ${devtype} ${devnum} -bootable devplist; " \
>> + "fi; "
>> +
>> #define STM32MP_BOARD_EXTRA_ENV \
>> + "altbootcmd= " \
>> + "setenv dh_ab_get_partnames " \
>> + "'setenv dh_ab_partnames ${dh_ab_partname_secondary} " \
>> + "${dh_ab_partname_primary}' && " \
>> + "run bootcmd\0" \
>> + "dh_check_if_ab= " /* Sets devplist if AB partitions*/ \
>> + "echo test for AB on ${devtype} ${devnum} && " \
>> + "run dh_ab_get_partnames && " \
>> + "setenv devplist && " \
>> + "for partname in ${dh_ab_partnames}; do " \
>> + "setenv partnum && " \
>> + "if part number ${devtype} ${devnum} ${partname} partnum; "\
>> + "then " \
>> + "setenv devplist \"${devplist} ${partnum}\" && "\
>> + "setenv bootretry 60 ;" \
>> + "fi; " \
>> + "done ; " \
>> + "if test -n \"${devplist}\"; " \
>> + "then echo AB partitions found! ; " \
>> + "fi\0" \
>> + "dh_ab_get_partnames= " /* Sets dh_ab_partnames */ \
>> + "setenv dh_ab_partnames ${dh_ab_partname_primary} " \
>> + "${dh_ab_partname_secondary}\0" \
>> + "dh_ab_partname_primary=rootfs-a\0" /* Names of AB partitions */\
>> + "dh_ab_partname_secondary=rootfs-b\0" \
>> "dh_preboot=" \
>> "run dh_testbench_backward_compat\0" \
>> "dh_update_sd_to_emmc=" /* Install U-Boot from SD to eMMC */ \
>
> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Applied to u-boot-stm32/master
Thanks
Patrice
>
> Thanks
> Patrice
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-05-05 12:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 14:38 [RESEND PATCH 0/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM Pascal Zimmermann
2025-03-27 14:38 ` [RESEND PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd Pascal Zimmermann
2025-04-11 7:15 ` Patrice CHOTARD
2025-05-05 12:42 ` Patrice CHOTARD
2025-03-27 14:38 ` [RESEND PATCH 2/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM Pascal Zimmermann
2025-04-11 7:24 ` Patrice CHOTARD
2025-05-05 12:43 ` Patrice CHOTARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox