From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH 6/8] barebox: enable oftree fallback
Date: Wed, 21 Jan 2026 09:06:59 +0100 [thread overview]
Message-ID: <20260121080813.4099332-7-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20260121080813.4099332-1-a.fatoum@pengutronix.de>
Our bootloader spec files all list a devicetree, so enabling this
option won't change behavior for us, but is occasionally useful for
quick debugging, which is a primary use case for DistroKit.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
configs/bsp.ref | 17 +++++++++++++++++
configs/platform-v7a/barebox.config | 2 +-
configs/platform-v8a/barebox.config | 2 +-
3 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/configs/bsp.ref b/configs/bsp.ref
index 7138cbccc0aa..86a2bdebe75a 100644
--- a/configs/bsp.ref
+++ b/configs/bsp.ref
@@ -39,6 +39,23 @@ kernel_initrd:
value: True
- value: False
+barebox_oftree_fallback:
+ description: |
+ barebox will substitute its own device tree when no kernel device
+ tree was supplied. This is useful for development, but not recommended
+ for use in production as DT binding breakage is not an infrequent
+ occurrence.
+
+ We take in DistroKit though to specify the DT when we specify a kernel,
+ so enable this option as it's occasionally helpful for quick debugging.
+ variants:
+ - condition: |
+ kconfig.have_barebox_config() and
+ (kconfig.BareboxConfig()['CONFIG_NAME'] == "multi_v7_defconfig" or
+ kconfig.BareboxConfig()['CONFIG_NAME'] == "multi_v8_defconfig")
+ value: False
+ - value: True
+
barebox_arm_optimized_string_functions:
description: |
The use of assembler optimized memcpy / memset functions improves
diff --git a/configs/platform-v7a/barebox.config b/configs/platform-v7a/barebox.config
index 9a1e6aa1383e..a303bb0c1005 100644
--- a/configs/platform-v7a/barebox.config
+++ b/configs/platform-v7a/barebox.config
@@ -353,7 +353,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
CONFIG_BOOTM_VERBOSE=y
CONFIG_BOOTM_INITRD=y
CONFIG_BOOTM_OFTREE=y
-# CONFIG_BOOTM_OFTREE_FALLBACK is not set
+CONFIG_BOOTM_OFTREE_FALLBACK=y
CONFIG_BOOTM_UIMAGE=y
CONFIG_BOOTM_OFTREE_UIMAGE=y
# CONFIG_BOOTM_AIMAGE is not set
diff --git a/configs/platform-v8a/barebox.config b/configs/platform-v8a/barebox.config
index efe1d73c6dc7..d2fd4e9cf814 100644
--- a/configs/platform-v8a/barebox.config
+++ b/configs/platform-v8a/barebox.config
@@ -275,7 +275,7 @@ CONFIG_BOOTM_SHOW_TYPE=y
CONFIG_BOOTM_VERBOSE=y
CONFIG_BOOTM_INITRD=y
CONFIG_BOOTM_OFTREE=y
-# CONFIG_BOOTM_OFTREE_FALLBACK is not set
+CONFIG_BOOTM_OFTREE_FALLBACK=y
CONFIG_BOOTM_UIMAGE=y
CONFIG_BOOTM_OFTREE_UIMAGE=y
# CONFIG_BOOTM_AIMAGE is not set
--
2.47.3
next prev parent reply other threads:[~2026-01-21 8:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-21 8:06 [DistroKit] [PATCH 0/8] barebox: update to v2026.01.0 and extend config Ahmad Fatoum
2026-01-21 8:06 ` [DistroKit] [PATCH 1/8] barebox: set CONFIG_NAME across all platforms Ahmad Fatoum
2026-01-21 8:06 ` [DistroKit] [PATCH 2/8] barebox: update barebox v2025.11.0 -> v2026.01.0 Ahmad Fatoum
2026-01-21 8:06 ` [DistroKit] [PATCH 3/8] barebox: enable some useful interactive tools Ahmad Fatoum
2026-01-21 8:06 ` [DistroKit] [PATCH 4/8] v8a: barebox: enable Rockchip power domain driver Ahmad Fatoum
2026-01-21 8:06 ` [DistroKit] [PATCH 5/8] barebox: enable bootloader dm-verity support Ahmad Fatoum
2026-01-21 8:06 ` Ahmad Fatoum [this message]
2026-01-21 8:07 ` [DistroKit] [PATCH 7/8] barebox: r5: disable CONFIG_DEBUG_PROBES Ahmad Fatoum
2026-01-21 8:07 ` [DistroKit] [PATCH 8/8] v8a: barebox: patch in support for BeaglePlay RTL8211F-VD Ethernet PHY Ahmad Fatoum
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=20260121080813.4099332-7-a.fatoum@pengutronix.de \
--to=a.fatoum@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