public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/uboot-tools] rawhide: Update patches for RPi5 NVME boot, DTB loading
@ 2026-11-20 11:04 Peter Robinson
  0 siblings, 0 replies; only message in thread
From: Peter Robinson @ 2026-11-20 11:04 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/uboot-tools
Branch : rawhide
Commit : c3e3bb49d4c65c48fc21c8f4e3ad9ad27e9bf8bc
Author : Peter Robinson <pbrobinson@gmail.com>
Date   : 2026-11-20T11:03:55+00:00
Stats  : +1155/-681 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/uboot-tools/c/c3e3bb49d4c65c48fc21c8f4e3ad9ad27e9bf8bc?branch=rawhide

Log:
Update patches for RPi5 NVME boot, DTB loading

---
diff --git a/Fix-NVMe-not-only-on-Raspberry-Pi-5.patch b/Fix-NVMe-not-only-on-Raspberry-Pi-5.patch
deleted file mode 100644
index a52ce84..0000000
--- a/Fix-NVMe-not-only-on-Raspberry-Pi-5.patch
+++ /dev/null
@@ -1,405 +0,0 @@
-From patchwork Mon Jul  6 17:21:47 2026
-Content-Type: text/plain; charset="utf-8"
-MIME-Version: 1.0
-Content-Transfer-Encoding: 7bit
-X-Patchwork-Submitter: Torsten Duwe <duwe@lst.de>
-X-Patchwork-Id: 2265604
-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;
- spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de
- (client-ip=85.214.62.61; helo=phobos.denx.de;
- envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)
-Received: from phobos.denx.de (phobos.denx.de [85.214.62.61])
-	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
-	 key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)
-	(No client certificate requested)
-	by legolas.ozlabs.org (Postfix) with ESMTPS id 4gvB431Qwzz1xqc
-	for <incoming@patchwork.ozlabs.org>; Tue, 07 Jul 2026 03:21:55 +1000 (AEST)
-Received: from h2850616.stratoserver.net (localhost [IPv6:::1])
-	by phobos.denx.de (Postfix) with ESMTP id 179C084942;
-	Mon,  6 Jul 2026 19:21:52 +0200 (CEST)
-Authentication-Results: phobos.denx.de;
- dmarc=fail (p=none dis=none) header.from=lst.de
-Authentication-Results: phobos.denx.de;
- spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de
-Received: by phobos.denx.de (Postfix, from userid 109)
- id 82ADE8490A; Mon,  6 Jul 2026 19:21:51 +0200 (CEST)
-X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de
-X-Spam-Level: 
-X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,
- RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham
- autolearn_force=no version=3.4.2
-Received: from verein.lst.de (verein.lst.de [213.95.11.211])
- (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
- (No client certificate requested)
- by phobos.denx.de (Postfix) with ESMTPS id 9F24C846B4
- for <u-boot@lists.denx.de>; Mon,  6 Jul 2026 19:21:49 +0200 (CEST)
-Authentication-Results: phobos.denx.de;
- dmarc=fail (p=none dis=none) header.from=lst.de
-Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=duwe@lst.de
-Received: by verein.lst.de (Postfix, from userid 2005)
- id C934268B05; Mon,  6 Jul 2026 19:21:47 +0200 (CEST)
-In-Reply-To: <20260706172028.C148E68BEB@verein.lst.de>
-References: <20260706172028.C148E68BEB@verein.lst.de>
-Subject: [PATCH v2 1/4] core: Skip parent device nodes without a DT reference
- when looking for dma-ranges
-To: Neil Armstrong <neil.armstrong@linaro.org>,
- Andrew Goodbody <andrew.goodbody@linaro.org>, Bin Meng <bmeng.cn@gmail.com>,
- Simon Glass <sjg@chromium.org>
-Cc: Tom Rini <trini@konsulko.com>, Matthias Brugger <mbrugger@suse.com>,
- Peter Robinson <pbrobinson@gmail.com>,
- Mattijs Korpershoek <mkorpershoek@kernel.org>,
- Marek Vasut <marek.vasut+renesas@mailbox.org>,
- Heiko Schocher <hs@nabladev.com>, Svyatoslav Ryhel <clamor95@gmail.com>,
- "Lucien.Jheng" <lucienzx159@gmail.com>, Rasmus Villemoes <ravi@prevas.dk>,
- Martin Schwan <m.schwan@phytec.de>,
- "Markus Schneider-Pargmann (TI.com)" <msp@baylibre.com>,
- Prashant Kamble <prashant.kamble223@gmail.com>,
- Denis Mukhin <dmukhin@ford.com>, Sughosh Ganu <sughosh.ganu@arm.com>,
- u-boot@lists.denx.de
-Message-Id: <20260706172147.C934268B05@verein.lst.de>
-Date: Mon,  6 Jul 2026 19:21:47 +0200 (CEST)
-From: duwe@lst.de (Torsten Duwe)
-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>,
- <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>,
- <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
-
-From: Torsten Duwe <duwe@suse.de>
-
-If a device node got created dynamically, there is no guarantee that the
-parent node has an associated device tree node which could specify dma
-constraints. Especially PCI(e) enumeration adds intermediate "bus nodes",
-also dynamically.
-
-Try harder to find the correct configuration by walking up the tree until
-a DT association is found.
-
-Suggested-by: Neil Armstrong <neil.armstrong@linaro.org>
-Signed-off-by: Torsten Duwe <duwe@suse.de>
-Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
-Tested-by: Peter Robinson <pbrobinson@gmail.com>
----
- drivers/core/device.c | 14 +++++++++++++-
- 1 file changed, 13 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/core/device.c b/drivers/core/device.c
-index d365204ba11..b6d00cf4714 100644
---- a/drivers/core/device.c
-+++ b/drivers/core/device.c
-@@ -459,7 +459,19 @@ static int device_get_dma_constraints(struct udevice *dev)
- 	u64 size = 0;
- 	int ret;
- 
--	if (!CONFIG_IS_ENABLED(DM_DMA) || !parent || !dev_has_ofnode(parent))
-+	if (!CONFIG_IS_ENABLED(DM_DMA) || !parent)
-+		return 0;
-+
-+	/* Look for the first node in the parent chain */
-+	while (parent) {
-+		if (dev_has_ofnode(parent))
-+			break;
-+
-+		parent = dev_get_parent(parent);
-+	}
-+
-+	/* No parents have a node, bail out */
-+	if (!parent)
- 		return 0;
- 
- 	/*
-
-From patchwork Mon Jul  6 17:21:50 2026
-Content-Type: text/plain; charset="utf-8"
-MIME-Version: 1.0
-Content-Transfer-Encoding: 7bit
-X-Patchwork-Submitter: Torsten Duwe <duwe@lst.de>
-X-Patchwork-Id: 2265605
-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;
- spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de
- (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;
- envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)
-Received: from phobos.denx.de (phobos.denx.de
- [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])
-	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
-	 key-exchange x25519)
-	(No client certificate requested)
-	by legolas.ozlabs.org (Postfix) with ESMTPS id 4gvB481pfXz1xqc
-	for <incoming@patchwork.ozlabs.org>; Tue, 07 Jul 2026 03:22:00 +1000 (AEST)
-Received: from h2850616.stratoserver.net (localhost [IPv6:::1])
-	by phobos.denx.de (Postfix) with ESMTP id 9A59684994;
-	Mon,  6 Jul 2026 19:21:55 +0200 (CEST)
-Authentication-Results: phobos.denx.de;
- dmarc=fail (p=none dis=none) header.from=lst.de
-Authentication-Results: phobos.denx.de;
- spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de
-Received: by phobos.denx.de (Postfix, from userid 109)
- id EB7D384979; Mon,  6 Jul 2026 19:21:53 +0200 (CEST)
-X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de
-X-Spam-Level: 
-X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,
- RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham
- autolearn_force=no version=3.4.2
-Received: from verein.lst.de (verein.lst.de [213.95.11.211])
- (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
- (No client certificate requested)
- by phobos.denx.de (Postfix) with ESMTPS id EE61C846B4
- for <u-boot@lists.denx.de>; Mon,  6 Jul 2026 19:21:51 +0200 (CEST)
-Authentication-Results: phobos.denx.de;
- dmarc=fail (p=none dis=none) header.from=lst.de
-Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=duwe@lst.de
-Received: by verein.lst.de (Postfix, from userid 2005)
- id 464E868BEB; Mon,  6 Jul 2026 19:21:50 +0200 (CEST)
-In-Reply-To: <20260706172028.C148E68BEB@verein.lst.de>
-References: <20260706172028.C148E68BEB@verein.lst.de>
-Subject: [PATCH v2 2/4] test: Add a unit test in phys_to_bus for dynamically
- created device nodes
-To: Neil Armstrong <neil.armstrong@linaro.org>,
- Andrew Goodbody <andrew.goodbody@linaro.org>, Bin Meng <bmeng.cn@gmail.com>,
- Simon Glass <sjg@chromium.org>
-Cc: Tom Rini <trini@konsulko.com>, Matthias Brugger <mbrugger@suse.com>,
- Peter Robinson <pbrobinson@gmail.com>,
- Mattijs Korpershoek <mkorpershoek@kernel.org>,
- Marek Vasut <marek.vasut+renesas@mailbox.org>,
- Heiko Schocher <hs@nabladev.com>, Svyatoslav Ryhel <clamor95@gmail.com>,
- "Lucien.Jheng" <lucienzx159@gmail.com>, Rasmus Villemoes <ravi@prevas.dk>,
- Martin Schwan <m.schwan@phytec.de>,
- "Markus Schneider-Pargmann (TI.com)" <msp@baylibre.com>,
- Prashant Kamble <prashant.kamble223@gmail.com>,
- Denis Mukhin <dmukhin@ford.com>, Sughosh Ganu <sughosh.ganu@arm.com>,
- u-boot@lists.denx.de
-Message-Id: <20260706172150.464E868BEB@verein.lst.de>
-Date: Mon,  6 Jul 2026 19:21:50 +0200 (CEST)
-From: duwe@lst.de (Torsten Duwe)
-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>,
- <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>,
- <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
-
-From: Torsten Duwe <duwe@suse.de>
-
-In order to test whether device_get_dma_constraints() is now able to skip
-device nodes without a DT association, temporarily remove those on 2 newly-
-created nodes.
-
-Signed-off-by: Torsten Duwe <duwe@suse.de>
----
-
-This test indeed makes a different whether the previous change is
-applied or not, but *only* reliably for the non-flat-tree case (!?).
-On the flat tree, it always fails after (reverse) applying it.
-
-Either the previous patch is incomplete, or, more likely, the test
-assumptions here are not all valid. Suggestions welcome (especially
-how to create device nodes from a device tree without a reference to
-their origin ;-)
-
----
- arch/sandbox/dts/test.dts |  9 +++++++++
- test/dm/phys2bus.c        | 25 ++++++++++++++++++++++++-
- 2 files changed, 33 insertions(+), 1 deletion(-)
-
-diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
-index 0887de4333b..1d92e85c739 100644
---- a/arch/sandbox/dts/test.dts
-+++ b/arch/sandbox/dts/test.dts
-@@ -656,6 +656,15 @@
- 		subnode@0 {
- 			compatible = "denx,u-boot-fdt-test";
- 		};
-+		bus@7 {
-+			#address-cells = <1>;
-+			#size-cells = <1>;
-+			compatible = "denx,u-boot-test-bus";
-+
-+			subnode@8 {
-+				  compatible = "denx,u-boot-fdt-test";
-+			};
-+		};
- 	};
- 
- 	mmio-bus@1 {
-diff --git a/test/dm/phys2bus.c b/test/dm/phys2bus.c
-index 67f33904943..858ed5410e2 100644
---- a/test/dm/phys2bus.c
-+++ b/test/dm/phys2bus.c
-@@ -15,7 +15,8 @@
- 
- static int dm_test_phys_to_bus(struct unit_test_state *uts)
- {
--	struct udevice *dev;
-+	struct udevice *dev, *pdev;
-+	ofnode psave, nsave;
- 	ofnode node;
- 
- 	node = ofnode_path("/mmio-bus@0");
-@@ -31,6 +32,29 @@ static int dm_test_phys_to_bus(struct unit_test_state *uts)
- 	ut_asserteq_addr((void*)0x1003ffffULL, (void*)dev_phys_to_bus(dev, 0x3ffff));
- 	ut_asserteq_addr((void*)0x3ffffULL, (void*)(ulong)dev_bus_to_phys(dev, 0x1003ffff));
- 
-+#if CONFIG_IS_ENABLED(OF_REAL)
-+	/* dma-ranges are on the grandparent bus node,
-+	 *  OF nodes neither here nor at parent
-+	 */
-+	node = ofnode_path("/mmio-bus@0/bus@7");
-+	ut_assert(ofnode_valid(node));
-+	ut_assertok(uclass_get_device_by_ofnode(UCLASS_TEST_BUS, node, &pdev));
-+
-+	/* pretend the devices were discovered dynamically and have no OF node */
-+	psave = pdev->node_;
-+	pdev->node_.np = NULL;
-+	node = ofnode_path("/mmio-bus@0/bus@7/subnode@8");
-+	ut_assert(ofnode_valid(node));
-+	nsave = dev->node_;
-+	dev->node_.np = NULL;
-+	ut_assertok(uclass_get_device_by_ofnode(UCLASS_TEST_FDT, node, &dev));
-+
-+	ut_asserteq_addr((void *)0x1003ffffULL, (void *)dev_phys_to_bus(dev, 0x3ffff));
-+	ut_asserteq_addr((void *)0x3ffffULL, (void *)(ulong)dev_bus_to_phys(dev, 0x1003ffff));
-+
-+	pdev->node_ = psave;
-+	dev->node_ = nsave;
-+#endif
- 	return 0;
- }
- DM_TEST(dm_test_phys_to_bus, UTF_SCAN_PDATA | UTF_SCAN_FDT);
-
-From patchwork Mon Jul  6 17:21:54 2026
-Content-Type: text/plain; charset="utf-8"
-MIME-Version: 1.0
-Content-Transfer-Encoding: 7bit
-X-Patchwork-Submitter: Torsten Duwe <duwe@lst.de>
-X-Patchwork-Id: 2265607
-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;
- spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de
- (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;
- envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)
-Received: from phobos.denx.de (phobos.denx.de
- [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])
-	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
-	 key-exchange x25519)
-	(No client certificate requested)
-	by legolas.ozlabs.org (Postfix) with ESMTPS id 4gvB4R378Lz1xqc
-	for <incoming@patchwork.ozlabs.org>; Tue, 07 Jul 2026 03:22:15 +1000 (AEST)
-Received: from h2850616.stratoserver.net (localhost [IPv6:::1])
-	by phobos.denx.de (Postfix) with ESMTP id 3FDAE8490A;
-	Mon,  6 Jul 2026 19:21:59 +0200 (CEST)
-Authentication-Results: phobos.denx.de;
- dmarc=fail (p=none dis=none) header.from=lst.de
-Authentication-Results: phobos.denx.de;
- spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de
-Received: by phobos.denx.de (Postfix, from userid 109)
- id 17F418490A; Mon,  6 Jul 2026 19:21:58 +0200 (CEST)
-X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de
-X-Spam-Level: 
-X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,
- RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham
- autolearn_force=no version=3.4.2
-Received: from verein.lst.de (verein.lst.de [213.95.11.211])
- (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
- (No client certificate requested)
- by phobos.denx.de (Postfix) with ESMTPS id 1D593849A4
- for <u-boot@lists.denx.de>; Mon,  6 Jul 2026 19:21:56 +0200 (CEST)
-Authentication-Results: phobos.denx.de;
- dmarc=fail (p=none dis=none) header.from=lst.de
-Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=duwe@lst.de
-Received: by verein.lst.de (Postfix, from userid 2005)
- id B506B68CFE; Mon,  6 Jul 2026 19:21:54 +0200 (CEST)
-In-Reply-To: <20260706172028.C148E68BEB@verein.lst.de>
-References: <20260706172028.C148E68BEB@verein.lst.de>
-Subject: [PATCH v2 4/4] configs: enable NVMe
-To: Neil Armstrong <neil.armstrong@linaro.org>,
- Andrew Goodbody <andrew.goodbody@linaro.org>, Bin Meng <bmeng.cn@gmail.com>,
- Simon Glass <sjg@chromium.org>
-Cc: Tom Rini <trini@konsulko.com>, Matthias Brugger <mbrugger@suse.com>,
- Peter Robinson <pbrobinson@gmail.com>,
- Mattijs Korpershoek <mkorpershoek@kernel.org>,
- Marek Vasut <marek.vasut+renesas@mailbox.org>,
- Heiko Schocher <hs@nabladev.com>, Svyatoslav Ryhel <clamor95@gmail.com>,
- "Lucien.Jheng" <lucienzx159@gmail.com>, Rasmus Villemoes <ravi@prevas.dk>,
- Martin Schwan <m.schwan@phytec.de>,
- "Markus Schneider-Pargmann (TI.com)" <msp@baylibre.com>,
- Prashant Kamble <prashant.kamble223@gmail.com>,
- Denis Mukhin <dmukhin@ford.com>, Sughosh Ganu <sughosh.ganu@arm.com>,
- u-boot@lists.denx.de
-Message-Id: <20260706172154.B506B68CFE@verein.lst.de>
-Date: Mon,  6 Jul 2026 19:21:54 +0200 (CEST)
-From: duwe@lst.de (Torsten Duwe)
-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>,
- <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>,
- <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
-
-From: Torsten Duwe <duwe@suse.de>
-
-Enable NVMe in the Raspberry Pi 64-Bit default config and scan for devices.
-
-Signed-off-by: Torsten Duwe <duwe@suse.de>
-Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
-Tested-by: Peter Robinson <pbrobinson@gmail.com>
----
- configs/rpi_arm64_defconfig | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/configs/rpi_arm64_defconfig b/configs/rpi_arm64_defconfig
-index cdcf05ea6db..fb0fdce1d7f 100644
---- a/configs/rpi_arm64_defconfig
-+++ b/configs/rpi_arm64_defconfig
-@@ -16,7 +16,7 @@ CONFIG_BOOTSTD_DEFAULTS=y
- CONFIG_OF_BOARD_SETUP=y
- CONFIG_FDT_SIMPLEFB=y
- CONFIG_USE_PREBOOT=y
--CONFIG_PREBOOT="pci enum; usb start;"
-+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
- CONFIG_SYS_PBSIZE=1049
- # CONFIG_DISPLAY_CPUINFO is not set
- # CONFIG_DISPLAY_BOARDINFO is not set
-@@ -44,6 +44,7 @@ CONFIG_MMC_SDHCI_SDMA=y
- CONFIG_MMC_SDHCI_BCM2835=y
- CONFIG_MMC_SDHCI_BCMSTB=y
- CONFIG_BCMGENET=y
-+CONFIG_NVME_PCI=y
- CONFIG_PCI_BRCMSTB=y
- CONFIG_PINCTRL=y
- # CONFIG_PINCTRL_GENERIC is not set

diff --git a/fix-NVMe-on-Raspberry-Pi.patch b/fix-NVMe-on-Raspberry-Pi.patch
new file mode 100644
index 0000000..838c08f
--- /dev/null
+++ b/fix-NVMe-on-Raspberry-Pi.patch
@@ -0,0 +1,572 @@
+From patchwork Thu Nov 19 07:34:36 2026
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+X-Patchwork-Submitter: Torsten Duwe <duwe@lst.de>
+X-Patchwork-Id: 2348659
+Return-Path: <u-boot-bounces@lists.u-boot-project.org>
+X-Original-To: incoming@patchwork.ozlabs.org
+Delivered-To: patchwork-incoming@legolas.ozlabs.org
+Authentication-Results: legolas.ozlabs.org;
+	dkim=pass (2048-bit key;
+ unprotected) header.d=lists.u-boot-project.org
+ header.i=@lists.u-boot-project.org
+ header.a=rsa-sha256 header.s=default header.b=09HsM3My;
+	dkim-atps=neutral
+Authentication-Results: legolas.ozlabs.org;
+ spf=pass (sender SPF authorized) smtp.mailfrom=lists.u-boot-project.org
+ (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org;
+ envelope-from=u-boot-bounces@lists.u-boot-project.org;
+ receiver=patchwork.ozlabs.org)
+Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])
+	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
+	 key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)
+	(No client certificate requested)
+	by legolas.ozlabs.org (Postfix) with ESMTPS id 4jVnFM6Bjvz1xxX
+	for <incoming@patchwork.ozlabs.org>; Fri, 20 Nov 2026 05:34:47 +1100 (AEDT)
+Received: from localhost (localhost [127.0.0.1])
+	by smtp1.osuosl.org (Postfix) with ESMTP id 3B440812CF;
+	Thu, 19 Nov 2026 18:34:46 +0000 (UTC)
+X-Virus-Scanned: amavis at osuosl.org
+Received: from smtp1.osuosl.org ([127.0.0.1])
+ by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
+ id VWK5dFD01vDM; Thu, 19 Nov 2026 18:34:45 +0000 (UTC)
+ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 828CF81380
+Authentication-Results: smtp1.osuosl.org;
+ arc=none smtp.remote-ip=140.211.166.142
+ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1795113285;
+	b=pcP0qxCU61bjxMKC6AL8I7spanH7PYDBKyQtrYxX0gQApGGW8jkdYaYBZ3rhmzMJvxc9
+	 jWbpW0aV6L/wn6fi60zSCLlev/JTtPe52O5coQQFN4zV1jooPWO/L6LKit5ZPhIEai8VF
+	 71CHZPI4CH37HznzivFAm0YUP7c5p6vE5cypXN1W1a7L6qMCEa1LOjkmdxZm3a5MSlg2j
+	 K37wSEV0Sa5PxaFij2u6jiFFV/Rhg05T6d7Q43glzsC2r1Sm/Ev4vuWpbY+NipSwmP4KD
+	 A+xU9JBQ0O7tkF/vWF+XOZ1HqWTiv0blRDuWF1V8xLR7dcYqU/HV2WxPsjMDPMCYDqg==
+ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256;
+	c=relaxed/relaxed; t=1795113285;
+	h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received:
+	 Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level:
+	 X-Spam-Status:Received:ARC-Filter:X-Greylist:Received-SPF:Received:
+	 Received:To:Cc:Subject:In-Reply-To:References:Message-Id:Date:From:
+	 X-BeenThere:X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:
+	 List-Archive:List-Post:List-Help:List-Subscribe:Errors-To;
+	bh=2OgCy2uN7QPWYnvKGBCm7py3gctm0ER1NyhrKOljOOc=;
+	b=hSEmTjARBnDZUuvcW5PiIthTL29a6ADHUHcGNyDyuf1KV08uqAOjsYaLS4TWntRF3QLm
+	 wJfvATtu/ocEkBjrGk3IRLPMirtmsLAtSZ+N8kWzcQu3T79sAWw8aKy8dRmavM3Lu25JL
+	 MmZJrQ6mMaG2TDLlpnJEdzr2lhanhPEnM6i9HBYRwyOlTCQn2n1oLuxon80E6clMqew1C
+	 kMXWN2x2mfXYYzhOF31SDYJP8DWdZx+8D5UoEICUKMIS/z6R9QD4p+mo7KgBmHen849n2
+	 wFKidr8QCJB8G+plEZHv1xS/F6/5pJXHSyfaV1+nj9qQuxtYPM2XU6duNvZ91qmLYyw==
+ARC-Authentication-Results: i=1; smtp1.osuosl.org;
+	dmarc=pass header.from=lst.de;
+	arc=none smtp.remote-ip=140.211.166.142
+X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142;
+ helo=lists1.osuosl.org;
+ envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver=<UNKNOWN>
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
+	d=lists.u-boot-project.org; s=default; t=1795113285;
+	bh=2OgCy2uN7QPWYnvKGBCm7py3gctm0ER1NyhrKOljOOc=;
+	h=To:Cc:Subject:In-Reply-To:References:Date:From:List-Id:
+	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
+	 From;
+	b=09HsM3My6Jw+affRoGArdmsieiyKXUdLD6xWXYT06HrPBLSFgT2eq4fUjkf1GeN3Z
+	 GwnViPVIPB2lWSg22QZGpP7/MzzGxAqnJRy1o9nyHG6VIex2QIutJhozdliB1aWjwF
+	 rtlKB3TaNKghBYFpsHGvCzfsPdM4PdWt9kQwl1OTtd5a2QkdlN9d/C1SpM1XQCC39p
+	 DUUSWfPd65Y6AxWXGvEEi4L0yTSNSXSmH0XhFdUF+uFd/rN1Yq85YYpfKdUruxoLNR
+	 a1nnG1x3uuAqbF66ttp+m8/HRqXU+Xnm/4tC30AngquiaARG1EFG5JcxRSzhdt9lex
+	 PGLOQzhK3z6ng==
+Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])
+	by smtp1.osuosl.org (Postfix) with ESMTP id 828CF81380;
+	Thu, 19 Nov 2026 18:34:45 +0000 (UTC)
+X-Original-To: u-boot@lists.u-boot-project.org
+Delivered-To: u-boot@lists.u-boot-project.org
+Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])
+ by lists1.osuosl.org (Postfix) with ESMTP id 04D6122B
+ for <u-boot@lists.u-boot-project.org>; Thu, 19 Nov 2026 18:34:44 +0000 (UTC)
+Received: from localhost (localhost [127.0.0.1])
+ by smtp1.osuosl.org (Postfix) with ESMTP id DBAA381374
+ for <u-boot@lists.u-boot-project.org>; Thu, 19 Nov 2026 18:34:43 +0000 (UTC)
+X-Virus-Scanned: amavis at osuosl.org
+Received: from smtp1.osuosl.org ([127.0.0.1])
+ by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
+ id lC7tSR9X50K1 for <u-boot@lists.u-boot-project.org>;
+ Thu, 19 Nov 2026 18:34:42 +0000 (UTC)
+ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 7B2D8812CF
+Authentication-Results: smtp1.osuosl.org;
+ arc=none smtp.remote-ip=213.95.11.211
+X-Greylist: delayed 112 seconds by postgrey-1.37 at util1.osuosl.org;
+ Thu, 19 Nov 2026 18:34:42 UTC
+Authentication-Results: smtp1.osuosl.org;
+ dmarc=pass (p=none dis=none) header.from=lst.de
+Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.95.11.211;
+ helo=verein.lst.de; envelope-from=duwe@lst.de; receiver=<UNKNOWN>
+Received: from verein.lst.de (verein.lst.de [213.95.11.211])
+ by smtp1.osuosl.org (Postfix) with ESMTPS id 7B2D8812CF
+ for <u-boot@lists.u-boot-project.org>; Thu, 19 Nov 2026 18:34:42 +0000 (UTC)
+Received: by verein.lst.de (Postfix, from userid 2005)
+ id 5D39D68C7B; Thu, 19 Nov 2026 19:34:36 +0100 (CET)
+To: Peter Robinson <pbrobinson@gmail.com>,
+ Matthias Brugger <mbrugger@suse.com>
+Cc: Tom Rini <trini@konsulko.com>, Peng Fan <peng.fan@nxp.com>,
+ Neil Armstrong <neil.armstrong@linaro.org>, Simon Glass <sjg@chromium.org>,
+ u-boot@lists.u-boot-project.org
+Subject: [PATCH 1/2] dm: core: try harder to find a DT node for DMA
+ constraints
+In-Reply-To: <20261119183244.D163768B05@verein.lst.de>
+References: <20261119183244.D163768B05@verein.lst.de>
+Message-Id: <20261119183436.5D39D68C7B@verein.lst.de>
+Date: Thu, 19 Nov 2026 19:34:36 +0100 (CET)
+From: duwe@lst.de (Torsten Duwe)
+X-BeenThere: u-boot@lists.u-boot-project.org
+X-Mailman-Version: 2.1.30
+Precedence: list
+List-Id: U-Boot discussion <u-boot.lists.u-boot-project.org>
+List-Unsubscribe: <https://lists.u-boot-project.org/mailman/options/u-boot>,
+ <mailto:u-boot-request@lists.u-boot-project.org?subject=unsubscribe>
+List-Archive: <http://lists.u-boot-project.org/pipermail/u-boot/>
+List-Post: <mailto:u-boot@lists.u-boot-project.org>
+List-Help: <mailto:u-boot-request@lists.u-boot-project.org?subject=help>
+List-Subscribe: <https://lists.u-boot-project.org/mailman/listinfo/u-boot>,
+ <mailto:u-boot-request@lists.u-boot-project.org?subject=subscribe>
+Errors-To: u-boot-bounces@lists.u-boot-project.org
+
+From: Torsten Duwe <duwe@suse.de>
+
+If a device node got created dynamically, there is no guarantee that the
+parent node has an associated device tree node which could specify dma
+constraints. Especially PCI(e) enumeration adds intermediate "bus nodes",
+also dynamically, and thus without an associated DT node.
+
+Try harder to find the correct configuration by walking up the tree until
+a DT association is found, skipping all DM nodes without one.
+
+Suggested-by: Neil Armstrong <neil.armstrong@linaro.org>
+Signed-off-by: Torsten Duwe <duwe@suse.de>
+Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
+Tested-by: Peter Robinson <pbrobinson@gmail.com>
+---
+ drivers/core/device.c | 14 +++++++++++---
+ 1 file changed, 11 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/core/device.c b/drivers/core/device.c
+index 6024534ff93..6646358a6ad 100644
+--- a/drivers/core/device.c
++++ b/drivers/core/device.c
+@@ -459,12 +459,20 @@ static int device_get_dma_constraints(struct udevice *dev)
+ 	u64 size = 0;
+ 	int ret;
+ 
+-	if (!CONFIG_IS_ENABLED(DM_DMA) || !parent || !dev_has_ofnode(parent))
++	if (!CONFIG_IS_ENABLED(DM_DMA) || !parent)
++		return 0;
++
++	/* Walk up until we find a parent that has a DT node */
++	while (parent && !dev_has_ofnode(parent))
++		parent = dev_get_parent(parent);
++
++	/* No parents have a node, bail out */
++	if (!parent)
+ 		return 0;
+ 
+ 	/*
+-	 * We start parsing for dma-ranges from the device's bus node. This is
+-	 * specially important on nested buses.
++	 * We now have the nearest ancestor with a DT node.
++	 * Try to parse the 'dma-ranges' property from that node.
+ 	 */
+ 	ret = dev_get_dma_range(parent, &cpu, &bus, &size);
+ 	/* Don't return an error if no 'dma-ranges' were found */
+
+From patchwork Thu Nov 19 07:34:40 2026
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+X-Patchwork-Submitter: Torsten Duwe <duwe@lst.de>
+X-Patchwork-Id: 2348660
+Return-Path: <u-boot-bounces@lists.u-boot-project.org>
+X-Original-To: incoming@patchwork.ozlabs.org
+Delivered-To: patchwork-incoming@legolas.ozlabs.org
+Authentication-Results: legolas.ozlabs.org;
+	dkim=pass (2048-bit key;
+ unprotected) header.d=lists.u-boot-project.org
+ header.i=@lists.u-boot-project.org
+ header.a=rsa-sha256 header.s=default header.b=v/nEzbUM;
+	dkim-atps=neutral
+Authentication-Results: legolas.ozlabs.org;
+ spf=pass (sender SPF authorized) smtp.mailfrom=lists.u-boot-project.org
+ (client-ip=140.211.166.138; helo=smtp1.osuosl.org;
+ envelope-from=u-boot-bounces@lists.u-boot-project.org;
+ receiver=patchwork.ozlabs.org)
+Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])
+	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
+	 key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)
+	(No client certificate requested)
+	by legolas.ozlabs.org (Postfix) with ESMTPS id 4jVnFS39Xyz1xxX
+	for <incoming@patchwork.ozlabs.org>; Fri, 20 Nov 2026 05:34:52 +1100 (AEDT)
+Received: from localhost (localhost [127.0.0.1])
+	by smtp1.osuosl.org (Postfix) with ESMTP id 83C1E814C9;
+	Thu, 19 Nov 2026 18:34:48 +0000 (UTC)
+X-Virus-Scanned: amavis at osuosl.org
+Received: from smtp1.osuosl.org ([127.0.0.1])
+ by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
+ id wJioXgeyKdNF; Thu, 19 Nov 2026 18:34:48 +0000 (UTC)
+ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 62F80814C0
+Authentication-Results: smtp1.osuosl.org;
+ arc=none smtp.remote-ip=140.211.166.142
+ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1795113287;
+	b=V2XAelkZcbYFsluqBKm7sU4W3T6Vi8BHkWyYRICwHsVojJ7anQmq0ZVwZszR8RzppqaR
+	 bgbEimgA5YeDvnUFr1tVjtrqcvEqWnzMjqcaQ5aAwSKU3mfZZu1mxi+o9Xvj2k/aJhARH
+	 j9ax88eKaBCt9/0AgJYL8pYCL2EHvW9dOm+QfxTQRG00QUPdIM8KKA3xWuHkVoGH6+kJ1
+	 jgojwXJB4PBy6X7md9LOy+boIvN7UVUWasI8VQrpOWjYrmpp2KiYRKg1HKqVTVwlN9JLN
+	 vBgzXdhbiAxpEtKKZtkju/wjSItZA4pPP9rYnMnOV0UuzQpmlQjMTGOqZgoJVsiwRGg==
+ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256;
+	c=relaxed/relaxed; t=1795113287;
+	h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received:
+	 Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level:
+	 X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received:To:
+	 Cc:Subject:In-Reply-To:References:Message-Id:Date:From:X-BeenThere:
+	 X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive:
+	 List-Post:List-Help:List-Subscribe:Errors-To;
+	bh=Kdq9pLS13GR1rhLVWeeZ4MMaF6Olz7cETFBzMQ+TH6w=;
+	b=mFcMitZrRDIKir+DufBkEudK54ovLxkhNVZeithSKe1vl+35zUPF2UNE62VY/wD+g2BX
+	 Wy8iPtG7X/WjhiropXXZhKgn19lMMm227yp4WT3ZndYkraViRxAnJ0JeeUJrxF+eNtUG4
+	 fpi3iWtZq/R+z9iULLipNCCPgwuXVlUXV/XIFOYMu4q+BCiwSFRlPUafpKnPbdtF+hUWk
+	 T4YPQFP+Eq5CAFFRYeQHZ2xYudEXq0LWdULraJBhpMv4aZC9+cZd90QovA6GYhMSvkzln
+	 A0CcdW7kThELd+sWCnJ61faGcHS5lQ3hGuWjto0zfkfNopIALlQ7CteTi/KrpwJpJuA==
+ARC-Authentication-Results: i=1; smtp1.osuosl.org;
+	dmarc=pass header.from=lst.de;
+	arc=none smtp.remote-ip=140.211.166.142
+X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142;
+ helo=lists1.osuosl.org;
+ envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver=<UNKNOWN>
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
+	d=lists.u-boot-project.org; s=default; t=1795113287;
+	bh=Kdq9pLS13GR1rhLVWeeZ4MMaF6Olz7cETFBzMQ+TH6w=;
+	h=To:Cc:Subject:In-Reply-To:References:Date:From:List-Id:
+	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
+	 From;
+	b=v/nEzbUMeHaEyj0bRjgiUNxT8kKFSClMCMYY1uDeMQ8FRiefsbgOMRqLU7BZx/v27
+	 iAlHl5CFxoUd/Z92lB+T6tvs3sE7ekaAxu55E2pJM6AhBREbevlW7X63HZs+oYZ4cc
+	 7omPQeNf3nD/YPkaF2MZp4QdlKmvALWIHlxd7LWZp5ccUBUluwheeO1GL0sS45FmFN
+	 QSciIyetDaNfJFQQiOGA5cbdKhb+zCK6pH933aN5KBr+2zjhBu2vCYZ4NFEXGabbpr
+	 sn5IpltRAc8I6+DiwWoLwtjpaQAMP60M3LvuOcdokuAJCPt1Qmgr0VJFshY6XmFRNe
+	 mzEVI//KoAEww==
+Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])
+	by smtp1.osuosl.org (Postfix) with ESMTP id 62F80814C0;
+	Thu, 19 Nov 2026 18:34:47 +0000 (UTC)
+X-Original-To: u-boot@lists.u-boot-project.org
+Delivered-To: u-boot@lists.u-boot-project.org
+Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])
+ by lists1.osuosl.org (Postfix) with ESMTP id 023342F1
+ for <u-boot@lists.u-boot-project.org>; Thu, 19 Nov 2026 18:34:46 +0000 (UTC)
+Received: from localhost (localhost [127.0.0.1])
+ by smtp1.osuosl.org (Postfix) with ESMTP id E704B81374
+ for <u-boot@lists.u-boot-project.org>; Thu, 19 Nov 2026 18:34:45 +0000 (UTC)
+X-Virus-Scanned: amavis at osuosl.org
+Received: from smtp1.osuosl.org ([127.0.0.1])
+ by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
+ id Ja70MmYITUZT for <u-boot@lists.u-boot-project.org>;
+ Thu, 19 Nov 2026 18:34:45 +0000 (UTC)
+ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 27EAC812CF
+Authentication-Results: smtp1.osuosl.org;
+ arc=none smtp.remote-ip=213.95.11.211
+Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.95.11.211;
+ helo=verein.lst.de; envelope-from=duwe@lst.de; receiver=<UNKNOWN>
+Authentication-Results: smtp1.osuosl.org;
+ dmarc=pass (p=none dis=none) header.from=lst.de
+Received: from verein.lst.de (verein.lst.de [213.95.11.211])
+ by smtp1.osuosl.org (Postfix) with ESMTPS id 27EAC812CF
+ for <u-boot@lists.u-boot-project.org>; Thu, 19 Nov 2026 18:34:44 +0000 (UTC)
+Received: by verein.lst.de (Postfix, from userid 2005)
+ id 313E568CFE; Thu, 19 Nov 2026 19:34:40 +0100 (CET)
+To: Peter Robinson <pbrobinson@gmail.com>,
+ Matthias Brugger <mbrugger@suse.com>
+Cc: Tom Rini <trini@konsulko.com>, Peng Fan <peng.fan@nxp.com>,
+ Simon Glass <sjg@chromium.org>, u-boot@lists.u-boot-project.org
+Subject: [PATCH 2/2] configs: enable NVMe on Raspberry Pi 4&5
+In-Reply-To: <20261119183244.D163768B05@verein.lst.de>
+References: <20261119183244.D163768B05@verein.lst.de>
+Message-Id: <20261119183440.313E568CFE@verein.lst.de>
+Date: Thu, 19 Nov 2026 19:34:40 +0100 (CET)
+From: duwe@lst.de (Torsten Duwe)
+X-BeenThere: u-boot@lists.u-boot-project.org
+X-Mailman-Version: 2.1.30
+Precedence: list
+List-Id: U-Boot discussion <u-boot.lists.u-boot-project.org>
+List-Unsubscribe: <https://lists.u-boot-project.org/mailman/options/u-boot>,
+ <mailto:u-boot-request@lists.u-boot-project.org?subject=unsubscribe>
+List-Archive: <http://lists.u-boot-project.org/pipermail/u-boot/>
+List-Post: <mailto:u-boot@lists.u-boot-project.org>
+List-Help: <mailto:u-boot-request@lists.u-boot-project.org?subject=help>
+List-Subscribe: <https://lists.u-boot-project.org/mailman/listinfo/u-boot>,
+ <mailto:u-boot-request@lists.u-boot-project.org?subject=subscribe>
+Errors-To: u-boot-bounces@lists.u-boot-project.org
+
+From: Torsten Duwe <duwe@suse.de>
+
+Enable NVMe in the Raspberry Pi 64-Bit default config and scan for devices.
+
+Signed-off-by: Torsten Duwe <duwe@suse.de>
+Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
+Reviewed-by: Simon Glass <sjg@chromium.org>
+Tested-by: Peter Robinson <pbrobinson@gmail.com>
+---
+ configs/rpi_arm64_defconfig | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/configs/rpi_arm64_defconfig b/configs/rpi_arm64_defconfig
+index 87780c2286c..3cc12f7b266 100644
+--- a/configs/rpi_arm64_defconfig
++++ b/configs/rpi_arm64_defconfig
+@@ -15,7 +15,7 @@ CONFIG_BOOTSTD_DEFAULTS=y
+ CONFIG_OF_BOARD_SETUP=y
+ CONFIG_FDT_SIMPLEFB=y
+ CONFIG_USE_PREBOOT=y
+-CONFIG_PREBOOT="pci enum; usb start;"
++CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
+ CONFIG_SYS_PBSIZE=1049
+ # CONFIG_DISPLAY_CPUINFO is not set
+ # CONFIG_DISPLAY_BOARDINFO is not set
+@@ -43,6 +43,7 @@ CONFIG_MMC_SDHCI_SDMA=y
+ CONFIG_MMC_SDHCI_BCM2835=y
+ CONFIG_MMC_SDHCI_BCMSTB=y
+ CONFIG_BCMGENET=y
++CONFIG_NVME_PCI=y
+ CONFIG_PCI_BRCMSTB=y
+ CONFIG_PINCTRL=y
+ # CONFIG_PINCTRL_GENERIC is not set
+From patchwork Fri Oct 30 11:29:54 2026
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+X-Patchwork-Submitter: Peter Esselius <pepp@me.com>
+X-Patchwork-Id: 2332491
+X-Patchwork-Delegate: pbrobinson@gmail.com
+Return-Path: <u-boot-bounces@lists.u-boot-project.org>
+X-Original-To: incoming@patchwork.ozlabs.org
+Delivered-To: patchwork-incoming@legolas.ozlabs.org
+Authentication-Results: legolas.ozlabs.org;
+	dkim=pass (2048-bit key;
+ unprotected) header.d=lists.u-boot-project.org
+ header.i=@lists.u-boot-project.org
+ header.a=rsa-sha256 header.s=default header.b=tz8tYtCR;
+	dkim=pass (2048-bit key;
+ unprotected) header.d=me.com header.i=@me.com header.a=rsa-sha256
+ header.s=1a1hai header.b=XZzbAp6+;
+	dkim-atps=neutral
+Authentication-Results: legolas.ozlabs.org;
+ spf=pass (sender SPF authorized) smtp.mailfrom=lists.u-boot-project.org
+ (client-ip=140.211.166.136; helo=smtp3.osuosl.org;
+ envelope-from=u-boot-bounces@lists.u-boot-project.org;
+ receiver=patchwork.ozlabs.org)
+Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])
+	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
+	 key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)
+	(No client certificate requested)
+	by legolas.ozlabs.org (Postfix) with ESMTPS id 4jGh2k0RWMz1yCv
+	for <incoming@patchwork.ozlabs.org>; Sat, 31 Oct 2026 12:58:37 +1100 (AEDT)
+Received: from localhost (localhost [127.0.0.1])
+	by smtp3.osuosl.org (Postfix) with ESMTP id 059C660ABF;
+	Sat, 31 Oct 2026 01:58:35 +0000 (UTC)
+X-Virus-Scanned: amavis at osuosl.org
+Received: from smtp3.osuosl.org ([127.0.0.1])
+ by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
+ id l8KqUHIznM1R; Sat, 31 Oct 2026 01:58:34 +0000 (UTC)
+ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 4169F60895
+Authentication-Results: smtp3.osuosl.org;
+ arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142
+ARC-Seal: i=2; d=osuosl.org; s=arc; a=rsa-sha256; cv=pass; t=1793411914;
+	b=bzcTosjcQNforVg80IelGimnuZFtPiixAvQIG5WFSLG2kP+KD71DdJ/NUDODc7aB1Xi0
+	 V1WYEJZLc9YHQPLfNZF/wu0Yl9oaXSvrR+59jO6byORMxKL3Yz82fp6aJuDGnqdakrudo
+	 LV3mofOy3j6E37r6Ug8aTdkKoR1gb23BihILrw+/FYXSGzJ5EtAOH0TdZcleENUlhClrn
+	 c43URFUITMOLGsOegfjvjtHKLxPL/l2Tclo7PX8vg1/7u4CkcbJ9jntklTTkULmVIl4yH
+	 qP58mHp77GaCJywXL8IH7hD302jBrlBS802KxhWhY08Rm+D3dZqLc0Wc719JSIUKTcw==
+ARC-Message-Signature: i=2; d=osuosl.org; s=arc; a=rsa-sha256;
+	c=relaxed/relaxed; t=1793411914;
+	h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received:
+	 Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level:
+	 X-Spam-Status:Received:ARC-Filter:X-Greylist:Received-SPF:Received:
+	 Received:X-ICL-RepId:X-ICL-Out-Info:Dkim-Signature:Received:From:To:
+	 Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
+	 MIME-Version:Content-Transfer-Encoding:X-Authority-Info-Out:
+	 X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:
+	 X-Proofpoint-Spam-Details-Enc:X-JNJ:X-Mailman-Approved-At:X-BeenThere:
+	 X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive:
+	 List-Post:List-Help:List-Subscribe:Errors-To;
+	bh=Dkki6UiCgHsCQ86Afdtf8W0EDLfKP2DzwgmqrBhRpz0=;
+	b=AK3Xo6aYQ2cZdgJCWEFWXzru+0tOV1ZmY95fktgMedIEA54LX1TCweKaZKYt1AZhBKka
+	 k5K+HV3/b4SjDlmUYjzss3tbdeBoxnG+EDeH1B6zeM3ozCuG57uIWQmG9eaPWF2qsJA/c
+	 a4i9LczwOOxN6hq1IQNksuZRNgfqeHeQBbA2XZ7AQvbc5Ae+SvunTEj9JecD9OGSe/QoT
+	 210GKlP4JO8MFiMO+FzrXZIMc4dHMWfxNDgHop6mloNAw+/4dYsS2KpGW5AQCcmM1/kZV
+	 qjc5SYthylKDPF8NbMUEOCGdOXYVMagpGMT2bMejdMHNRq6vhiIdAjHk+ohiVN5yEdg==
+ARC-Authentication-Results: i=2; smtp3.osuosl.org;
+	arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142
+X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142;
+ helo=lists1.osuosl.org;
+ envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver=<UNKNOWN>
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
+	d=lists.u-boot-project.org; s=default; t=1793411914;
+	bh=Dkki6UiCgHsCQ86Afdtf8W0EDLfKP2DzwgmqrBhRpz0=;
+	h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id:
+	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
+	 From;
+	b=tz8tYtCRBw+eAV05zNcosPUQfJbNMcX1t3gcKnOEItAcpKyd4kEFlMotwNVJFsqmH
+	 2Ic/K+l9iusJZIMikYWxiqjATqBgNZEtVvpx4KfYTbWsYRW0Ql4nRPXCV4KnwzX8yj
+	 f7V6Oi0YpY4VBwOgIm47PlrKQZPmDGUnRjFHHw8A87D271WuXattGTYfjMKVp0VF5E
+	 j47LwDV/W9sp5HKp4fHd/2oX89veSfX5yqV1CqT7n/GIbLCOK/cD/rcbqpxonNT1EB
+	 8MzAjvEo94sBK05RRZjwm4ciGZURrdotVYPvbajom/xMELN57Rgn0JhC/r4mHxBrh8
+	 3lmsoVcSpwJOQ==
+Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])
+	by smtp3.osuosl.org (Postfix) with ESMTP id 4169F60895;
+	Sat, 31 Oct 2026 01:58:34 +0000 (UTC)
+X-Original-To: u-boot@lists.u-boot-project.org
+Delivered-To: u-boot@lists.u-boot-project.org
+Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])
+ by lists1.osuosl.org (Postfix) with ESMTP id 538962AC
+ for <u-boot@lists.u-boot-project.org>; Fri, 30 Oct 2026 22:38:04 +0000 (UTC)
+Received: from localhost (localhost [127.0.0.1])
+ by smtp1.osuosl.org (Postfix) with ESMTP id 3AAF6810DF
+ for <u-boot@lists.u-boot-project.org>; Fri, 30 Oct 2026 22:38:04 +0000 (UTC)
+X-Virus-Scanned: amavis at osuosl.org
+Received: from smtp1.osuosl.org ([127.0.0.1])
+ by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
+ id e2UvFONEgGmj for <u-boot@lists.u-boot-project.org>;
+ Fri, 30 Oct 2026 22:38:03 +0000 (UTC)
+ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 87E71810D9
+Authentication-Results: smtp1.osuosl.org;
+ arc=none smtp.remote-ip="2a01:b747:3003:204::33"
+ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1793399883;
+ b=GYx4VMiqXzQnuOoxNIooKXRxR2uqbSZXU+9lyt6FK4WBmb9xb+/h6IJvE2cd3b8TepZz
+ 6J9laioCeBqHkBIvRj2l+F4VSIqy0GVUWU37aChzpwrAACQBNcU9v7ixz5qgKfrBiJbav
+ 2adeYvdwNR3cblDfgIYWseROlcJ7z4Don/bwJqJh0XqXrfRKNWaTOmo/hC9UusLsiYY5V
+ 22cSbUS5qkI9R8abyy9YGFL+o5w4UdPKLkQkoiM0geAkqTAs5bDLjT4NBBGN+UvK1OOzH
+ xDUtlQt4LzbacGTVsefSBerqDAX6Db5TcWC3SpNBBQ/ZQizfak9A1pM17sv2xaJIm9Q==
+ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256;
+ c=relaxed/relaxed; t=1793399883;
+ h=X-Greylist:Received-SPF:Received:X-ICL-RepId:X-ICL-Out-Info:
+ Dkim-Signature:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
+ In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:
+ X-Authority-Info-Out:X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:
+ X-Proofpoint-Spam-Details-Enc:X-JNJ;
+ bh=Dkki6UiCgHsCQ86Afdtf8W0EDLfKP2DzwgmqrBhRpz0=;
+ b=stdckASI/J5Gr0jaTpaRrijE4ofyoSDcqfzXygR/9dookCiO3zU21UhESqYMsQg9N7U1
+ OwKM6LVBtNbf+fVCMGVr7zVUUv+ltD11CZ4EeR57uRnIaSK/QBPpl4XfUwTJaqUc5Wttx
+ NJbHT/bfNKzsd70QXcYbIaTSptILWIb2i7wDuCfloYemX4MJyR6KSUdGgW+tcAFhtSQ7t
+ qICsWrOtVX0bqYnlcpIfU1BYz47kKTBfzi4g2c+QPo1m364lEjTGbhnfAAXgNJ4fAW0XF
+ pfvcrHwbeKyNLMYVdTGxsnUxs3Xb5+AsSrB6YnEF2J8Nkgp2nZ+gTLZMUo4O/I6lYjw==
+ARC-Authentication-Results: i=1; smtp1.osuosl.org;
+ dmarc=pass header.from=me.com;
+ dkim=pass header.d=me.com header.i=@me.com header.a=rsa-sha256
+ header.s=1a1hai
+ header.b=XZzbAp6+;
+ arc=none smtp.remote-ip="2a01:b747:3003:204::33"
+X-Greylist: delayed 154 seconds by postgrey-1.37 at util1.osuosl.org;
+ Fri, 30 Oct 2026 22:38:03 UTC
+Authentication-Results: smtp1.osuosl.org;
+ dmarc=pass (p=quarantine dis=none) header.from=me.com
+Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key,
+ unprotected) header.d=me.com header.i=@me.com header.a=rsa-sha256
+ header.s=1a1hai header.b=XZzbAp6+
+Received-SPF: Pass (mailfrom) identity=mailfrom;
+ client-ip=2a01:b747:3003:204::33; helo=outbound.pv.icloud.com;
+ envelope-from=pepp@me.com; receiver=<UNKNOWN>
+Received: from outbound.pv.icloud.com (pv-2006e-snip6-11.eps.apple.com
+ [IPv6:2a01:b747:3003:204::33])
+ by smtp1.osuosl.org (Postfix) with ESMTPS id 87E71810D9
+ for <u-boot@lists.u-boot-project.org>; Fri, 30 Oct 2026 22:38:03 +0000 (UTC)
+Received: from outbound.pv.icloud.com (unknown [127.0.0.2])
+ by p00-icloudmta-asmtp-us-west-1a-60-percent-9 (Postfix) with ESMTPS id
+ 3694B1800458; Fri, 30 Oct 2026 22:30:07 +0000 (UTC)
+X-ICL-RepId: 01a18eef-425b-7522-8015-358f9c0d22cf
+X-ICL-Out-Info: 
+ HUtFAUMEWwJACUgATUQeDx5WFlZNRAJCTQhBBkMCUxxBC0sdXAdZEhVdRUMIRxtyHVxWUAJaS1QUBBVWQ1QEX1BLGw5bFwNXHFZFXBhDCV0FVxwdHUFFWxNVF0YJGQhdHRkIRx8KMANCDlYDQwdFAC0ZHFdQWg4cE1YVEwBeDw9MC0gBWwZbAUALSgFUAl8cSAlKB18aWh8AXAhDLVoOHBNWFQ1NQxJCFQQRUAFYHlY=
+Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai;
+ t=1793399407; x=1824935407; bh=Dkki6UiCgHsCQ86Afdtf8W0EDLfKP2DzwgmqrBhRpz0=;
+ h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme;
+ b=XZzbAp6+9xKSJz7HUljtRY1dagUUFfvUzy4A2hO+BAH891dNfEF/FuYgHdGORHDH6BeH3hiPiq/gz8IxGy8G9ZUkEItj5Vu3ElDc27EQ11su9qwnhkZrqy4VZtxnDqUuhLCalsp8Fvw+ExMFJViKfOT1Y9+WXMJMmMl5F26uNkQm+iLJTY5JRbui0d7NjzDk2WRhQcqdTmjvYCFYdvA1QtBwnY8oxe0WEbHNGnWll13rLSi+17+QmR0P0Gkzv5eBcbd2nq5OC5tccUCZvD3EP2O/4Y+CjGwccKEwfKxcL87aVfiaiUrVk2UqTMsny2vXYDUXb0FoHJGrRZV/oN0uHQ==
+Received: from Fox (unknown [17.156.192.29])
+ by p00-icloudmta-asmtp-us-west-1a-60-percent-9 (Postfix) with ESMTPSA id
+ 6F0C11800450; Fri, 30 Oct 2026 22:30:05 +0000 (UTC)
+From: Peter Esselius <pepp@me.com>
+To: u-boot@lists.u-boot-project.org
+Cc: duwe@lst.de, sjg@chromium.org, mbrugger@suse.com, pbrobinson@gmail.com,
+ trini@konsulko.com
+Subject: [PATCH] board: raspberrypi: rpi: add nvme to boot_targets
+Date: Fri, 30 Oct 2026 23:29:54 +0100
+Message-ID: <20261030222954.80242-1-pepp@me.com>
+X-Mailer: git-send-email 2.54.0
+In-Reply-To: <20260925105432.0F27E68C4E@verein.lst.de>
+References: <20260925105432.0F27E68C4E@verein.lst.de>
+MIME-Version: 1.0
+X-Authority-Info-Out: v=2.4 cv=MvpfKmae c=1 sm=1 tr=0 ts=6ae51a6f
+ cx=c_apl:c_pps:t_out a=aW9mcIavGNWWFvFFKOxBSA==:117
+ a=aW9mcIavGNWWFvFFKOxBSA==:17 a=660iZSQnnn4A:10 a=x7bEGLp0ZPQA:10
+ a=deLJwN4FMxAA:10 a=VkNPw1HP01LnGYTKEx00:22 a=HHGDD-5mAAAA:8
+ a=lT8QMgGdXQhgYjgtZ2sA:9
+X-Proofpoint-GUID: P8ba9TTrJC65X8OdZ1e0u_l50vUGF0zi
+X-Proofpoint-ORIG-GUID: P8ba9TTrJC65X8OdZ1e0u_l50vUGF0zi
+X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA4OSBTYWx0ZWRfXyV+dwJ3054qh
+ 5YS2UU0xAiKHJSRnd9qYfDz2/uirnpXSOMuodXNPMeLHVvPfwVn3lZX4xCUIhWtSXKbMfxIKleV
+ I6UKGLeKI/tCRorNbQZTsOjQtucc4RH6KYj50HPEsfUDHPsnBMuG/hdhd51ILcqJuHPwZxP2c0B
+ Wz5YPxURFHyisLN9m2hL3xMOsyceo8E5SFCqW9ldYKSYtSji++jONKmBxi93SjHBkqGUUnOsA6v
+ rBq7fo08haGya7lsLwxduUoag0ucGR46peYtDEu1k+w5Jqfv1FjdbAv6KRqk//Ndbyj3W3OBeHm
+ vJ+E24afI2UMruZNG/TgrfFNthiv7dE/6BdxLK/hD9JKkXzv3riZ27SBZdN5U0=
+X-JNJ: AAAAAAABaWa+XDSTM+x/R4/oLBDnmT1k0MTwLnE0CEbCf55izMaL58EglTEBjqFMn3u8j/
+ hBFzTHDFccNl4CBJUdeTO+oIwopqlgYD4uvwalINH8dgeNoXZDL3DwDLOP3DU/N4XcwHoA
+ 6+k93ha677/Ky0jzF8Mom1uXnNRurKquXAJJBaYoYPf68BfCYKXtMrjYA/grXVUiohoMbS
+ 2E68r6XaG+zAL2wFd1Ez6PJIk37K1XAT8JhMpzNTkj/NyRxlbeg2kFKlpxZG9g1pYtTbL/
+ yJ4Yj2Fn5Rjf1AdDZcuXv/RZtg35lFPHNMOsbFQECGeMSdYDilenDNdY8a7Ou0s101n7Yi
+ f9xuPzdBlHwR0T/9sCgGMbfmmbKrtiNqE3tKhQAN4fhG/8Ud36UOKfp+lPHoSJiEZPIv88
+ 38j+VrlAwMu4Vy7mFRJT6HtXxI+sI+7q4l4Ozzp/8fmoalgqZ3Z/j9AmMwT4WthpNbVxSs
+ UCBX2rxKgbIEakZNFqvtPyY128ZsOOGcJUXrTajuguOQJSdXtQZv2hFMkWCFJKTP5ci11X
+ 5eyHHRxd1r2Va+QCxJPmjXaA6yjfvyzAzA9Jc8gTrdCsF91scHt7YMC2pVDLfsVcu1NyYN
+ 6p1OIQWdmxC0utdiKtzga3vxBH9H7pk7Ece/XLNzxx5uuVI+k9xXXL3zaOSeEDq35pYoJk
+ rUM+veMv0fbx5IX5CK13Lc3ZNZtrIfL1SLnt6+Xs3uRuAs4Z2YpHMDC35REcyvR4uaTqjH
+ InTyPp9uospTTcLr9gJ3Qz2OJ36pD6f5Yhqol1s1Bk0v/XnzH48sS9zAUtk7HDTDVAug9P
+ xKeSoQRzGLlj5c84C+KVHx/WApqcdS8QUH2fNmfoAqcASRBZOwCMoDzImDr9HQb3u3zC2Q
+ 1aClGLRy5S4xfrNaVZtfse5q6OqUJgTn0izf85ZOhd8J9FxCQvTuIkRq6n9QhgEdAnJweo
+ GyezRP9aBaMHqNvXsf/4cE4Lc4js8Ymjh+7K1/QstrbJuA8KFiFPTjCONEGk6ov3u55GVN
+ ecTBHU0IvUtgb8NFPuZkPEiJ8ZvDE4wIDnOU8Ob2/CyCh2oNH0NKi1eoUo+iOJubfNat3F
+ +U5Jy6i1Z/Jtn+FgcJZbQrOjyK4mcFhHW6hjsfrnjf8i48GE0mAH7MPnSFErFkUvfb8JX6
+ GWJy7Fj5UO0umDA4xtL4FcQXVF8UV5TAmtKRZZURe0xAOb7vco/Z2bNMNiWn4b7kU+EQs5
+ 5IY=
+X-Mailman-Approved-At: Sat, 31 Oct 2026 01:58:32 +0000
+X-BeenThere: u-boot@lists.u-boot-project.org
+X-Mailman-Version: 2.1.30
+Precedence: list
+List-Id: U-Boot discussion <u-boot.lists.u-boot-project.org>
+List-Unsubscribe: <https://lists.u-boot-project.org/mailman/options/u-boot>,
+ <mailto:u-boot-request@lists.u-boot-project.org?subject=unsubscribe>
+List-Archive: <http://lists.u-boot-project.org/pipermail/u-boot/>
+List-Post: <mailto:u-boot@lists.u-boot-project.org>
+List-Help: <mailto:u-boot-request@lists.u-boot-project.org?subject=help>
+List-Subscribe: <https://lists.u-boot-project.org/mailman/listinfo/u-boot>,
+ <mailto:u-boot-request@lists.u-boot-project.org?subject=subscribe>
+Errors-To: u-boot-bounces@lists.u-boot-project.org
+
+bootstd only scans the labels listed in boot_targets. The NVMe bootdev
+is created by "nvme scan", but automatic boot never considers it because
+the board environment only lists mmc, usb, pxe, and dhcp.
+
+Add nvme after mmc and usb so the existing SD/USB boot order is
+preserved and NVMe is tried when neither produces a bootflow. This makes
+an NVMe-only system boot without an SD card while keeping the SD card as
+a fallback.
+
+Tested on a Raspberry Pi 5 (4 GB) with a BIWIN CE430T5D100-512G NVMe:
+with no SD card, U-Boot 2026.10 scans NVMe and boots extlinux from the
+NVMe ext4 partition; with the installer SD inserted, it still boots the
+SD first.
+
+Signed-off-by: Peter Esselius <pepp@me.com>
+---
+ board/raspberrypi/rpi/rpi.env | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/board/raspberrypi/rpi/rpi.env b/board/raspberrypi/rpi/rpi.env
+index 9ac9d676..6104f3b1 100644
+--- a/board/raspberrypi/rpi/rpi.env
++++ b/board/raspberrypi/rpi/rpi.env
+@@ -77,4 +77,4 @@ pxefile_addr_r=0x05500000
+ fdt_addr_r=0x05600000
+ ramdisk_addr_r=0x05700000
+ 
+-boot_targets=mmc usb pxe dhcp
++boot_targets=mmc usb nvme pxe dhcp

