Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217412/?format=api
{ "id": 2217412, "url": "http://patchwork.ozlabs.org/api/patches/2217412/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260328171624.2377527-5-dario.binacchi@amarulasolutions.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260328171624.2377527-5-dario.binacchi@amarulasolutions.com>", "list_archive_url": null, "date": "2026-03-28T17:15:17", "name": "[4/4] board: st: stm32mp25: support dynamic A/B bank bootup", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "88822d1731b2b159028ce45a7f1287292022da7d", "submitter": { "id": 83038, "url": "http://patchwork.ozlabs.org/api/people/83038/?format=api", "name": "Dario Binacchi", "email": "dario.binacchi@amarulasolutions.com" }, "delegate": { "id": 68728, "url": "http://patchwork.ozlabs.org/api/users/68728/?format=api", "username": "xypron", "first_name": "Heinrich", "last_name": "Schuchardt", "email": "xypron.glpk@gmx.de" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260328171624.2377527-5-dario.binacchi@amarulasolutions.com/mbox/", "series": [ { "id": 497883, "url": "http://patchwork.ozlabs.org/api/series/497883/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497883", "date": "2026-03-28T17:15:13", "name": "Support metadata-driven A/B boot for STM32MP25", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497883/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217412/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217412/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com\n header.a=rsa-sha256 header.s=google header.b=dfwR8qt0;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=amarulasolutions.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com\n header.b=\"dfwR8qt0\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=pass (p=none dis=none)\n header.from=amarulasolutions.com", "phobos.denx.de; spf=pass\n smtp.mailfrom=dario.binacchi@amarulasolutions.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fjkj931jkz1y1j\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 04:17:33 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 03CAF83E7A;\n\tSat, 28 Mar 2026 18:17:14 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 1817C80077; Sat, 28 Mar 2026 18:17:13 +0100 (CET)", "from mail-wm1-x331.google.com (mail-wm1-x331.google.com\n [IPv6:2a00:1450:4864:20::331])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 1F75E83E7A\n for <u-boot@lists.denx.de>; Sat, 28 Mar 2026 18:17:11 +0100 (CET)", "by mail-wm1-x331.google.com with SMTP id\n 5b1f17b1804b1-486fb14227cso40582975e9.3\n for <u-boot@lists.denx.de>; Sat, 28 Mar 2026 10:17:11 -0700 (PDT)", "from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it\n (host-87-9-100-184.retail.telecomitalia.it. [87.9.100.184])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48722c6b105sm332432465e9.1.2026.03.28.10.17.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 28 Mar 2026 10:17:09 -0700 (PDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=amarulasolutions.com; s=google; t=1774718230; x=1775323030;\n darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=uhbnKG6I3uBd8YPHLeHNZI+uBaM8ZyYIr9wbspDdQNI=;\n b=dfwR8qt0xfrQ5EBVD910J6tULcKrLGZ+LnTM/nI0sGer2n5M2DJ4LnWJ+p+fypDopN\n kch2V7NZ3O3yXw4kZY3/n6koXZOyMo+8SvrCwN1SiF/iu+r7nmXvwOft7mdbSp6nXuCL\n ik3OtBqB4TLBimA8FkocpX9s81ZoXVJ/z6lWw=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774718230; x=1775323030;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=uhbnKG6I3uBd8YPHLeHNZI+uBaM8ZyYIr9wbspDdQNI=;\n b=pFzpCM4lJY9Trsq1JphdhVV8C9JdZlHJBgxgYm2dyrjfeiToQHjCRKdBAQ3YufF5hb\n Pd28iwmRYmy9+rGXq1swxlLTiI7+ft6bUNuGd2XRdvvu+TE94pOUfQHf7o7smauznhO6\n 0vABByOP1akk/nx/W3X9Aip6PfecIJdldL7p5ouYJ/bJbAp15i/vAG0w94aoDfLJ9uKD\n nHKOcHSinSRFir76grH3LZj9u9i9n4F4pFR6Fd54f7XpZtXYexNzWeE5BSGp/LL3TrCQ\n R+hUk94BsGGIthBHykx2qxmLeEQjjmxVatCNZ5iuccWHmSMxwSdXhCE/DcnMLJC6rcJ2\n 9XNg==", "X-Gm-Message-State": "AOJu0YyZBaTWVq1PJrIRHjpccmLDk3BEHflKMDX3s6guzzFsJlPAPhH3\n H5xjqL0vkLDTb8oTy7daPDFkGJ4QBX6S6NCY3o9oiofqO57EgxH0FR0O/jptj5nXhzt/iOPVpAQ\n UE3QN", "X-Gm-Gg": "ATEYQzwzn6tQvltZrJcNAwWMtl5kAwLK8nvS+5v2rAgOafv+82qXw6Fm0OFEvU1+I1D\n Qrp2Oos63SYm5yCHi1lABVCH5tsjabv+Nt29MZwyyvq+5bU9MhkhJPFQckKTE8yAHSMJGZzCVLy\n PjKBv9Q76iK1JuPvapVLRuENzx9T7v3/o44iVuAJPW+8zeE/t2CBI4aEJbvmkVIFwbzrX0kkvNM\n yH0dwwhf0hj2M05u1nj3jHFMOpjNpwTpk3YO4aKqGrvT/7hE19gq+UYDqtP0kdmvwt6FLIqIu1h\n cCT+gApiTsDdXN0in1cSX6EaxN91hfcS6ntMMIh75a//lQYAkzbZoNXpdrBe6BWMshznBHoJV8u\n UdLLU+kLtaPt9Clb1c8jFNjvooc8zDuYK9R5+4myBCEEEHdhdah1HDaCyQ2ZdXngTCeW5BIoDmH\n 357s4or2DU+zA7mUx9WnUv9g7+XXCJojNts1rmMNfFPX3qmDi5DK+QEkKzQM/7h5guZtSn1JM8Q\n aSY4Wj3nuHFohVzR32m41vY5BA7Jc03ahgVKE62/9HbytWckrB5YYC0eIBR8RttdJF4nFOxn79r\n luU5ItEJ8+pDf4obOiEntzp6", "X-Received": "by 2002:a05:600c:800f:b0:487:1520:d107 with SMTP id\n 5b1f17b1804b1-48727f4e9d3mr108463165e9.31.1774718230218;\n Sat, 28 Mar 2026 10:17:10 -0700 (PDT)", "From": "Dario Binacchi <dario.binacchi@amarulasolutions.com>", "To": "u-boot@lists.denx.de", "Cc": "linux-amarula@amarulasolutions.com,\n Dario Binacchi <dario.binacchi@amarulasolutions.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Patrice Chotard <patrice.chotard@foss.st.com>,\n Patrick Delaunay <patrick.delaunay@foss.st.com>,\n Quentin Schulz <quentin.schulz@cherry.de>, Tom Rini <trini@konsulko.com>,\n uboot-stm32@st-md-mailman.stormreply.com", "Subject": "[PATCH 4/4] board: st: stm32mp25: support dynamic A/B bank bootup", "Date": "Sat, 28 Mar 2026 18:15:17 +0100", "Message-ID": "<20260328171624.2377527-5-dario.binacchi@amarulasolutions.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260328171624.2377527-1-dario.binacchi@amarulasolutions.com>", "References": "<20260328171624.2377527-1-dario.binacchi@amarulasolutions.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "Enable automatic detection of the active A/B bank by retrieving\npartition GUIDs from FWU metadata.\n\nThis ensures the system correctly identifies the bootable partitions\neven in multi-bank scenarios, falling back to a standard bootable flag\nscan if the UUIDs are missing.\n\nTo enable A/B bank bootup on stm32mp25 boards, add the following Kconfig\noptions to the stm32mp25_defconfig:\n\n CONFIG_FWU_MULTI_BANK_UPDATE=y\n CONFIG_FWU_MDATA=y\n CONFIG_FWU_NUM_BANKS=2\n CONFIG_FWU_NUM_IMAGES_PER_BANK=3\n CONFIG_CMD_FWU_METADATA=y\n CONFIG_FWU_MDATA_V2=y\n\nSigned-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>\n\n---\n\n board/st/stm32mp2/stm32mp2.c | 25 +++++++++++++++++++++++++\n include/configs/stm32mp25_st_common.h | 15 +++++++++++++++\n 2 files changed, 40 insertions(+)", "diff": "diff --git a/board/st/stm32mp2/stm32mp2.c b/board/st/stm32mp2/stm32mp2.c\nindex 43bc583378e6..42df750eae9b 100644\n--- a/board/st/stm32mp2/stm32mp2.c\n+++ b/board/st/stm32mp2/stm32mp2.c\n@@ -208,4 +208,29 @@ void fwu_plat_get_bootidx(uint *boot_idx)\n \t*boot_idx = (readl(TAMP_FWU_BOOT_INFO_REG) >>\n \t\t TAMP_FWU_BOOT_IDX_OFFSET) & TAMP_FWU_BOOT_IDX_MASK;\n }\n+\n+int fwu_platform_hook(struct udevice *dev, struct fwu_data *data)\n+{\n+\tuint boot_idx;\n+\tefi_guid_t boot_uuid, root_uuid;\n+\tconst efi_guid_t boot_type_guid = PARTITION_XBOOTLDR;\n+\tconst efi_guid_t root_type_guid =\n+\t\tPARTITION_LINUX_FILE_SYSTEM_DATA_GUID;\n+\tchar uuidbuf[UUID_STR_LEN + 1];\n+\n+\tfwu_plat_get_bootidx(&boot_idx);\n+\n+\tif (!fwu_mdata_get_image_guid(&boot_uuid, boot_type_guid,\n+\t\t\t\t boot_idx) &&\n+\t !fwu_mdata_get_image_guid(&root_uuid, root_type_guid,\n+\t\t\t\t boot_idx)) {\n+\t\tuuid_bin_to_str(boot_uuid.b, uuidbuf, UUID_STR_FORMAT_GUID);\n+\t\tenv_set(\"boot_partuuid\", uuidbuf);\n+\n+\t\tuuid_bin_to_str(root_uuid.b, uuidbuf, UUID_STR_FORMAT_GUID);\n+\t\tenv_set(\"root_partuuid\", uuidbuf);\n+\t}\n+\n+\treturn 0;\n+}\n #endif /* CONFIG_FWU_MULTI_BANK_UPDATE */\ndiff --git a/include/configs/stm32mp25_st_common.h b/include/configs/stm32mp25_st_common.h\nindex cb679eb1be22..0b0267ae99b0 100644\n--- a/include/configs/stm32mp25_st_common.h\n+++ b/include/configs/stm32mp25_st_common.h\n@@ -8,7 +8,22 @@\n #ifndef __CONFIG_STM32MP25_ST_COMMON_H__\n #define __CONFIG_STM32MP25_ST_COMMON_H__\n \n+#ifdef CONFIG_FWU_MULTI_BANK_UPDATE\n+#define SCAN_DEV_FOR_BOOT_PARTS \\\n+\t\"setenv devplist; \" \\\n+\t\"env exists boot_partuuid && \" \\\n+\t\t\"part number ${devtype} ${devnum} ${boot_partuuid} devplist; \" \\\n+\t\"env exists devplist || \" \\\n+\t\t\"part list ${devtype} ${devnum} -bootable devplist; \"\n+\n+#define ST_STM32MP25_FWU_ENV \\\n+\t\"altbootcmd=${bootcmd}\\0\"\n+#else\n+#define ST_STM32MP25_FWU_ENV\n+#endif\n+\n #define STM32MP_BOARD_EXTRA_ENV \\\n+\tST_STM32MP25_FWU_ENV \\\n \t\"usb_pgood_delay=2000\\0\" \\\n \t\"console=ttySTM0\\0\"\n \n", "prefixes": [ "4/4" ] }