| Message ID | 20261107143241.2236511-28-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Delivered-To: michael@amarulasolutions.com
Received: by 2002:a05:7300:aca6:b0:36a:3487:1c26 with SMTP id
cr38csp769560dyb;
Sat, 7 Nov 2026 06:33:39 -0800 (PST)
X-Received: by 2002:a05:6000:2489:b0:48e:d7c:4bc8 with SMTP id
ffacd0b85a97d-492732dc831mr10966375f8f.7.1794062019540;
Sat, 07 Nov 2026 06:33:39 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1794062019; cv=none;
d=google.com; s=arc-20260327;
b=a7wT43AuRMdkrW3Rk12bfgb14bwCZBvSfSl3MIE40b3NFW65ZjICfPZR3bLEI0IOaC
9o+2db5sFmCChlYzD9juM1Cd7auDrOfvBHXft05b3TwjClZC+L4Z3gR2zpK02jbyXyOy
QmY349oi1jc6rfFL+8M7iTi+Jpbvi0ZVVZNYCw1h1mqsHeg9nAEbOeibzIGj6wczAjHw
5BpPYjZM7KoF5hAEwHezfVgRN00FTDaVREu8WbwcrZr7pgLe2/lP3+oO4c5N8mjrdD8W
xKCJlzr7aDDF0xOlbyyL/GiZa8Kg/1lWCDuFUrgIGIuhYHEkz3Yl1CXulnXA4+pfBqER
9wUA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=7+PVAuuMVre5+F+/xgZWFdQssChRfGIIR60te3IYvUs=;
fh=k99YzYFqWu8Hioxx2EFgO1T/+eOm5+hs9WnIUmiX1tI=;
b=Vj7FqMEirujfCAD8ZRqbpVlfv8Ls6zlodX+3vAt5ROIXwXL7Le7BoSI2Mc4ukIDtnf
yKAkWduaf4PeHNEbi1DUn9yLNIBbXyE31Hh5Lsmxu3rjFqwM/KNjsdlzqdPcRWPyKNWb
fbu5GxfXW9A7QUUIT95W3KrnFXPRKKuHjgNUW/QMbb8o1Qgx0HOOgxKG1ZMTcQDvJO/b
Z1z34bNMpFW3eKEzFHNge5Tq2Epip0kJNMDrpPO2g1yQ+1k1XC1GWhyDlTwH0ShkVcCJ
BA+we1Qguv2FS9goAShzIj8z5eIilbCRzeuquG7oQi+jnPK9GEou868lS8fVYbju1c+J
ctiQ==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b="Gnuq/rgq";
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Return-Path: <dario.binacchi@amarulasolutions.com>
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
ffacd0b85a97d-492d6b79502sor696250f8f.8.2026.11.07.06.33.39
for <michael@amarulasolutions.com>
(Google Transport Security);
Sat, 07 Nov 2026 06:33:39 -0800 (PST)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
Authentication-Results: mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b="Gnuq/rgq";
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1794062019; x=1794666819;
darn=amarulasolutions.com;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=7+PVAuuMVre5+F+/xgZWFdQssChRfGIIR60te3IYvUs=;
b=Gnuq/rgqLNlGg1oUQd8tegMQdKE08se3sRou+1sebTGmfsmS7p1u+o3JmY0FFu2ahd
SnqVE1oV0AJO/+yt7YeSEtVLHBsmvNV0DNrEKASKkJn71cY96ZatuoKOY6V4j+Tx1kLF
EOqqrJjXs/qaU4V/oc7pVOPvf23hdjDlbSpLM=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794062019; x=1794666819;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=7+PVAuuMVre5+F+/xgZWFdQssChRfGIIR60te3IYvUs=;
b=Yt4ydoIQDepBQJFyzOio/HkbAn0D3x5u0SUrqtDkiLNmBCIfoLbrotKtzy1LtdvacS
OeA0DgHFxVg57/ZobI45WAklmtvJPCeEYV+u7OlwdxfsnbF0dHsAbFEFQFcWO1L6B9sH
a+NTzQXsftM9HgddJ4HUKbeUuIc7PMpsGkOrZen9lrmawK+sOWLB1Pa4L3s+Jtl81gnq
ddBLJ8reHWaeH8qrmY2DX0pgyWFhKerzqGVWcjQ4zhdrpjms2GzSBCRJvnvu2Nkef59L
LqD4ATgrT3dZ7BBkIz81xrbzH8UoOxX0jvaMvil7dk5cJ+DYgHyGSKFjsvN7LzabQVZa
il0w==
X-Gm-Message-State: APuU4Z813WSB2aVE8zdYn5IEzpSyZFGngBcExeDeiTJGCiAuBUQeNK7i
6vDxw/AuKUpAKh5n40QNB2dUv5TBAOwd0BlbZnN8Cg63IC2XEXxTNpuOsH+La1iIrteHYg==
X-Gm-Gg: AYBFou3HDRPZBkh7UlV0pTxBYa/uJPs0KcI1v1CXzSy5ZOpQ14HSZtv1kHA3eD29/xi
0msCeFi5mHMU8FVX6ekm7UTPdZ+Hk7iPUOZckH0fyn+N8i0qtImuirDyW2n9iE5iJDsLIrc8W5+
yeOYnMfiI+VoQSZzbyHazf+1ILSV4fTQbWCU5/X0xBA+bFPDBZilpFLy/XBJ0I6ivxXDFfsj7L6
w1QKUq1l8LeHsyyBvhO9Qsg0+BpeNE2DVeY8ESTEYyKBf7T/uMVwE3cp9i9I+gmZG8MtHbnNx2g
w1RQ4QurrCUdMMcGRwl+bqx+i0yhuqlMUOMGkgxLdV3zWY9QgrbkWmA8X+dR5SScwfkUV89hxlb
dH/faOGP9/q6P4pgVbGqW7AWTpzSnZhXgecolqZi5LESvYp5kASTHyJRI8keJDJ9M5i6dRthQr2
TkRHHqFHjZSfPLpwJBe0+k86OL5A2jgN+GOwtzt6t9alfFln+CoBiwX2PLTNpTkD0AdmjzgT2eh
ZTK51PdIuhXamvB5ZVcZVu1mf/npj43+Rr+lxEHMJi94ex7hx0xhOnsZG6VlmPL6C5kvQ/jMnvY
Ba1VROUjUrLfdsUYPogossgaMv5G4k34Ag6yML/qV4UlVxPohBBzsBYsPcU5bTo7bSPBxj+bGsc
KS0AnO/mN3sikjwMGc/py2w2LWJZbKcQLFQXqoOKfolDzR6v4XhWOC/W5FH+tNhl43b7Am6mVJL
Og5IhjgehJ9DR69MgYtvN6BKAz/w==
X-Received: by 2002:a05:6000:386:b0:490:411a:1eed with SMTP id
ffacd0b85a97d-492778d0cadmr10145724f8f.39.1794062018947;
Sat, 07 Nov 2026 06:33:38 -0800 (PST)
Return-Path: <dario.binacchi@amarulasolutions.com>
Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it
(host-79-14-29-58.business.telecomitalia.it. [79.14.29.58])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-492d7cc6187sm10027247f8f.46.2026.11.07.06.33.37
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 07 Nov 2026 06:33:38 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: michael@amarulasolutions.com,
linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Simon Glass <sjg@chromium.org>,
Tom Rini <trini@konsulko.com>,
u-boot@lists.u-boot-project.org,
uboot-stm32@st-md-mailman.stormreply.com
Subject: [PATCH v2 27/35] configs: stm32mp25: move FWU A/B boot environment to
common settings
Date: Sat, 7 Nov 2026 15:32:17 +0100
Message-ID: <20261107143241.2236511-28-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20261107143241.2236511-1-dario.binacchi@amarulasolutions.com>
References: <20261107143241.2236511-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
|
| Series |
Add Engicam MicroGEA-STM32MP257D-RMM board support
|
|
Commit Message
Dario Binacchi
Nov. 7, 2026, 2:32 p.m. UTC
The distro boot environment booting from the bootfs partition of the
bank selected by the TF-A only depends on the FWU multi-bank support, so
it is not specific to the STMicroelectronics boards.
Move it to the STM32MP25 common settings, so that other vendor boards
can use it too.
No functional change intended.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
(no changes since v1)
include/configs/stm32mp25_common.h | 20 ++++++++++++++++++++
include/configs/stm32mp25_st_common.h | 15 ---------------
2 files changed, 20 insertions(+), 15 deletions(-)
--
2.43.0
Comments
On 11/7/26 15:32, Dario Binacchi wrote: > The distro boot environment booting from the bootfs partition of the > bank selected by the TF-A only depends on the FWU multi-bank support, so > it is not specific to the STMicroelectronics boards. > > Move it to the STM32MP25 common settings, so that other vendor boards > can use it too. > > No functional change intended. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > > (no changes since v1) > > include/configs/stm32mp25_common.h | 20 ++++++++++++++++++++ > include/configs/stm32mp25_st_common.h | 15 --------------- > 2 files changed, 20 insertions(+), 15 deletions(-) > > diff --git a/include/configs/stm32mp25_common.h b/include/configs/stm32mp25_common.h > index a334b47b555b..7eb5c4ffc00f 100644 > --- a/include/configs/stm32mp25_common.h > +++ b/include/configs/stm32mp25_common.h > @@ -86,6 +86,25 @@ > #define STM32MP_BOARD_EXTRA_ENV > #endif > > +/* > + * With FWU multi-bank update, boot from the bootfs partition of the bank > + * selected by the TF-A ("boot_partuuid" set from the FWU metadata), > + * falling back to the bootable partitions if it is not available. > + */ > +#ifdef CONFIG_FWU_MULTI_BANK_UPDATE > +#define SCAN_DEV_FOR_BOOT_PARTS \ > + "setenv devplist; " \ > + "env exists boot_partuuid && " \ > + "part number ${devtype} ${devnum} ${boot_partuuid} devplist; " \ > + "env exists devplist || " \ > + "part list ${devtype} ${devnum} -bootable devplist; " > + > +#define STM32MP_FWU_ENV \ > + "altbootcmd=${bootcmd}\0" > +#else > +#define STM32MP_FWU_ENV > +#endif > + > #define STM32MP_EXTRA \ > "env_check=if env info -p -d -q; then env save; fi\0" \ > "boot_net_usb_start=true\0" > @@ -119,6 +138,7 @@ > STM32MP_BOOTCMD \ > BOOTENV \ > STM32MP_EXTRA \ > + STM32MP_FWU_ENV \ > STM32MP_BOARD_EXTRA_ENV > > #endif > diff --git a/include/configs/stm32mp25_st_common.h b/include/configs/stm32mp25_st_common.h > index 0b0267ae99b0..cb679eb1be22 100644 > --- a/include/configs/stm32mp25_st_common.h > +++ b/include/configs/stm32mp25_st_common.h > @@ -8,22 +8,7 @@ > #ifndef __CONFIG_STM32MP25_ST_COMMON_H__ > #define __CONFIG_STM32MP25_ST_COMMON_H__ > > -#ifdef CONFIG_FWU_MULTI_BANK_UPDATE > -#define SCAN_DEV_FOR_BOOT_PARTS \ > - "setenv devplist; " \ > - "env exists boot_partuuid && " \ > - "part number ${devtype} ${devnum} ${boot_partuuid} devplist; " \ > - "env exists devplist || " \ > - "part list ${devtype} ${devnum} -bootable devplist; " > - > -#define ST_STM32MP25_FWU_ENV \ > - "altbootcmd=${bootcmd}\0" > -#else > -#define ST_STM32MP25_FWU_ENV > -#endif > - > #define STM32MP_BOARD_EXTRA_ENV \ > - ST_STM32MP25_FWU_ENV \ > "usb_pgood_delay=2000\0" \ > "console=ttySTM0\0" > Hi Dario Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Thanks Patrice
diff --git a/include/configs/stm32mp25_common.h b/include/configs/stm32mp25_common.h index a334b47b555b..7eb5c4ffc00f 100644 --- a/include/configs/stm32mp25_common.h +++ b/include/configs/stm32mp25_common.h @@ -86,6 +86,25 @@ #define STM32MP_BOARD_EXTRA_ENV #endif +/* + * With FWU multi-bank update, boot from the bootfs partition of the bank + * selected by the TF-A ("boot_partuuid" set from the FWU metadata), + * falling back to the bootable partitions if it is not available. + */ +#ifdef CONFIG_FWU_MULTI_BANK_UPDATE +#define SCAN_DEV_FOR_BOOT_PARTS \ + "setenv devplist; " \ + "env exists boot_partuuid && " \ + "part number ${devtype} ${devnum} ${boot_partuuid} devplist; " \ + "env exists devplist || " \ + "part list ${devtype} ${devnum} -bootable devplist; " + +#define STM32MP_FWU_ENV \ + "altbootcmd=${bootcmd}\0" +#else +#define STM32MP_FWU_ENV +#endif + #define STM32MP_EXTRA \ "env_check=if env info -p -d -q; then env save; fi\0" \ "boot_net_usb_start=true\0" @@ -119,6 +138,7 @@ STM32MP_BOOTCMD \ BOOTENV \ STM32MP_EXTRA \ + STM32MP_FWU_ENV \ STM32MP_BOARD_EXTRA_ENV #endif diff --git a/include/configs/stm32mp25_st_common.h b/include/configs/stm32mp25_st_common.h index 0b0267ae99b0..cb679eb1be22 100644 --- a/include/configs/stm32mp25_st_common.h +++ b/include/configs/stm32mp25_st_common.h @@ -8,22 +8,7 @@ #ifndef __CONFIG_STM32MP25_ST_COMMON_H__ #define __CONFIG_STM32MP25_ST_COMMON_H__ -#ifdef CONFIG_FWU_MULTI_BANK_UPDATE -#define SCAN_DEV_FOR_BOOT_PARTS \ - "setenv devplist; " \ - "env exists boot_partuuid && " \ - "part number ${devtype} ${devnum} ${boot_partuuid} devplist; " \ - "env exists devplist || " \ - "part list ${devtype} ${devnum} -bootable devplist; " - -#define ST_STM32MP25_FWU_ENV \ - "altbootcmd=${bootcmd}\0" -#else -#define ST_STM32MP25_FWU_ENV -#endif - #define STM32MP_BOARD_EXTRA_ENV \ - ST_STM32MP25_FWU_ENV \ "usb_pgood_delay=2000\0" \ "console=ttySTM0\0"