diff --git a/rpi-copy-chosen-bootloader-partition-and-set-boot_partition.patch b/rpi-copy-chosen-bootloader-partition-and-set-boot_partition.patch
index 6d54fa7..9677dcb 100644
--- a/rpi-copy-chosen-bootloader-partition-and-set-boot_partition.patch
+++ b/rpi-copy-chosen-bootloader-partition-and-set-boot_partition.patch
@@ -1,130 +1,160 @@
-From patchwork Tue Aug  4 13:39:15 2026
+From patchwork Mon Nov 16 22:59:45 2026
 Content-Type: text/plain; charset="utf-8"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
 X-Patchwork-Submitter: Gregor Herburger <gregor.herburger@linutronix.de>
-X-Patchwork-Id: 2280865
+X-Patchwork-Id: 2346800
 X-Patchwork-Delegate: pbrobinson@gmail.com
 Return-Path: <u-boot-bounces@lists.u-boot-project.org>
 X-Original-To: incoming@patchwork.ozlabs.org
 Delivered-To: patchwork-incoming@legolas.ozlabs.org
 Authentication-Results: legolas.ozlabs.org;
-	dkim=fail reason="signature verification failed" (2048-bit key;
+	dkim=pass (2048-bit key;
  unprotected) header.d=lists.u-boot-project.org
- header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default
- header.b=DFFhfbAr;
+ header.i=@lists.u-boot-project.org
+ header.a=rsa-sha256 header.s=default header.b=mx+duFwP;
+	dkim=pass (2048-bit key;
+ secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256
+ header.s=2020 header.b=C33JrN8Q;
+	dkim=pass header.d=linutronix.de header.i=@linutronix.de
+ header.a=ed25519-sha256 header.s=2020e header.b=i6FNNxOg;
 	dkim-atps=neutral
 Authentication-Results: legolas.ozlabs.org;
  spf=pass (sender SPF authorized) smtp.mailfrom=lists.u-boot-project.org
- (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org;
+ (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org;
  envelope-from=u-boot-bounces@lists.u-boot-project.org;
  receiver=patchwork.ozlabs.org)
-Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])
+Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])
 	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 	 key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)
 	(No client certificate requested)
