From: Roland Hieber <rhi@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [DistroKit] [PATCH 03/16] v7a: barebox: boot from bootsource
Date: Mon, 16 Jun 2025 18:22:10 +0200 [thread overview]
Message-ID: <20250616162223.2089237-3-rhi@pengutronix.de> (raw)
In-Reply-To: <20250616162223.2089237-1-rhi@pengutronix.de>
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 <rhi@pengutronix.de>
---
PATCH v2:
* remove spaces in front of bootchooser boot variables
PATCH v1: https://lore.distrokit.org/distrokit/20250526101147.1953428-3-rhi@pengutronix.de
---
.../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..ad2855a34ee3 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..c94742967a07 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
next prev parent reply other threads:[~2025-06-16 16:22 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-16 16:22 [DistroKit] [PATCH 01/16] platforms: images: use descriptive partition-type-uuids Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 02/16] v7a: barebox: version bump 2025.03.0 -> 2025.05.0 Roland Hieber
2025-06-16 16:22 ` Roland Hieber [this message]
2025-06-16 16:22 ` [DistroKit] [PATCH 04/16] v7a: image-stm32mp*: use new partition-table-type option Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 05/16] v7a: stm32mp: switch to upstream barebox recipe Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 06/16] v7a: stm32mp: populate default environment in barebox partition Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 07/16] v7a: mx6: switch to upstream barebox recipe Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 08/16] v7a: vexpress: " Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 09/16] v7a: rpi: " Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 10/16] v7a: rpi: remove "2" from recipe names Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 11/16] v7a: barebox: enable HWRNG drivers and allow fallback to PRNG Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 12/16] v7a: remove outdated support for afi-gf board Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 13/16] v7a: update fastboot documentation Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 14/16] v7a: barebox: build images for i.MX6ULL EVK Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 15/16] v7a: kernel: enable i.MX6ULL support Roland Hieber
2025-06-16 16:22 ` [DistroKit] [PATCH 16/16] v7a: platformconfig: enable i.MX6ULL EVK device tree Roland Hieber
2025-06-16 16:27 ` [DistroKit] [PATCH v2 01/16] platforms: images: use descriptive partition-type-uuids Roland Hieber
2025-06-16 17:35 ` [DistroKit] [PATCH " Robert Schwebel
2025-06-17 10:16 ` Roland Hieber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250616162223.2089237-3-rhi@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=distrokit@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox