| Message ID | 20261203171852.62649-22-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBKGJY3MAMGQEQV4UIZA@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com
[209.85.221.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 380573F3B1
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 3 Dec 2026 18:19:37 +0100 (CET)
Received: by mail-wr1-f71.google.com with SMTP id
ffacd0b85a97d-499ca65ae87sf17501f8f.1
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 03 Dec 2026 09:19:37 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1796318377; cv=pass;
d=google.com; s=arc-20260327;
b=PxzKM13SLZjsHP84jOtibX3bWzbDK9OltC7kORdCBLDSJugJcFantUmbZ3o9EO3oWc
ttyL0xkUBCZ00s3+WqVh2cKruXu7J+DggUXkLN1LcWK36oT2UYVzsBVQJU281n+1KgbQ
XqkV6QB7FpvumcDIj5l5couM5WrJY2MwHlGYP/VzrJGfnimIk1MuHpYiGZTmRN1R2KZU
I1q6Sk6YR7hyyL0FdcLAa6zWdLTPE5+rZEah8C8laNe2GpP5WDeANKPnkxoXL/lxWTgi
G+sYljgahJfHGOsufnAJIas2qx/NrMpkmY/J33upkq3EZGSRs9BR2PSo+SWO/Kset6Ed
0NTw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=6nBYjgeJXm83zd7OoFrjFn0YZOsPdYaAgKv4iHGLt94=;
fh=TPujNyKbRj0VFlY7ZF4vwDHt/lBvNMtbXWa3PMxU48k=;
b=mbZyCauN2zagyQgk4JzlQ9Y8iOTjGP2FiDmZ/GcViRfEdEX6RIts7mVOYge+FwtVyA
eikHOGBQyA8mhLFCrueUVXJBi3c/CefmlJgi7dAO6P222ml/3x30PIu34XK2tVcOijOe
bMKwvRi7yw+TjUWxIfFWvsSlZ53QVO5tBRJ09sdIzXDAgeJcw9bLVFs/mJ4hzVPY48rp
1MztgueyhaiAJM7o++jmoWGH7XftP1sGewPusf4l3x5Rxxnnnxbb4327pryJp6zIWIZ5
oErLjIt9WOOJJcUylOt93XixDroWvIMhK6o4/2wblIiE0PZQ1Mn8mzUBCiQY6iVhreRk
OIMg==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=bmSr7SYM;
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=1796318377; x=1796923177;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:content-type
:x-original-authentication-results:x-original-sender: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=6nBYjgeJXm83zd7OoFrjFn0YZOsPdYaAgKv4iHGLt94=;
b=i+JxUIhAJjgZK/TcEUsd1RSwALN7WS9f+0y1ISjK2ao8q+N0/ecatPfqnNm5ByQJla
CK197pkzLVQed2QOlWGvzCa3oGk2iodJTfqn4hZMNjGMp+61XjYrXBLk6hTdsMb2cJXg
YbsA6sd6Eu/zUredz8eFzzdcsQUDJa6d6zbwc=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796318377; x=1796923177;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:content-type:x-original-authentication-results:x-original-sender
:mime-version:references:in-reply-to:message-id:date:subject:cc:to
:from:x-gm-gg:x-beenthere:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=6nBYjgeJXm83zd7OoFrjFn0YZOsPdYaAgKv4iHGLt94=;
b=HbCwBQHAdKzia+jazdYhVoNwAcBWCRK4lWIsMUVp+tlFuMaaJ59cy9gLuZJf4rNKHb
Ksl2uJTBJbPv6mfGBAmZ5kjVVyFFVv0T5AszYuhyncgch8oieNmeQB4FrVZBQoM76hHV
/o91rU7tLRtrWuOK2Lrf8fy+u0Woz9Sj2jFelJ6447ZiWjxBPRn/BgK4TFAYAPk2My2G
CdiRJYSO/4ylSXk9HUGIdwLk1nx/mY3ueopnlumUk4g4zfVheZnmgTRgqGNf0HiI7LgA
jJ/Jmy77rlIMWaThNFlZMv3q4U1rqcs5cFdFZdfOjHt1oytVLJJmjX+QZRR5mkgTsbxZ
HvJw==
X-Forwarded-Encrypted: i=2;
AL+hErEjZmvOpucaFZLX3bPATkZzUDe0c9Jo8+T6nIlyLmMXFFnX3octBs1KY/a3QepEzfcPBMCAcfi0rbnPSgHH@patchwork.amarulasolutions.com
X-Gm-Message-State: APuU4Z+NP5wO2TbJh4z7i5ZmXaRhPYdXfJ0DJjKac2+7G6oM2X1IlssU
c+RSB7NY7XKU1vqtVOvY+BSh3eQ/B8SZDLYtG5hQkIP6eqn/YzbQkS6xrw53bWm0cuBs1w==
X-Received: by 2002:adf:ec84:0:b0:498:364d:7509 with SMTP id
ffacd0b85a97d-4cf4ba444d6mr4489497f8f.24.1796318376810;
Thu, 03 Dec 2026 09:19:36 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="ATskLdfRXy5FInwOYJ/5X2TpvTLXvhj3WqZ0yoN8kUp4f9iKdA=="
Received: by 2002:a05:6000:430b:b0:48e:67c2:c1f2 with SMTP id
ffacd0b85a97d-4cee21f7510ls544327f8f.2.-pod-prod-00-eu; Thu, 03 Dec 2026
09:19:35 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AL+hErHWmkPgNxgd944U2HSM30elYlo+0tZ6Dn9bVJrWSEHP2a9Pu8berDc7jAciOCjMDeJBpNfMzw9MlvRK3s/1@amarulasolutions.com
X-Received: by 2002:a05:6000:4b19:b0:4b5:7aed:6812 with SMTP id
ffacd0b85a97d-4cf4423435amr5581774f8f.4.1796318375377;
Thu, 03 Dec 2026 09:19:35 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1796318375; cv=none;
d=google.com; s=arc-20260327;
b=EhDaMtTiXXfuz0rtjthORES/eXDwPLG2HNbmliJOlDvZ9RHNqzJNl3I/MUppmW4iTn
4ygljITDmRGFzSDpIej0/D56fcsmAPnBVnb6Z+hICkI7UxShihapera5bmoman9asFfu
5J7Xs3wPM86a8bLGP3ZgV0wOx5SVGc523RaMxDEWSjz792LnMGcQfXYjhWqQ12QUVF7Q
qswYD090efvwu3HQvnbhXS1qPrnlNP6jcPpczlsZ+eJnNRU2UdjrVN1Lrno488A+TXIo
H8O+sNc20PlkH6CjD+vDkLSSo1Hf5H8AAxw1C7QncabXW2JshIu4y8XNMG2TD6bnoSNR
n9Rw==
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=vDnguspXgjQoWmzwMsJdDsIiT64qGM9PQ693cPkG3N8=;
fh=HDbLw4iRTx7qRhOeCXm/qyXsvglTU4eg2gAdQvFJEws=;
b=ViZvKuIroikXBN9F7Ua0vb/K872ewv+FAwhdb8WrcVT2R6fCzuK4aF2ZRBV3vu8lrp
IKC30eLctBXdGMhaLp+y4V028Q91LD60URI36L36Z35dXI7lnOfhg0L5RXnvHM2MW4aY
WP28kkGHl4hmejdoOs7R5W7n9FAD29t5ifFg2ekNUqITy5HA8FysJXgQQtKq0vMEVUME
Mq+plpYOZ0wniVntVrVALj3MXAf3LwOTQiANnR6j0rJ+td5WH+KlR8gXa3ba6m90kKbR
CBljE23IvlZe5a5xFpUJpNUh4aSE53pqZ4Gmzo7WZAzTwKzA2dh7Jj7xET4HSJl5MpUG
Io2Q==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=bmSr7SYM;
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
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
ffacd0b85a97d-4cecca815c1sor747322f8f.8.2026.12.03.09.19.35
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Thu, 03 Dec 2026 09:19:35 -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;
X-Forwarded-Encrypted: i=1;
AL+hErGlP5cJqitdPPwLoItrrgGycuka84SQB+peQ8dTJTPZnbZJhzKVBWMJlx7+Un9ZUaZ9YffoZZ1O/DNNFd8f@amarulasolutions.com
X-Gm-Gg: AZFdTZcq4brkubnwHXdVWtxPOXCmbh6QwQcoj94R8Te2tVqJSGkg2NUMc5i+AJfY2mY
EQUTo0dY39HUsIPWv2XHmG2OMoInpPDfZbCF4eqZmQSgNMG8g2Hq3DycPAHUt/1rZccIa77ubfI
4xYPIdvuWCSRkEXfPB9y30uepA5iJO1RinTqa0wHwC0iCLSTeVTfg3uVUPazy2wVpOgfKm8cNSS
LLV+Cp2/m1xROz1TknkdVx8tNMgqniwpV6kDN7DudlbDaQo2DCXkBHHE9xgVh640LvsHD7rm0um
DSHDpcrS4QAC+7m//XL9v5uUvK869dD6XwCJU84A+izCynmrP3sQ4SuF6+dGohnoWf5OwdLMKbW
Eb/9jk/g5BIshhzAWrWXqXvVewSO65AIkArtjx11/xial4bqmM1SEnShoBISWKefFb3Q3r2YMsH
IyuzdRwM+CI0soR6aitZwbVR1nqpH6TKP5u8QmXjzG5ZqTa045N0/4NlDVHzoXezMvNwYo1Fcol
h0Zyquua7KjRDFlwcglL43a6/kQX9R3NEvCONg/R7NLOuIy4Oo83P64lq1dLbZRXW2UNjZlznBz
GqVXHyO7op9/dUc8HxtEhvEyXyjloFKDjWhSN7wDzdroq6+/nW+ningfCSbao7kFqTk/NHunmFJ
rAgvXY5RsBmQ2qvpWjlH/hoRKUF5MBYL5SShMLRcvF6nNppco0Kid68qdYMiE5vVRBRlS9FyqQ5
lBoGK8FSSm1Iu2E9+t/8R8HJ7wvA==
X-Received: by 2002:a05:6000:2909:b0:492:2b36:a149 with SMTP id
ffacd0b85a97d-4cf4bb393b1mr6002839f8f.25.1796318374973;
Thu, 03 Dec 2026 09:19:34 -0800 (PST)
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-4d173ab8e3fsm329012f8f.42.2026.12.03.09.19.33
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 03 Dec 2026 09:19:34 -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,
Yannick Fertre <yannick.fertre@foss.st.com>,
linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Tom Rini <trini@konsulko.com>,
u-boot@lists.u-boot-project.org (open list)
Subject: [PATCH v4 21/29] configs: stm32mp25: move FWU A/B boot environment to
common settings
Date: Thu, 3 Dec 2026 18:18:06 +0100
Message-ID: <20261203171852.62649-22-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20261203171852.62649-1-dario.binacchi@amarulasolutions.com>
References: <20261203171852.62649-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=bmSr7SYM;
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
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
Add Engicam MicroGEA-STM32MP257D-RMM board support
|
|
Commit Message
Dario Binacchi
Dec. 3, 2026, 5:18 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> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> --- (no changes since v3) Changes in v3: - Add Reviewed-by tag 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"