-	by legolas.ozlabs.org (Postfix) with ESMTPS id 4hDvm8025rz1xqD
-	for <incoming@patchwork.ozlabs.org>; Tue, 04 Aug 2026 23:39:35 +1000 (AEST)
+	by legolas.ozlabs.org (Postfix) with ESMTPS id 4jTL4j4g3tz1xsp
+	for <incoming@patchwork.ozlabs.org>; Tue, 17 Nov 2026 21:07:16 +1100 (AEDT)
 Received: from localhost (localhost [127.0.0.1])
-	by smtp3.osuosl.org (Postfix) with ESMTP id 2536960600;
-	Tue,  4 Aug 2026 13:39:34 +0000 (UTC)
+	by smtp1.osuosl.org (Postfix) with ESMTP id 82D2681022;
+	Tue, 17 Nov 2026 10:07:14 +0000 (UTC)
 X-Virus-Scanned: amavis at osuosl.org
-Received: from smtp3.osuosl.org ([127.0.0.1])
- by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
- id T9Kb3BtsvOX4; Tue,  4 Aug 2026 13:39:33 +0000 (UTC)
+Received: from smtp1.osuosl.org ([127.0.0.1])
+ by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
+ id GKcAm4n06fO7; Tue, 17 Nov 2026 10:07:14 +0000 (UTC)
+ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org D995481067
+Authentication-Results: smtp1.osuosl.org;
+ arc=none smtp.remote-ip=140.211.166.142
+ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1794910034;
+	b=k8EpxBga0oJvJjjMjv5XsoVhwjQ/IlToT53BHGbcYwPBq2oK+6ukR3hpRzshyFhWO7Dh
+	 QEX1xdAAVYDjmrGUEVzPx/KVPXLkItXmZi6jCJlvIdGejSmtKGsOJOsjqApOgIdk7awx7
+	 7ftsa/EqGLRMGy22mdKXSMNjI//MKNeON1sS0/UBSgj/nx1Sh8N1P/TugVDOFknW8Cnuc
+	 LBJnJH2+mBWKI6Xj9ptXm8VtBFnF8HJArEw+Q8kgvpwZZ7rCDU8yPn9tN+iiDoJmOBxoL
+	 MlcNEYBdG7k4h8FNmqtkBXnGP2X5S+UCQ5UADscNZkrTrpJqYULctnrY4n8w2mOUoSQ==
+ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256;
+	c=relaxed/relaxed; t=1794910034;
+	h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received:
+	 Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level:
+	 X-Spam-Status:Received:ARC-Filter:X-Greylist:Received-SPF:Received:
+	 From:DKIM-Signature:DKIM-Signature:Date:Subject:MIME-Version:
+	 Content-Type:Content-Transfer-Encoding:Message-Id:References:
+	 In-Reply-To:To:Cc:X-Developer-Signature:X-Developer-Key:X-BeenThere:
+	 X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive:
+	 List-Post:List-Help:List-Subscribe:Errors-To;
+	bh=qymroRTTEpNJSYBU+p1HMeV3CuruNz/S0kU/ZY7OILQ=;
+	b=NnFXSbzq+hAeiX4DFCGo+q1x1GNuOlzepk2ml/rZGrYmU3dBSndKkOPnBzwOOPu9e2vW
+	 b9/ZdgzDMLvruzX2DibxwAUtL2tMTYRGVPoMCaIVP9xvk0TOrw5Cf/Rw5+aoxEZpmIDsR
+	 EprpsHLBXHKAUeQEhqs521RIXRhRXKK0N7MwgbC9zlP2o8CqQk2pXk8IwDT2nYohbNoFJ
+	 nELzYscXGjJdU6cD9O8+gB85yoEjaTqJuPqHSDGFGquqq2JeRlCWhpw22fDSjzKdWK5E1
+	 JGm7TONkDiJcNBuDau8sYt5kN87nXdiqQ9BoJqsDfkGZMXu2DDSzzmbt9xDATrjX0+g==
+ARC-Authentication-Results: i=1; smtp1.osuosl.org;
+	arc=none smtp.remote-ip=140.211.166.142
 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142;
  helo=lists1.osuosl.org;
  envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver=<UNKNOWN>
-DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4350560615
 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
-	d=lists.u-boot-project.org ; s=default; t=1785850773;
-	bh=Tj3LONeiWXn0Cn5KPSYhoff9avwde4nWUGEguAWdLbE=;
-	h=From:Date:Subject:To:Cc:List-Id:List-Unsubscribe:List-Archive:
-	 List-Post:List-Help:List-Subscribe:From;
-	b=DFFhfbArDuHrxJEuZryw3QEVVVcavwAril7tcxulQVs6jkVOCAjh7GEuhkq8EyLIq
-	 suopR14b5dkKpVbbSr23u2v9jRgpynJQ5WBq6kIJSqjmZt58tZeMbaX76PRHjOs8+s
-	 QHatP0Vxf1ny0BOpVlZLZ/LlAsQhypNhW6/qjH0X9OLeNq0IFjSZ5faD3z463b62m0
-	 yMuPrAXa/kuPPInxGG6HsCPkRzFH3x9hM15r7ipSbXODTRXaVBSVScp03eAeo6zw/d
-	 nll/wcjCEe/78XX5o1Tsug951g7H8meDRnGQHJZtvbEmHdDB1wkTXYdFI2EGwnDxsz
-	 W3dcHoUveJgqQ==
+	d=lists.u-boot-project.org; s=default; t=1794910034;
+	bh=qymroRTTEpNJSYBU+p1HMeV3CuruNz/S0kU/ZY7OILQ=;
+	h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id:
+	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
+	 From;
+	b=mx+duFwPKJbky78BktJSW/wWXnHTrUvoH3FWygi4al4arT3MX245Lr1hNj+jcLBsI
+	 HjNdwm/resnJ1ZaQ/xa+SrHyYa+fDrrzPfRpynDAlOSiNEGMbsBGf7UjpuSPZWg0Hl
+	 IBvtGXDGohSQ6mb3ppEcIJkTinhjNVMkkjEJLLot8xlOfcYuyb2binyop24uK4XS6u
+	 7oyPuCGqVXenuCUY/MHbXB6zxbpWQweM+bytXfXQJ9yBV0nkbp2dS8D4GpAgdfazAu
+	 mWwdKUJz+k1u1N0GDicuCQTzQAR3SA3utV/FqDsXDz8yZFtg06BwMTweUnCexEWnIC
+	 sFchZaMjDkW2g==
 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])
