[v2,0/7] Support metadata-driven A/B boot for STM32MP25
| Message ID | 20260404152640.3297713-1-dario.binacchi@amarulasolutions.com |
|---|---|
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBPW3YTHAMGQEQABXDPA@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 A90DF3F10C
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 4 Apr 2026 17:26:55 +0200 (CEST)
Received: by mail-wr1-f71.google.com with SMTP id
ffacd0b85a97d-43d0c06c232sf2485317f8f.1
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 04 Apr 2026 08:26:55 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1775316415; cv=pass;
d=google.com; s=arc-20240605;
b=G5mdH51fjHU50wzorSAfEEp2TNk+e4mz/0HHSGb5D2i9J7K+jpBVoM0gyyNiL1sVnf
8Eszc9F3ePOb5kBQsAKOWdoyLZF37Cwq35tkIJctc4qcnjfnja87cmArmxqy1B+567b4
oa8iWFdVsT5WnH1vGoRYGY7Y15QOjlhzxVDTKslcu0uqdFkancurGZ7XyWalE5/yplF6
rGLqehUsxlEeQzgaWQH0MLklhJcvPK9D04IsRFDmz/nul+sY6haN4j4W9QaI/0EB0Ysl
uVdVToZ1bPt67B5Q4dMEj6ixuF+VkQ1wt5GlBeG7IdRlB4MmR/9yiB2GuGuo1CW6k8Vc
LCOg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:cc:to
:from:dkim-signature;
bh=79q8q2uWZD3S7D/IhelT1an7DshxmJrHla8dSIPKxQI=;
fh=ZgTCuRvr2aKTq59+Q0DEtyyc10czdMZ0ObfIJSzr8Wo=;
b=PMwm0AtQ2PcItiq1uChcVHcm4bHvevNub63gjmLFZWDFmuUvIjou0/XvGQDLemVe1p
+URJQz4gRArQk1otY+xMU1GxTcqjnInFIg3rVZiEw9F7wF/o835Iu98JN+HyVDUHtwMN
VPuH+sxSa+wsnwx7CIrmM2MkWSUc61nZPiO54AGsFihCOCNmAO6/mftbPnOobjvMLBYB
XVMuxvDTzObaum1kDJG3dUWRtpO1HVdlVpwxXqqEcoLinfhMI+ZoKXIn6gnOMeu37yLV
aHVGVSkggJ1/Nb86qe7X7Y+Et/rt0yLh9iF2wlsgownIIpn34443mZqZ/UX520nd+DPP
nVcw==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=Blukhzt0;
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=1775316415; x=1775921215;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=79q8q2uWZD3S7D/IhelT1an7DshxmJrHla8dSIPKxQI=;
b=klsJoa06Tv6uhTPs3F24Ohs5cTlvj58+QCbTwbh/YR/kSi42FuNG2LPhMYB/4oz2zS
PDv/KPgHzW/FsSaIXEJqPPoWdtnhW603m3WqdEsc0xRBoS1SZW3KQxfkf6XnQE6UYrSy
g2jW06nE3OUTZoY8eOKQhMNeNccofzHC+2mj0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1775316415; x=1775921215;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
: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;
bh=79q8q2uWZD3S7D/IhelT1an7DshxmJrHla8dSIPKxQI=;
b=ZIzBQo7yz8YfXFGUX8MUkHkE+gqEzK3GRVC0WTIki6/n9FVw72l5VQM9vIpjSipFKo
loXzwTKAt2XuVuAaeEyU4wIQNTVbqMrwm5Ulk1AUMq5ywbnN/zk04dFT3K499IurwTVS
l6E0DZQWV5UDIYlPNTa6S7dD18bBBPifuGWyrOm4OoJwRcvZkVWMhOuIwqrpIE4//Q9G
AjtQF1Ow1mPrY0WoLqYKx/RE9jLupPVQoRlYtld9fz+gWJIMSzbMJaec4SKPN3YqieX0
uyXPa4aj2bO1q+CADUZ2HY6MgSSdRhyOCdhttI2CN/MCJqABIFc0BwDcnEon8PI89Zuj
pMUA==
X-Forwarded-Encrypted: i=2;
AJvYcCU2b4WRWAcQS8wZM6TEay5i/XpNVj/+dn3Qf6UerGeblPfy5I82lJC8zeLWSqe9+eoIjlclRHMkxjyZpYVV@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0Yx0x/x6qAe30xImtAiHxXDhi+71Rm2hG+FryrVgm0OdqmKtVwRR
9ChHxNyDIiHG+8FOQ8zPc/Pr4I3r0mG+tF9vcvWIDXB76I0B3MZAQrubZG2tTWP0qX8K8w==
X-Received: by 2002:a05:6000:2c0a:b0:43c:dc99:771b with SMTP id
ffacd0b85a97d-43d2930fb00mr11007330f8f.43.1775316414918;
Sat, 04 Apr 2026 08:26:54 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="AYAyTiLzd5VjrhnLIWxIg/uMzIlXTJQVL0nJptB8V45kBFfL4g=="
Received: by 2002:a05:6000:40de:b0:43b:9efc:6a67 with SMTP id
ffacd0b85a97d-43d1f329160ls2752282f8f.1.-pod-prod-06-eu; Sat, 04 Apr 2026
08:26:53 -0700 (PDT)
X-Received: by 2002:a5d:5f86:0:b0:43b:43d3:62ac with SMTP id
ffacd0b85a97d-43d292a8a5amr11095777f8f.18.1775316413151;
Sat, 04 Apr 2026 08:26:53 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1775316413; cv=none;
d=google.com; s=arc-20240605;
b=j4QTo1Sa586tvvy/LLW6yqHDM8gOZOSgTYB78CowBulfGXflMu/ksfyfTm7L/QKqdF
V9gJyPq8qh5nIXE3Q8bZXyAoauquoxnh0YZwkAkwxftHSFZ5RQRZraev4xpyhXshsk6j
2zTFPmG61TFW14Lt4uE3PjIEXDeh657Zmzd8dJZL++2RLu4NuuhFVByTjwPqmjI9bFOG
/J7qJBbqds7rrCFaaWmfhNXZkfqbJN8cqLWFJN6XPREG1byFmLDUGISDi3fdcofY/clZ
NGadSTieAizSrHzzwbLRbUPJtUi1pX4gq5YtqzZ1ytqzTgjfjaVmnUc5V/otpY6vrLX9
BmPg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=IY0IgVlmnddhQ9ALEN+0fIKmuZ2Q12FXzs7AS6INRAw=;
fh=lSxDX6nqQFaDQ3cOVOKcVOXe7dTnRy+T1WQMCbBnTMM=;
b=J6ahM/4bWE2AnAY4JknjzvPGYrgC/L5/L+Tdtlp1KH0k9ZQV9EehBBVhNHKig3mjtN
KG06DXlzXMY7B8RtIS5SMXFGXXtm0eu9FV1kBl685oqJuZEIJI7BG8rZPVayxNkukO+P
eNwJ+CbtU9AaJBpxP1sB8Sy1otVe5FaYVObDKUZ3TPKVu9mVX2Xr0MJ5ElGKY4lBL6uL
RBWV2uUVIzB3eeRP5TZ8yF3re85juvwETqJ7cJuzGROBLLz65D33RrDHuNI8szR/sb0N
GkLJMPlCRO04MYery2LUUiB3acH8P/6P1hilP5wfAq+avee2c/VYr19LWJMjrIhqMZNo
cWpw==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=Blukhzt0;
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-43d1e4c11e5sor1062677f8f.10.2026.04.04.08.26.53
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Sat, 04 Apr 2026 08:26:53 -0700 (PDT)
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-Gm-Gg: AeBDiet+eWyMsv2ppNQ/COWNcuG3WBY+XAiFLv/TvlfdN+A9XG+tADFnMgygdsn7TLy
ceWLH4GpIN/Vo8GY2znO1FqakdawsQzjZo72HvtJiQ+dqhFS+6sWDOfhcmB47ED9lJf72y79Fiy
FCIOxUVE5JMrLabodSlyxV2DVyLAWw8bZ4API+LSg5wXT4qwhIERQUie6fkBxz6Za7Tps9HOU0E
G1tLS1LFmdS9Xjh2Gsc3h0psa/pQ69dfnwYlvmWNW43q54WeCeUtyEyX+AcBeFHw8nBawWxpJEt
nPuB+dLvtPBaIesZ0M73a1GW40lp9lfzgthXY7vgbaZ19JXwGD8MhRPjwUYslpD+44m5Eeo69Qx
7cuQx1FX85mVjugZjB51GCF7Rk/+Ki/YNbOxMv6p0JKZWuu3irWy6H4S+WfLf4fZOkYOoJHOnME
GnWq+ZTT1i4lDXiYFBLxNYoTE3AwJebWI1/JZMk2V2gVCzgU+ec/ICI6tkAkudM4KiFUmwCcKog
luQrCjtSIFOaHkoPDhlAI93bgjali/qkIht3XAfJAp8cb46wZKpYe+5YSQrNez5A3UYILfUjIld
qXbeZOtETtMGVPe8SI0gXnSkkgc/IAwpL/8=
X-Received: by 2002:a05:6000:40ca:b0:43b:8f38:3b88 with SMTP id
ffacd0b85a97d-43d292e7101mr10522763f8f.25.1775316412511;
Sat, 04 Apr 2026 08:26:52 -0700 (PDT)
Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it
(host-87-9-100-184.retail.telecomitalia.it. [87.9.100.184])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-43d1e4f1a99sm28059462f8f.32.2026.04.04.08.26.50
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 04 Apr 2026 08:26:51 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: u-boot@lists.denx.de
Cc: linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Dinesh Maniyam <dinesh.maniyam@altera.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Javier Martinez Canillas <javierm@redhat.com>,
Jerome Forissier <jerome.forissier@arm.com>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Mattijs Korpershoek <mkorpershoek@kernel.org>,
Michal Simek <michal.simek@amd.com>,
Padmarao Begari <padmarao.begari@amd.com>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
Quentin Schulz <quentin.schulz@cherry.de>, Rasmus Villemoes <ravi@prevas.dk>,
Simon Glass <sjg@chromium.org>, Sughosh Ganu <sughosh.ganu@arm.com>,
Tom Rini <trini@konsulko.com>,
=?utf-8?q?Vincent_Stehl=C3=A9?= <vincent.stehle@arm.com>,
uboot-stm32@st-md-mailman.stormreply.com
Subject: [PATCH v2 0/7] Support metadata-driven A/B boot for STM32MP25
Date: Sat, 4 Apr 2026 17:23:27 +0200
Message-ID: <20260404152640.3297713-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
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=Blukhzt0;
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>
|
Message
Dario Binacchi
April 4, 2026, 3:23 p.m. UTC
This series, the mainline version of [1], provides the necessary changes in U-Boot to support the metadata-driven A/B update flow for STM32MP25 boards. It implements the logic required to dynamically select the boot bank based on FWU metadata. These changes are designed to be backward compatible while providing the necessary infrastructure for the A/B scheme. The series has been tested on the STM32MP257F-EV1 board. Additionally, some patches in the series propose changes with general-purpose utility: 1/7 lib: uuid: add partition type GUID for extended bootloader 4/7 cmd: part: support lookup by UUID in 'part number' 6/7 fwu: add helper to get image GUID by type and bank index [1] https://github.com/STMicroelectronics/u-boot/pull/6 Changes in v2: - Add links to the XBOOTLDR specification in the commit message of patch 1/7 lib: uuid: add partition type GUID for extended bootloader. - Update help for 'part start', 'part size' to mention UUID. - Add kerneldoc comment for fwu_mdata_get_image_guid(). - Pass efi_guid_t by pointer in fwu_mdata_get_image_guid(). - Add patches: 5/7 test: cmd: part: add UUID lookup tests 3/7 test: cmd: add unit tests for part command 2/7 test: dm: part: add test for part_get_info_by_uuid Dario Binacchi (7): lib: uuid: add partition type GUID for extended bootloader test: dm: part: add test for part_get_info_by_uuid test: cmd: add unit tests for part command cmd: part: support lookup by UUID test: cmd: part: add UUID lookup tests fwu: add helper to get image GUID by type and bank index board: st: stm32mp25: support dynamic A/B bank bootup board/st/stm32mp2/stm32mp2.c | 25 ++++ cmd/part.c | 12 +- doc/README.gpt | 2 + include/configs/stm32mp25_st_common.h | 15 ++ include/fwu.h | 3 + include/part_efi.h | 3 + lib/fwu_updates/fwu.c | 33 +++++ lib/uuid.c | 1 + test/cmd/Makefile | 1 + test/cmd/part.c | 204 ++++++++++++++++++++++++++ test/dm/part.c | 53 +++++++ 11 files changed, 348 insertions(+), 4 deletions(-) create mode 100644 test/cmd/part.c