From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 26 May 2025 12:11:54 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uJUoE-000U9e-2Q for lore@lore.pengutronix.de; Mon, 26 May 2025 12:11:54 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1uJUoE-000394-1w; Mon, 26 May 2025 12:11:54 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uJUoA-00032s-Vz; Mon, 26 May 2025 12:11:51 +0200 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uJUoA-000ERT-23; Mon, 26 May 2025 12:11:50 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uJUoA-008CCa-1r; Mon, 26 May 2025 12:11:50 +0200 From: Roland Hieber To: distrokit@pengutronix.de Date: Mon, 26 May 2025 12:11:39 +0200 Message-Id: <20250526101147.1953428-3-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250526101147.1953428-1-rhi@pengutronix.de> References: <20250526101147.1953428-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 03/11] v7a: barebox: boot from bootsource X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Roland Hieber Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Barebox 2025.05.0 with CONFIG_BOOT_DEFAULTS (which we implicitly enabled in the last commit) can resolve the boot target "bootsource" to the device from which the board was initially booted, if this is supported by the platform code (see barebox commit 6d91022db295 "common: bootdef: add new boot entry provider" for more info). This way we won't have to hard-code "mmc0", "mmc2", or "disk0" as the boot target for different platforms. Link: https://git.pengutronix.de/cgit/barebox/commit/?id=6d91022db29555c175e9 Signed-off-by: Roland Hieber --- .../platform-v7a/barebox-defaultenv/nv/bootchooser.system0.boot | 2 +- .../platform-v7a/barebox-defaultenv/nv/bootchooser.system1.boot | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system0.boot b/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system0.boot index c0c541c8b2a3..5ec387df9ea0 100644 --- a/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system0.boot +++ b/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system0.boot @@ -1 +1 @@ -mmc0.root-A + bootsource.root-A diff --git a/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system1.boot b/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system1.boot index 1d40e339c2fe..cea618acf89a 100644 --- a/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system1.boot +++ b/configs/platform-v7a/barebox-defaultenv/nv/bootchooser.system1.boot @@ -1 +1 @@ -mmc0.root-B + bootsource.root-B -- 2.39.5