-	by smtp3.osuosl.org (Postfix) with ESMTP id 4350560615;
-	Tue,  4 Aug 2026 13:39:33 +0000 (UTC)
+	by smtp1.osuosl.org (Postfix) with ESMTP id D995481067;
+	Tue, 17 Nov 2026 10:07:13 +0000 (UTC)
 X-Original-To: u-boot@lists.u-boot-project.org
 Delivered-To: u-boot@lists.u-boot-project.org
-Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])
- by lists1.osuosl.org (Postfix) with ESMTP id 3009E2BF
- for <u-boot@lists.u-boot-project.org>; Tue,  4 Aug 2026 13:39:31 +0000 (UTC)
+Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133])
+ by lists1.osuosl.org (Postfix) with ESMTP id AA47C1A6
+ for <u-boot@lists.u-boot-project.org>; Tue, 17 Nov 2026 10:07:12 +0000 (UTC)
 Received: from localhost (localhost [127.0.0.1])
- by smtp1.osuosl.org (Postfix) with ESMTP id 222DC8086C
- for <u-boot@lists.u-boot-project.org>; Tue,  4 Aug 2026 13:39:31 +0000 (UTC)
+ by smtp2.osuosl.org (Postfix) with ESMTP id 8F4B140301
+ for <u-boot@lists.u-boot-project.org>; Tue, 17 Nov 2026 10:07:12 +0000 (UTC)
 X-Virus-Scanned: amavis at osuosl.org
-Received: from smtp1.osuosl.org ([127.0.0.1])
- by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
- id W5OoNRat257d for <u-boot@lists.u-boot-project.org>;
- Tue,  4 Aug 2026 13:39:30 +0000 (UTC)
-X-Greylist: delayed 94239 seconds by postgrey-1.37 at util1.osuosl.org;
- Tue, 04 Aug 2026 13:39:29 UTC
-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 1B0B580827
-DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 1B0B580827
+Received: from smtp2.osuosl.org ([127.0.0.1])
+ by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
+ id JYHWkOi2nFWy for <u-boot@lists.u-boot-project.org>;
+ Tue, 17 Nov 2026 10:07:11 +0000 (UTC)
+ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org 964D64008E
+Authentication-Results: smtp2.osuosl.org;
+ arc=none smtp.remote-ip="2a0a:51c0:0:12e:550::1"
+X-Greylist: delayed 430 seconds by postgrey-1.37 at util1.osuosl.org;
+ Tue, 17 Nov 2026 10:07:11 UTC
+Authentication-Results: smtp2.osuosl.org;
+ dmarc=pass (p=none dis=none) header.from=linutronix.de
+Authentication-Results: smtp2.osuosl.org;
+ dkim=pass (2048-bit key, unprotected) header.d=linutronix.de
+ header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=C33JrN8Q;
+ dkim=pass header.d=linutronix.de header.i=@linutronix.de
+ header.a=ed25519-sha256 header.s=2020e header.b=i6FNNxOg
 Received-SPF: Pass (mailfrom) identity=mailfrom;
  client-ip=2a0a:51c0:0:12e:550::1; helo=galois.linutronix.de;
  envelope-from=gregor.herburger@linutronix.de; receiver=<UNKNOWN>
 Received: from galois.linutronix.de (Galois.linutronix.de
  [IPv6:2a0a:51c0:0:12e:550::1])
- by smtp1.osuosl.org (Postfix) with ESMTPS id 1B0B580827
- for <u-boot@lists.u-boot-project.org>; Tue,  4 Aug 2026 13:39:29 +0000 (UTC)
+ by smtp2.osuosl.org (Postfix) with ESMTPS id 964D64008E
+ for <u-boot@lists.u-boot-project.org>; Tue, 17 Nov 2026 10:07:10 +0000 (UTC)
 From: Gregor Herburger <gregor.herburger@linutronix.de>
-Date: Tue, 04 Aug 2026 15:39:15 +0200
-Subject: [PATCH v3] rpi: copy /chosen/bootloader partition and set
- boot_partition
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de;
+ s=2020; t=1794909595;
+ h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
+ to:to:cc:cc:mime-version:mime-version:content-type:content-type:
+ content-transfer-encoding:content-transfer-encoding:
+ in-reply-to:in-reply-to:references:references;
+ bh=qymroRTTEpNJSYBU+p1HMeV3CuruNz/S0kU/ZY7OILQ=;
+ b=C33JrN8QXZ4la9q8wHoMNAUNmZdJiQYTBaUQZYpg3LtP8Kh4wQJpLd+qPLsZnlMVbZVlYT
+ s3+HpN6bNNwltcjWPAKlxMXO2jZuiP0a4cxrViqqoAXbzQcJ/VRn6N4e3bRM8b+ZUQuwDi
+ 5cHrcQnn9IYblUUIFM8aL44MS0/Gul0o656Z49J63TzPh9l/5abo+kfZVp+F3nRtJ5c2Mq
+ gBYACB6P96IYFWwrFDhP98HtNcvZU3RoGug04PvefUQrV66kOuArNIEztk8dqGx8ch63I/
+ poaCKxb07Oeg4fDbq3AH54jSTn4HF+CsR+F1oKZIKfpDjgElTaWb1H6B/JcYrQ==
+DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;
+ s=2020e; t=1794909595;
+ h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
+ to:to:cc:cc:mime-version:mime-version:content-type:content-type:
+ content-transfer-encoding:content-transfer-encoding:
+ in-reply-to:in-reply-to:references:references;
+ bh=qymroRTTEpNJSYBU+p1HMeV3CuruNz/S0kU/ZY7OILQ=;
+ b=i6FNNxOgnBQFWEZrlLR1ElgB6M9e6bodou/jQiKbzpwTKcvU/KlCHkVUEkteyXKGsf1D6X
+ RZaftfrtduuQW+Aw==
+Date: Tue, 17 Nov 2026 10:59:45 +0100
+Subject: [PATCH RESEND v4 1/2] rpi: set boot partition from devicetree
 MIME-Version: 1.0
-Message-Id: <20260804-tryboot2-v3-1-b0bc282a923b@linutronix.de>
-X-B4-Tracking: v=1; b=H4sIAILrcWoC/22OywrCMBBFf0WyNpKHbYor/0O6SNOJjWgiSRpaS
- v/dpCKCyKwO3HvmLiiANxDQabcgD8kE42wGvt8hNUh7BWz6zIgRVpOGcBz93DkXGW5UxRjlooZ
- Kohx/etBm2lSX9s1h7G6gYumXhPbugePgQX6VgjQfJU4U5+OSHiVIpQU9340do3fWTIceimIwI
- To/b3MTK6/+LEssezhRRFDNAGj142nXdX0BG/Mh6/kAAAA=
-X-Change-ID: 20260803-tryboot2-8c5221376e5a
+Message-Id: <20261117-tryboot2-v4-1-d59fa66de789@linutronix.de>
+References: <20261117-tryboot2-v4-0-d59fa66de789@linutronix.de>
+In-Reply-To: <20261117-tryboot2-v4-0-d59fa66de789@linutronix.de>
 To: u-boot@lists.u-boot-project.org
 Cc: Matthias Brugger <mbrugger@suse.com>,
   Peter Robinson <pbrobinson@gmail.com>, Tom Rini <trini@konsulko.com>,
 	=?utf-8?q?Filip_Kokosi=C5=84ski?= <filip.kokosinski@gmail.com>,
   Ilias Apalodimas <ilias.apalodimas@linaro.org>,
   Gregor Herburger <gregor.herburger@linutronix.de>
-X-Developer-Signature: v=1; a=ed25519-sha256; t=1785850764; l=3191;
+X-Developer-Signature: v=1; a=ed25519-sha256; t=1794909594; l=1357;
  i=gregor.herburger@linutronix.de; s=20260226; h=from:subject:message-id;
- bh=4mVT/kFDHBnjUUlqljWBZ+t7aLa+t+gE+t/hUJ4uc5g=;
- b=TBKoGScdkXGUfpGLvpVtYHkg4LDoOR/8M/do2dqU2QlR+9Z9YFNN6x88pDC7UIDeXrJS+Hpeg
- e3YsfK6fOcoBgXOuzz3Aabmmn9//OQN7WG6Vz15rSxX0uVZ96TFcvf5
+ bh=4+bM65tNui9B6ZZpfMJj/iUKxmOuDh9UNLJF+ikkIho=;
+ b=szPdR2QkquW9WJPCmjZ1qj562bMAJVCSxweGNB+Ix/DtQILPJC07DKc9Wg9jBMLicTZS0gB5d
+ 572BxJBLA/SBbYkk7+gLE9hzyl6zYNqgqgt+Gw6xW0/zBETcMSBLnRC
 X-Developer-Key: i=gregor.herburger@linutronix.de; a=ed25519;
  pk=u72Lv7+/lS5CC1hmSrb17lv/6CK7HBh4Lvz77PHA5LM=
-X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
- d=linutronix.de; s=2020; t=1785850765;
- h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
- to:to:cc:cc:mime-version:mime-version:content-type:content-type:
- content-transfer-encoding:content-transfer-encoding;
- bh=Tj3LONeiWXn0Cn5KPSYhoff9avwde4nWUGEguAWdLbE=;
- b=plU5oAFojHvTlDhOGINsdXnnc0AnS9OY0C4LB9dSy9uyrPKBBpLWGWj3xmNoX87lLZlhO9
- z0H+R5gqw5NfxbTVYFHqZnW+pW4xJQFW9fMYSU8/k2RRg9JEqP+NrZ8Y720ujlycxn05vP
- sF7cD+TEsxvyBhnbRyq82obvpdQIYj0D6T3UkHyz0U4G+5k8dVhhv/mqGaSfY8xW4cCl5G
- gIE2QIsuzB4g4pQoW70DrLd7cyqqDM0iDrrXFZL2a7DlnYgbe1ULVXMl05UMMQGfBkHmog
- pt8e+zvO4AVA3G8CKcUQhhWOZm7uycUpdrNuyPKg9K7JB6MEd9dHbucVa+v8Yg==
-X-Mailman-Original-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed;
- d=linutronix.de; s=2020e; t=1785850765;
- h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
- to:to:cc:cc:mime-version:mime-version:content-type:content-type:
- content-transfer-encoding:content-transfer-encoding;
- bh=Tj3LONeiWXn0Cn5KPSYhoff9avwde4nWUGEguAWdLbE=;
- b=NAMrZHs0ETYIMiwBHLvCoR3NOcg/kwkAxVRq6Q/pdhfkQJjxtHU3mZFV520QjbE1yeix0S
- nJyAqHgyKVlRiZCw==
-X-Mailman-Original-Authentication-Results: smtp1.osuosl.org;
- dmarc=pass (p=none dis=none)
- header.from=linutronix.de
-X-Mailman-Original-Authentication-Results: smtp1.osuosl.org;
- dkim=pass (2048-bit key, unprotected) header.d=linutronix.de
- header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=plU5oAFo;
- dkim=pass header.d=linutronix.de header.i=@linutronix.de
- header.a=ed25519-sha256 header.s=2020e header.b=NAMrZHs0
 X-BeenThere: u-boot@lists.u-boot-project.org
 X-Mailman-Version: 2.1.30
 Precedence: list
@@ -137,42 +167,22 @@ List-Help: <mailto:u-boot-request@lists.u-boot-project.org?subject=help>
 List-Subscribe: <https://lists.u-boot-project.org/mailman/listinfo/u-boot>,
  <mailto:u-boot-request@lists.u-boot-project.org?subject=subscribe>
 Errors-To: u-boot-bounces@lists.u-boot-project.org
-Sender: "U-Boot" <u-boot-bounces@lists.u-boot-project.org>
 
 The Raspberry Pi has the "tryboot" feature where it can boot from a
 different partition enabling failsafe A/B updates. After boot the
 firmware sets 'partition' property in /chosen/bootloader.
 
-Copy the /chosen/bootloader node to the device tree.
-
 Set the env variable boot_partition accordingly to allow boards to
 create a bootcmd based on the boot partition.
 
-Reviewed-by: Matthias Brugger <mbrugger@suse.com>
 Signed-off-by: Gregor Herburger <gregor.herburger@linutronix.de>
+Tested-by: Peter Robinson <pbrobinson@gmail.com>
 ---
-Changes in v3:
-- Copy the complete '/chosen/bootloader' node instead of only the
-  partition property
-- Link to v2: https://patch.msgid.link/20260803-tryboot2-v2-1-30c071f2ee15@linutronix.de
-
-Changes in v2:
-- update Reviewed-by tag
----
- board/raspberrypi/rpi/rpi.c | 51 +++++++++++++++++++++++++++++++++++++++++++++
- 1 file changed, 51 insertions(+)
-
-
----
-base-commit: baa64b2f892890f00a377eac4a3e685472bb56b5
-change-id: 20260803-tryboot2-8c5221376e5a
-
-Best regards,
---  
-Gregor Herburger <gregor.herburger@linutronix.de>
+ board/raspberrypi/rpi/rpi.c | 15 +++++++++++++++
+ 1 file changed, 15 insertions(+)
 
 diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
-index 1da5df92351c..ba8a2c1ba4cf 100644
+index 1da5df92351c..8354fec833cc 100644
 --- a/board/raspberrypi/rpi/rpi.c
 +++ b/board/raspberrypi/rpi/rpi.c
 @@ -480,6 +480,20 @@ static void set_serial_number(void)
@@ -204,7 +214,194 @@ index 1da5df92351c..ba8a2c1ba4cf 100644
  
  	return 0;
  }
-@@ -579,6 +594,39 @@ int board_fdt_blob_setup(void **fdtp)
+
+From patchwork Mon Nov 16 22:59:46 2026
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+X-Patchwork-Submitter: Gregor Herburger <gregor.herburger@linutronix.de>
+X-Patchwork-Id: 2346802
+X-Patchwork-Delegate: pbrobinson@gmail.com
+Return-Path: <u-boot-bounces@lists.u-boot-project.org>
+X-Original-To: incoming@patchwork.ozlabs.org
+Delivered-To: patchwork-incoming@legolas.ozlabs.org
+Authentication-Results: legolas.ozlabs.org;
+	dkim=pass (2048-bit key;
+ unprotected) header.d=lists.u-boot-project.org
+ header.i=@lists.u-boot-project.org
+ header.a=rsa-sha256 header.s=default header.b=X3PGltVG;
+	dkim=pass (2048-bit key;
+ secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256
+ header.s=2020 header.b=ZeNXMb3y;
+	dkim=pass header.d=linutronix.de header.i=@linutronix.de
+ header.a=ed25519-sha256 header.s=2020e header.b=vMTIP3qm;
+	dkim-atps=neutral
+Authentication-Results: legolas.ozlabs.org;
+ spf=pass (sender SPF authorized) smtp.mailfrom=lists.u-boot-project.org
+ (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org;
+ envelope-from=u-boot-bounces@lists.u-boot-project.org;
+ receiver=patchwork.ozlabs.org)
+Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])
+	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
+	 key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)
+	(No client certificate requested)
+	by legolas.ozlabs.org (Postfix) with ESMTPS id 4jTL4n65pTz1xsp
+	for <incoming@patchwork.ozlabs.org>; Tue, 17 Nov 2026 21:07:21 +1100 (AEDT)
+Received: from localhost (localhost [127.0.0.1])
+	by smtp3.osuosl.org (Postfix) with ESMTP id F3B0660844;
+	Tue, 17 Nov 2026 10:07:19 +0000 (UTC)
+X-Virus-Scanned: amavis at osuosl.org
+Received: from smtp3.osuosl.org ([127.0.0.1])
+ by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
+ id 8aS5EAu6aRxT; Tue, 17 Nov 2026 10:07:19 +0000 (UTC)
+ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 10C566084E
+Authentication-Results: smtp3.osuosl.org;
+ arc=none smtp.remote-ip=140.211.166.142
+ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1794910039;
+	b=GZfXFI/x+Iz88NDHyxvPJKwUMB/xPLNnQIYnxyIPEtPxr9t0cQqmk1tSbpfeamDsGiRg
+	 OHhHcDa00G/3ynwpBxhosuTeBcqqKGQxbMgQG8MZc08eUVl12kKURGdqj+/RCBaQY9CSo
+	 Skbl3xWa1KOlY7NmiZM16bIxoQ0SNJbI1pu9xK/zp3X1f8yCjRfqUqItj97Q5CGJ3K9PG
+	 lQakOALXMSa3B9FBLBSKi7LlMcFGVpLgFe5gK7c+zKzBdOTWz/qH2CN2/ELIAYFxURPtz
+	 Qd0OWI5knzoMXNhchV82Zy6teY09BN0tfNnFn48iiFDwoTmngc5f+25rAIVe/ddilDA==
+ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256;
+	c=relaxed/relaxed; t=1794910039;
+	h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received:
+	 Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level:
+	 X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:From:
+	 DKIM-Signature:DKIM-Signature:Date:Subject:MIME-Version:Content-Type:
+	 Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc:
+	 X-Developer-Signature:X-Developer-Key:X-BeenThere:X-Mailman-Version:
+	 Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:
+	 List-Subscribe:Errors-To;
+	bh=p4ubcy5qsNckJj/be5p64sC5AyGpkOI6zL3kswSjNRY=;
+	b=F8vWH1LW8S9/SIJbi2y2DME/yJVXUT4gjsMSF2IsIqGh/ZrMKvKnZ2IjHrFMWKTXQmv3
+	 AJScSWMZivB/XYreECneIilJUo5l19fx1ElZUoml+q6NMHZGHn5FAnZXGcqJlcMDHRJmp
+	 aABrc+Sf7YNOxi1EiwTg9RpeySvnjjyhAxu0oqnnKr4o/vDSGzaYqgK6iIPCkG3yAw7L1
+	 HKaulL4lOetmypWioeXfwY8qtS1rDiRudYxyaksH9ocmRoZv9Xhnhz43FydHftaAQTg5n
+	 qgwkD6TXq5/hiQw75PjB1Ycc5GuPtmIkp+eTAkfpXM+slznOxXFMPtkcSsTGagrRimA==
+ARC-Authentication-Results: i=1; smtp3.osuosl.org;
+	arc=none smtp.remote-ip=140.211.166.142
+X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142;
+ helo=lists1.osuosl.org;
+ envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver=<UNKNOWN>
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
+	d=lists.u-boot-project.org; s=default; t=1794910039;
+	bh=p4ubcy5qsNckJj/be5p64sC5AyGpkOI6zL3kswSjNRY=;
+	h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id:
+	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
+	 From;
+	b=X3PGltVGOzdIKCw9sLusjDhq1aEdB95OrMle4PPzG058zzkVRQejqGDWHjC7dFZZS
+	 Cvq13VH1yoAmi2nVCNzv9lgrhXYUoiLqR4vM/zW41AyiDPMpTNXrdj/WQkuTu91Hkd
+	 YOFXSUqtd0ufDEOWx18KgGlLcoBS+jt9d+sxVjYUqBJix7SdKYwqIBSgGZAuRrtZco
+	 szSPTRMMGu3y0wyKXcdCqL2kDc/felS+srMBYSRTUmoirNGZhWVR0MHil0LrsNdWVa
+	 w+Wft0CqD+dMuCDu+TW+urB8kZcUDkmZ8fmurc/EmC0BYBxozAhX2axxJod1MgeYqv
+	 BdCkU5gmS+/TQ==
+Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])
+	by smtp3.osuosl.org (Postfix) with ESMTP id 10C566084E;
+	Tue, 17 Nov 2026 10:07:19 +0000 (UTC)
+X-Original-To: u-boot@lists.u-boot-project.org
+Delivered-To: u-boot@lists.u-boot-project.org
+Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])
+ by lists1.osuosl.org (Postfix) with ESMTP id 4A9911E7
+ for <u-boot@lists.u-boot-project.org>; Tue, 17 Nov 2026 10:07:13 +0000 (UTC)
+Received: from localhost (localhost [127.0.0.1])
+ by smtp2.osuosl.org (Postfix) with ESMTP id 2F9154008E
+ for <u-boot@lists.u-boot-project.org>; Tue, 17 Nov 2026 10:07:13 +0000 (UTC)
+X-Virus-Scanned: amavis at osuosl.org
+Received: from smtp2.osuosl.org ([127.0.0.1])
+ by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP
+ id fkAPeKj2L7Pd for <u-boot@lists.u-boot-project.org>;
+ Tue, 17 Nov 2026 10:07:12 +0000 (UTC)
+ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org 5787B402CA
+Authentication-Results: smtp2.osuosl.org;
+ arc=none smtp.remote-ip="2a0a:51c0:0:12e:550::1"
+Received-SPF: Pass (mailfrom) identity=mailfrom;
+ client-ip=2a0a:51c0:0:12e:550::1; helo=galois.linutronix.de;
+ envelope-from=gregor.herburger@linutronix.de; receiver=<UNKNOWN>
+Authentication-Results: smtp2.osuosl.org;
+ dmarc=pass (p=none dis=none) header.from=linutronix.de
+Authentication-Results: smtp2.osuosl.org;
+ dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de
+ header.a=rsa-sha256 header.s=2020 header.b=ZeNXMb3y;
+ dkim=pass header.d=linutronix.de header.i=@linutronix.de
+ header.a=ed25519-sha256 header.s=2020e header.b=vMTIP3qm
+Received: from galois.linutronix.de (Galois.linutronix.de
+ [IPv6:2a0a:51c0:0:12e:550::1])
+ by smtp2.osuosl.org (Postfix) with ESMTPS id 5787B402CA
+ for <u-boot@lists.u-boot-project.org>; Tue, 17 Nov 2026 10:07:11 +0000 (UTC)
+From: Gregor Herburger <gregor.herburger@linutronix.de>
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de;
+ s=2020; t=1794909596;
+ h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
+ to:to:cc:cc:mime-version:mime-version:content-type:content-type:
+ content-transfer-encoding:content-transfer-encoding:
+ in-reply-to:in-reply-to:references:references;
+ bh=p4ubcy5qsNckJj/be5p64sC5AyGpkOI6zL3kswSjNRY=;
+ b=ZeNXMb3yvAw5IsLfJbh+M53+LldpaQciu6ww3ZiyV0VEtmSb+JYUj2etoA9EBAVDP6hlos
+ pA/jm8fcduWA1FUloc3X1OVE/J/r0G2BwjTF79mJC3eYo3azg52ACUs/QQPp0ZRM8sgUnc
+ 7+X9pjyMb94s5J/GUEekinh8H5wunTrK+FjI2AHuo2YilTO3VlXHusf8iemoBev03z2KpO
+ HL//kSPexTcEoi3AfxRM7xI4ZbygyqI0CnrnVD7gPhyQmdc4FIWtC92I3BU2dau/xQIwc6
+ 8ljjRWsKM/hIhWTnf91uwu4kUI8TrxgWcddKxwbzLAtISQVw/Kns/5Yx2fCRIg==
+DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;
+ s=2020e; t=1794909596;
+ h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
+ to:to:cc:cc:mime-version:mime-version:content-type:content-type:
+ content-transfer-encoding:content-transfer-encoding:
+ in-reply-to:in-reply-to:references:references;
+ bh=p4ubcy5qsNckJj/be5p64sC5AyGpkOI6zL3kswSjNRY=;
+ b=vMTIP3qmj8Xmj2HbHtdXw+2ZrSAcilyhBwdq1tTsFDIsC0MYqKcLaYAnri5Ky0E32KQPo2
+ vGSt3Z0y66oS13Bw==
+Date: Tue, 17 Nov 2026 10:59:46 +0100
+Subject: [PATCH RESEND v4 2/2] rpi: pass the bootloader node through to the
+ OS devicetree
+MIME-Version: 1.0
+Message-Id: <20261117-tryboot2-v4-2-d59fa66de789@linutronix.de>
+References: <20261117-tryboot2-v4-0-d59fa66de789@linutronix.de>
+In-Reply-To: <20261117-tryboot2-v4-0-d59fa66de789@linutronix.de>
+To: u-boot@lists.u-boot-project.org
+Cc: Matthias Brugger <mbrugger@suse.com>,
+  Peter Robinson <pbrobinson@gmail.com>, Tom Rini <trini@konsulko.com>,
+	=?utf-8?q?Filip_Kokosi=C5=84ski?= <filip.kokosinski@gmail.com>,
+  Ilias Apalodimas <ilias.apalodimas@linaro.org>,
+  Gregor Herburger <gregor.herburger@linutronix.de>
+X-Developer-Signature: v=1; a=ed25519-sha256; t=1794909594; l=2068;
+ i=gregor.herburger@linutronix.de; s=20260226; h=from:subject:message-id;
+ bh=TLV9C6neprJnZcXnK9YYoU52ziIohQRBaAaA79J03iw=;
+ b=cf8orMz5ILF80XVr/HWLWPYMoIy73JNPgkl62g1Magi+nCQw+1PkylJMURvxULbTuo3s27vL2
+ qWPN6pueVjkDIBJhzOoWYrTGXMHmZZkMGz2IlqS4/t5MOWGn3LYZPLv
+X-Developer-Key: i=gregor.herburger@linutronix.de; a=ed25519;
+ pk=u72Lv7+/lS5CC1hmSrb17lv/6CK7HBh4Lvz77PHA5LM=
+X-BeenThere: u-boot@lists.u-boot-project.org
+X-Mailman-Version: 2.1.30
+Precedence: list
+List-Id: U-Boot discussion <u-boot.lists.u-boot-project.org>
+List-Unsubscribe: <https://lists.u-boot-project.org/mailman/options/u-boot>,
+ <mailto:u-boot-request@lists.u-boot-project.org?subject=unsubscribe>
+List-Archive: <http://lists.u-boot-project.org/pipermail/u-boot/>
+List-Post: <mailto:u-boot@lists.u-boot-project.org>
+List-Help: <mailto:u-boot-request@lists.u-boot-project.org?subject=help>
+List-Subscribe: <https://lists.u-boot-project.org/mailman/listinfo/u-boot>,
+ <mailto:u-boot-request@lists.u-boot-project.org?subject=subscribe>
+Errors-To: u-boot-bounces@lists.u-boot-project.org
+
+The Raspberry Pi has the "tryboot" feature where it can boot from a
+different partition enabling failsafe A/B updates. After boot the
+firmware adds some properties in /chosen/bootloader, e.g. partition.
+
+Copy the complete /chosen/bootloader node with all its properties to the
+OS device tree.
+
+Signed-off-by: Gregor Herburger <gregor.herburger@linutronix.de>
+Tested-by: Peter Robinson <pbrobinson@gmail.com>
+---
+ board/raspberrypi/rpi/rpi.c | 36 ++++++++++++++++++++++++++++++++++++
+ 1 file changed, 36 insertions(+)
+
+diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
+index 8354fec833cc..ba8a2c1ba4cf 100644
+--- a/board/raspberrypi/rpi/rpi.c
++++ b/board/raspberrypi/rpi/rpi.c
+@@ -594,6 +594,39 @@ int board_fdt_blob_setup(void **fdtp)
  	return 0;
  }
  
@@ -244,7 +441,7 @@ index 1da5df92351c..ba8a2c1ba4cf 100644
  int copy_property(void *dst, void *src, char *path, char *property)
  {
  	int dst_offset, src_offset;
-@@ -641,6 +689,9 @@ void  update_fdt_from_fw(void *fdt, void *fw_fdt)
+@@ -656,6 +689,9 @@ void  update_fdt_from_fw(void *fdt, void *fw_fdt)
  
  	/* copy uart clk as provided by the firmware */
  	copy_property(fdt, fw_fdt, "/clocks/clk-uart", "clock-frequency");

diff --git a/uboot-tools.spec b/uboot-tools.spec
index 346ea9d..e5ff5d7 100644
--- a/uboot-tools.spec
+++ b/uboot-tools.spec
@@ -10,7 +10,7 @@
 
 Name:     uboot-tools
 Version:  2027.01
-Release:  0.1%{?candidate:.%{candidate}}%{?dist}
+Release:  0.2%{?candidate:.%{candidate}}%{?dist}
 Epoch:    1
 Summary:  U-Boot utilities
 # Automatically converted from old format: GPLv2+ BSD LGPL-2.1+ LGPL-2.0+ - review is highly recommended.
@@ -48,7 +48,7 @@ Patch15:  JetsonTX2-Fix-upstream-device-tree-naming.patch
 # Fix AllWinner
 Patch16:  Allwinner-fix-booting-on-a-number-of-devices.patch
 # RPi
-Patch20:  Fix-NVMe-not-only-on-Raspberry-Pi-5.patch
+Patch20:  fix-NVMe-on-Raspberry-Pi.patch
 Patch21:  raspberrypi-Add-quirk-for-RPi5-2Gb-rev-1.0.patch
 Patch22:  rpi-copy-chosen-bootloader-partition-and-set-boot_partition.patch
 
@@ -316,6 +316,9 @@ install -p -m 0755 builds/tools/env/fw_printenv %{buildroot}%{_bindir}
 %endif
 
 %changelog
+* Fri Nov 20 2026 Peter Robinson <pbrobinson@fedoraproject.org> - 1:2027.01-0.2.rc2
+- Update patches for RPi5 NVME boot, DTB loading
+
 * Tue Nov 17 2026 Peter Robinson <pbrobinson@fedoraproject.org> - 1:2027.01-0.1.rc2
 - Update to 2027.01 RC2
 

diff --git a/uefi-initial-find_fdt_location-for-finding-the-DT-on-disk.patch b/uefi-initial-find_fdt_location-for-finding-the-DT-on-disk.patch
index ac58bad..f94eff5 100644
--- a/uefi-initial-find_fdt_location-for-finding-the-DT-on-disk.patch
+++ b/uefi-initial-find_fdt_location-for-finding-the-DT-on-disk.patch
@@ -1,190 +1,297 @@
-From 56a985cec8592a8de88e7f254df82f5d444a5ecc Mon Sep 17 00:00:00 2001
+From 3a640e8c364d37e5c8584237f18a5d911a7d1ffb Mon Sep 17 00:00:00 2001
 From: Peter Robinson <pbrobinson@gmail.com>
-Date: Thu, 28 May 2026 22:08:07 +0100
-Subject: [PATCH] initial find_fdt_location for finding the DT on disk
+Date: Fri, 20 Nov 2026 07:52:10 +0000
+Subject: [PATCH 1/4] efi_loader: efi_fdt: fix use-after-free in
+ efi_load_distro_fdt()
 
-The old distro boot looked for a DT on the first boot partition
-in the /dtb or /dtb/current directories, and Fedora extended this
-to look not just on the boot partition but all the partitions on
-that disk.
+The device path of the loaded device-tree is printed after it has been
+freed with efi_free_pool(). Print it before freeing it.
 
-The new ways of booting, both bootstd and bootefi bootmgr processes
-don't properly look for those options. This provides a function
-to search for the DTB on disk so that if the other DT mechanisms
-don't work this will look for one on disk to provide a working DT
-so that devices will continue to work as they did previously.
+Fixes: 5c1b5e6bc59a ("efi_loader: find distro device-path for media devices")
+Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
+---
+ lib/efi_loader/efi_fdt.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/lib/efi_loader/efi_fdt.c b/lib/efi_loader/efi_fdt.c
+index bfaa9cfc2..5aeff62e7 100644
+--- a/lib/efi_loader/efi_fdt.c
++++ b/lib/efi_loader/efi_fdt.c
+@@ -119,10 +119,10 @@ void efi_load_distro_fdt(efi_handle_t handle, void **fdt, efi_uintn_t *fdt_size)
+ 		if (!file)
+ 			break;
+ 		ret = efi_load_image_from_path(true, file, fdt, fdt_size);
+-		efi_free_pool(file);
+-		if (ret == EFI_SUCCESS) {
++		if (ret == EFI_SUCCESS)
+ 			log_debug("Fdt %pD loaded\n", file);
++		efi_free_pool(file);
++		if (ret == EFI_SUCCESS)
+ 			break;
+-		}
+ 	}
+ }
+-- 
+2.43.0
+
+From c50e674b18f34eff7c1dd97987d9d1fa34ec5ffe Mon Sep 17 00:00:00 2001
+From: Peter Robinson <pbrobinson@gmail.com>
+Date: Fri, 20 Nov 2026 07:52:10 +0000
+Subject: [PATCH 2/4] efi_loader: efi_fdt: factor out per-partition FDT search
+
+Move the loop that tries each distro device-tree name on a device path
+into its own helper, efi_load_fdt_from_dp(), so that it can be reused
+to search further partitions.
+
+No functional change.
+
+Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
+---
+ lib/efi_loader/efi_fdt.c | 52 +++++++++++++++++++++++++++-------------
+ 1 file changed, 35 insertions(+), 17 deletions(-)
+
+diff --git a/lib/efi_loader/efi_fdt.c b/lib/efi_loader/efi_fdt.c
+index 5aeff62e7..93ddeede3 100644
+--- a/lib/efi_loader/efi_fdt.c
++++ b/lib/efi_loader/efi_fdt.c
+@@ -78,6 +78,40 @@ int efi_get_distro_fdt_name(char *fname, int size, int seq)
+ 	return 0;
+ }
+ 
++/**
++ * efi_load_fdt_from_dp() - try the distro device-tree names on a partition
++ *
++ * @dp:		device path of a partition bearing a file system
++ * @fdt:	on return device-tree, must be freed via efi_free_pages()
++ * @fdt_size:	buffer size
++ * Return:	status code
++ */
++static efi_status_t efi_load_fdt_from_dp(struct efi_device_path *dp,
++					 void **fdt, efi_uintn_t *fdt_size)
++{
++	efi_status_t ret = EFI_NOT_FOUND;
++
++	/* Try the various available names */
++	for (int seq = 0; ; ++seq) {
++		struct efi_device_path *file;
++		char buf[255];
++
++		if (efi_get_distro_fdt_name(buf, sizeof(buf), seq))
++			break;
++		file = efi_dp_from_file(dp, buf);
++		if (!file)
++			break;
++		ret = efi_load_image_from_path(true, file, fdt, fdt_size);
++		if (ret == EFI_SUCCESS)
++			log_debug("Fdt %pD loaded\n", file);
++		efi_free_pool(file);
++		if (ret == EFI_SUCCESS)
++			break;
++	}
++
++	return ret;
++}
++
+ /**
+  * efi_load_distro_fdt() - load distro device-tree
+  *
+@@ -108,21 +142,5 @@ void efi_load_distro_fdt(efi_handle_t handle, void **fdt, efi_uintn_t *fdt_size)
+ 		return;
+ 	dp = handler->protocol_interface;
+ 
+-	/* Try the various available names */
+-	for (int seq = 0; ; ++seq) {
+-		struct efi_device_path *file;
+-		char buf[255];
+-
+-		if (efi_get_distro_fdt_name(buf, sizeof(buf), seq))
+-			break;
+-		file = efi_dp_from_file(dp, buf);
+-		if (!file)
+-			break;
+-		ret = efi_load_image_from_path(true, file, fdt, fdt_size);
+-		if (ret == EFI_SUCCESS)
+-			log_debug("Fdt %pD loaded\n", file);
+-		efi_free_pool(file);
+-		if (ret == EFI_SUCCESS)
+-			break;
+-	}
++	efi_load_fdt_from_dp(dp, fdt, fdt_size);
+ }
+-- 
+2.43.0
+
+From 5ce50eb4199505be22e4d61e7f88b71c28deef71 Mon Sep 17 00:00:00 2001
+From: Peter Robinson <pbrobinson@gmail.com>
+Date: Fri, 20 Nov 2026 07:20:34 +0000
+Subject: [PATCH 3/4] efi_loader: efi_fdt: optionally search the whole boot
+ disk for the FDT
+
+The old distro boot scripts looked for $fdtfile in /dtb or /dtb/current
+on the boot partition, and Fedora extended this to all partitions on
+that disk, as it installs the device-trees on the /boot partition
+rather than the ESP.
+
+The EFI boot manager only searches the partition the EFI binary was
+loaded from, so on such systems it falls back to the control FDT.
+
+Add CONFIG_EFI_FDT_SEARCH_DISK which, when the distro FDT is not found
+on the boot partition, tries the other partitions on the same disk that
+expose a file system. The disk's partitions are already enumerated as
+UCLASS_PARTITION devices with EFI handles, so walk those rather than
+probing partition numbers blindly, and limit the search to the boot
+disk so a stray DTB on another device is never picked up.
 
 Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
 ---
- cmd/bootmenu.c              |   5 ++
- include/efi_loader.h        |   2 +
- lib/efi_loader/efi_helper.c | 106 +++++++++++++++++++++++++++++++++++-
- 3 files changed, 112 insertions(+), 1 deletion(-)
-
-diff --git a/cmd/bootmenu.c b/cmd/bootmenu.c
-index 528afd221d0..a10ea35a687 100644
---- a/cmd/bootmenu.c
-+++ b/cmd/bootmenu.c
-@@ -502,6 +502,11 @@ static void handle_uefi_bootnext(void)
- 	u16 bootnext;
- 	efi_status_t ret;
- 	efi_uintn_t size;
-+	const char *fdt_opt;
+ lib/efi_loader/Kconfig   | 12 +++++++++
+ lib/efi_loader/efi_fdt.c | 58 +++++++++++++++++++++++++++++++++++++++-
+ 2 files changed, 69 insertions(+), 1 deletion(-)
+
+diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
+index c4b0c2137..b41e8af33 100644
+--- a/lib/efi_loader/Kconfig
++++ b/lib/efi_loader/Kconfig
+@@ -607,6 +607,18 @@ config EFI_BOOTMGR
+ 	  via UEFI variables Boot####, BootOrder, and BootNext. You should also
+ 	  normally enable CMD_BOOTEFI_BOOTMGR so that the command is available.
+ 
++config EFI_FDT_SEARCH_DISK
++	bool "Search all partitions of the boot disk for the device-tree"
++	depends on EFI_BOOTMGR && OF_LIBFDT
++	help
++	  When the UEFI boot manager looks for a distro device-tree
++	  ($fdtfile under /dtb, /, /dtb/current or /dtbs) and it is not on
++	  the partition the EFI binary was loaded from (normally the ESP),
++	  also search the other partitions of the same disk, in order.
++
++	  This matches distributions such as Fedora which install the
++	  device-trees on the /boot partition.
 +
-+	/* Find the DTB on disk */
-+	log_debug("We will load the DTB\n");
-+	fdt_opt = find_fdt_location();
+ config EFI_HTTP_BOOT
+ 	bool "EFI HTTP Boot support"
+ 	depends on NET
+diff --git a/lib/efi_loader/efi_fdt.c b/lib/efi_loader/efi_fdt.c
+index 93ddeede3..980ff15bf 100644
+--- a/lib/efi_loader/efi_fdt.c
++++ b/lib/efi_loader/efi_fdt.c
+@@ -8,6 +8,8 @@
  
- 	/* Initialize EFI drivers */
- 	ret = efi_init_obj_list();
-diff --git a/include/efi_loader.h b/include/efi_loader.h
-index 3a4d502631c..b11f8a2cb42 100644
---- a/include/efi_loader.h
-+++ b/include/efi_loader.h
-@@ -574,6 +574,8 @@ struct efi_register_notify_event {
- 	struct list_head handles;
- };
+ #define LOG_CATEGORY LOGC_EFI
  
-+/* Find the FDT on any partition */
-+char *find_fdt_location(void);
- /* called at pre-initialization */
- int efi_init_early(void);
- /* Initialize efi execution environment */
-diff --git a/lib/efi_loader/efi_helper.c b/lib/efi_loader/efi_helper.c
-index 44b806aadc4..61e982091b9 100644
---- a/lib/efi_loader/efi_helper.c
-+++ b/lib/efi_loader/efi_helper.c
-@@ -15,6 +15,7 @@
- #include <mapmem.h>
- #include <dm.h>
- #include <fs.h>
-+#include <part.h>
- #include <efi.h>
- #include <efi_api.h>
- #include <efi_load_initrd.h>
-@@ -98,6 +99,99 @@ int efi_get_pxe_arch(void)
- 	return -EINVAL;
++#include <dm/device.h>
++#include <dm/tag.h>
+ #include <efi_device_path.h>
+ #include <efi_loader.h>
+ #include <env.h>
+@@ -112,9 +114,61 @@ static efi_status_t efi_load_fdt_from_dp(struct efi_device_path *dp,
+ 	return ret;
  }
  
-+/* We need to pass a blk device in and return a location, or a loaded DT */
-+char *find_fdt_location(void)
++/**
++ * efi_load_fdt_from_disk() - search the other partitions of the boot disk
++ *
++ * Some distributions, e.g. Fedora, ship the device-trees on the /boot
++ * partition rather than on the ESP. Try each other partition on the
++ * same disk as @boot_part that exposes a file system, in partition order.
++ *
++ * @boot_part:	handle of the partition the image was loaded from
++ * @fdt:	on return device-tree, must be freed via efi_free_pages()
++ * @fdt_size:	buffer size
++ * Return:	status code
++ */
++static efi_status_t efi_load_fdt_from_disk(efi_handle_t boot_part,
++					   void **fdt, efi_uintn_t *fdt_size)
 +{
-+	const char *fdt_filename;
-+	/* FIXME: dynamic size */
-+	char fdt_fullpath[60];
-+	const char *prefix;
-+	struct udevice *blk;
-+	/* FIXME: Fedora really only cares about first 2*/
-+	int MAX_PART = 8;
-+	int part;
-+	struct disk_partition info;
-+	int fdtext;
-+	int ret;
-+	int retfdt;
-+	int retload;
-+	loff_t fdtsize;
-+	ulong pbraddr;
-+	loff_t len_read;
++	struct udevice *dev = boot_part->dev;
++	struct udevice *child;
++
++	if (!dev || device_get_uclass_id(dev) != UCLASS_PARTITION)
++		return EFI_NOT_FOUND;
 +
-+	/* step one logic: we have the DT name we're hunting for */
-+	fdt_filename = env_get("fdtfile");
-+	if (fdt_filename) {
-+		log_debug("FFL: We're looking for the DTB now!: %s\n", fdt_filename);
++	device_foreach_child(child, dev_get_parent(dev)) {
++		struct efi_handler *handler;
++		efi_handle_t part;
 +
-+		/* probe all block disks to search for fdt */
-+		uclass_foreach_dev_probe(UCLASS_BLK, blk) {
-+			log_debug("FFL: dev name: %s\n", blk->name);
-+			struct blk_desc *desc;
-+			desc = dev_get_uclass_plat(blk);
-+			/* we should get a partition count here for looping */
-+			/* For loop for each partition */
-+			/* Need to also deal with zero part whole disk - part_get_info_whole_disk */
-+			for (part = 1; part <= MAX_PART; part++) {
-+				log_debug("FFL: part num: %d\n", part);
-+				ret = part_get_info(desc, part, &info);
-+				/* if we have partition check it for DT */
-+				if (ret < 0) {
-+					log_debug("FFL: no partition\n");
-+				} else {
-+					log_debug("FFL: we have a partition\n");
-+					/* we should have a case/for prefix in =/ /dtb/ /dtb/current/ */
-+					/* but for now we hard code if for Fedora */
-+					prefix = "/dtb";
-+					snprintf(fdt_fullpath, sizeof(fdt_fullpath), "%s/%s", prefix, fdt_filename);
-+					log_debug("FFL: full name: %s\n", fdt_fullpath);
-+					/* search for DT on partition and either find and exit or continue */
-+					if (fs_set_blk_dev_with_part(desc, part) == 0){
-+						log_debug("FFL: set block part pass\n");
-+						fdtext = fs_exists(fdt_fullpath);
-+						if (fdtext) {
-+							/* we have a fdt!*/
-+							if (fs_set_blk_dev_with_part(desc, part) == 0){
-+								retfdt = fs_size(fdt_fullpath, &fdtsize);
-+								if (retfdt == 0) {
-+									log_debug("FFL: we have found a DT on disk, size %lld\n", fdtsize);
-+									/* Get the main fdt and map it */
-+									const char *fdt_pbr;
-+									fdt_pbr = env_get("fdt_addr_r");
-+									pbraddr = hextoul(fdt_pbr, NULL);
-+									log_debug("FFL: fdr addr: %s\n", fdt_pbr);
-+									if (fs_set_blk_dev_with_part(desc, part) == 0){
-+										retload = fs_read(fdt_fullpath, pbraddr, 0, fdtsize, &len_read);
-+										if (retload == 0) {
-+											log_debug("FFL: we have a loaded DT, size %lld we can return\n", fdtsize);
-+											log_info("Found DTB: %s\n", fdt_filename);
-+											return fdt_pbr;
-+										} else {
-+											log_debug("FFL: DT load failed\n");
-+										}
-+									}
-+								} else {
-+									log_debug("FFL: we DON'T have a DT with size\n");
-+								}
-+							}
-+						} else {
-+							/* we don't have a fdt!*/
-+							log_debug("FFL: we DON'T have a DT\n");
-+						}
-+					} else {
-+						log_debug("FFL: set block part FAIL\n");
-+					}
-+				}
-+			}
++		if (child == dev ||
++		    device_get_uclass_id(child) != UCLASS_PARTITION)
++			continue;
++		if (dev_tag_get_ptr(child, DM_TAG_EFI, (void **)&part))
++			continue;
++		/* Skip partitions without a file system we can read */
++		if (efi_search_protocol(part,
++					&efi_simple_file_system_protocol_guid,
++					&handler) != EFI_SUCCESS)
++			continue;
++		if (efi_search_protocol(part, &efi_guid_device_path,
++					&handler) != EFI_SUCCESS)
++			continue;
++		if (efi_load_fdt_from_dp(handler->protocol_interface, fdt,
++					 fdt_size) == EFI_SUCCESS) {
++			log_info("Loaded device-tree from %s\n", child->name);
++			return EFI_SUCCESS;
 +		}
-+        } else {
-+		log_debug("FFL: fdt_filename not defined!!\n");
 +	}
 +
-+	/* We didn't find a FDT */
-+	return NULL;
++	return EFI_NOT_FOUND;
 +}
 +
  /**
-  * efi_create_current_boot_var() - Return Boot#### name were #### is replaced by
-  *			           the value of BootCurrent
-@@ -558,11 +652,21 @@ efi_status_t efi_install_fdt(void *fdt)
- 		const char *fdt_opt;
- 		uintptr_t fdt_addr;
+  * efi_load_distro_fdt() - load distro device-tree
+  *
++ * Search the partition the image was loaded from and, if
++ * CONFIG_EFI_FDT_SEARCH_DISK is enabled, the other partitions on the
++ * same disk.
++ *
+  * @handle:	handle of loaded image
+  * @fdt:	on return device-tree, must be freed via efi_free_pages()
+  * @fdt_size:	buffer size
+@@ -142,5 +196,7 @@ void efi_load_distro_fdt(efi_handle_t handle, void **fdt, efi_uintn_t *fdt_size)
+ 		return;
+ 	dp = handler->protocol_interface;
  
-+		/* Check if there is device tree loaded from disk */
-+		fdt_opt = find_fdt_location();
-+		if (fdt_opt)
-+			log_info("Found DTB on disk\n");
-+
- 		/* Check if there is a hardware device tree */
--		fdt_opt = env_get("fdt_addr");
-+		if (!fdt_opt) {
-+			fdt_opt = env_get("fdt_addr");
-+			if (fdt_opt)
-+				log_info("Found DTB: Prior firmware\n");
+-	efi_load_fdt_from_dp(dp, fdt, fdt_size);
++	ret = efi_load_fdt_from_dp(dp, fdt, fdt_size);
++	if (ret != EFI_SUCCESS && IS_ENABLED(CONFIG_EFI_FDT_SEARCH_DISK))
++		efi_load_fdt_from_disk(device, fdt, fdt_size);
+ }
+-- 
+2.43.0
+
+From 8791333e699423062f6d564928b6abcb459158ba Mon Sep 17 00:00:00 2001
+From: Peter Robinson <pbrobinson@gmail.com>
+Date: Fri, 20 Nov 2026 10:52:57 +0000
+Subject: [PATCH 4/4] efi_loader: efi_fdt: print the name of the loaded
+ device-tree
+
+When the EFI boot manager loads a distro device-tree only a debug
+message is printed, so it is not obvious to the user which file, if
+any, has been picked up.
+
+Print the file name at info level, as was done by the previous distro
+boot scripts.
+
+Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
+---
+ lib/efi_loader/efi_fdt.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/lib/efi_loader/efi_fdt.c b/lib/efi_loader/efi_fdt.c
+index 980ff15bf..32b7064f0 100644
+--- a/lib/efi_loader/efi_fdt.c
++++ b/lib/efi_loader/efi_fdt.c
+@@ -104,8 +104,10 @@ static efi_status_t efi_load_fdt_from_dp(struct efi_device_path *dp,
+ 		if (!file)
+ 			break;
+ 		ret = efi_load_image_from_path(true, file, fdt, fdt_size);
+-		if (ret == EFI_SUCCESS)
++		if (ret == EFI_SUCCESS) {
++			log_info("Found DTB: %s\n", buf);
+ 			log_debug("Fdt %pD loaded\n", file);
 +		}
- 		/* Use our own device tree as fallback */
- 		if (!fdt_opt) {
- 			fdt_opt = env_get("fdtcontroladdr");
-+			log_info("Using DT from U-Boot\n");
- 			if (!fdt_opt) {
- 				log_err("need device tree\n");
- 				return EFI_NOT_FOUND;
+ 		efi_free_pool(file);
+ 		if (ret == EFI_SUCCESS)
+ 			break;
 -- 
-2.54.0
+2.43.0
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-20 11:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 11:04 [rpms/uboot-tools] rawhide: Update patches for RPi5 NVME boot, DTB loading Peter Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox