From: "H. Nikolaus Schaller" <hns@goldelico.com>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Paul Cercueil <paul@crapouillou.net>,
Paul Burton <paulburton@kernel.org>,
"Maciej W. Rozycki" <macro@orcam.me.uk>,
"H. Nikolaus Schaller" <hns@goldelico.com>,
Pengpeng Hou <pengpeng@iscas.ac.cn>,
"Christophe Leroy, David Heidelberg" <david@ixit.cz>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Takashi Iwai <tiwai@suse.de>,
Janusz Krzysztofik <jmkrzyszt@gmail.com>, å¨ç°æ°,
Paul Boddie <paul@boddie.org.uk>,
Olivier Louvignes <olivier@mgcrea.io>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
letux-kernel@openphoenux.org
Subject: [PATCH v2 1/9] MIPS: Kconfig: Allow user selection of BUILTIN_DTB with description
Date: Thu, 12 Nov 2026 09:10:23 +0100 [thread overview]
Message-ID: <873ebe259b8534fdb3a6f8a926cd16d1aafec74b.1794471031.git.hns@goldelico.com> (raw)
In-Reply-To: <cover.1794471031.git.hns@goldelico.com>
Make CONFIG_BUILTIN_DTB visible in Kconfig by adding a prompt and a
detailed help text.
Previously, BUILTIN_DTB was a silent option forcefully selected by
certain machine types (such as MACH_INGENIC) whenever appended DTB
support was disabled. This prevented modern setups from turning off the
built-in DTB fallback when the bootloader is fully capable of passing a
dynamic DTB.
By adding a prompt, users can now explicitly toggle this behavior. The
added help text clarifies the distinction between MIPS_NO_APPENDED_DTB
(which controls image appending) and BUILTIN_DTB (which controls the
compiled-in fallback data and code path via get_fdt()), as well as its
relationship to BUILTIN_DTB_NAME.
Suggested-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
Notes:
Help text and commit message generated by public Google AI.
arch/mips/Kconfig | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index dac3ec5120a34..92bca520cd5ae 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2924,7 +2924,29 @@ config UHI_BOOT
bool
config BUILTIN_DTB
- bool
+ bool "Enable builtin DTB fallback support"
+ depends on USE_OF
+ help
+ Compiles a Device Tree Blob (DTB) directly into the kernel image
+ and enables the kernel to use it as a fallback during boot.
+
+ This option:
+ a) Links the DTB specified by BUILTIN_DTB_NAME into the
+ kernel binary.
+ b) Instructs the boot code (get_fdt()) to return this internal
+ DTB if no dynamic DTB from the bootloader or appended DTB
+ image data is detected.
+
+ Note on MIPS boot strategy:
+ MIPS kernels check for a DTB in the following order inside get_fdt():
+ 1. An appended DTB image (if CONFIG_MIPS_*_APPENDED_DTB is set).
+ 2. The built-in DTB fallback controlled by this option.
+
+ If your bootloader provides a valid DTB dynamically and you do not
+ rely on appended or built-in DTBs, you should enable
+ MIPS_NO_APPENDED_DTB and disable BUILTIN_DTB.
+
+ If unsure, say Y.
choice
prompt "Kernel appended dtb support"
--
2.56.0
next prev parent reply other threads:[~2026-11-12 8:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 8:10 [PATCH v2 0/9] MIPS: Ingenic: Add XBurst / XBurst II infrastructure and improve overall Ingenic SoC support H. Nikolaus Schaller
2026-11-12 8:10 ` H. Nikolaus Schaller [this message]
2026-11-12 8:10 ` [PATCH v2 2/9] MIPS: Ingenic: Configure CONFIG_BUILTIN_DTB=y for Ingenic based devices H. Nikolaus Schaller
2026-11-12 8:10 ` [PATCH v2 3/9] MIPS: Ingenic: Do not force BUILTIN_DTB in Kconfig H. Nikolaus Schaller
2026-11-12 8:10 ` [PATCH v2 4/9] MIPS: Ingenic: Add a new CPU_XBURST2 type H. Nikolaus Schaller
2026-11-12 8:10 ` [PATCH v2 5/9] MIPS: Ingenic: Update Ingenic XBurst implementation IDs H. Nikolaus Schaller
2026-11-12 8:10 ` [PATCH v2 6/9] MIPS: generic: Add MACH_INGENIC type and compatible for X1600 and X2600 H. Nikolaus Schaller
2026-11-12 8:10 ` [PATCH v2 7/9] MIPS: Ingenic: Expand Kconfig for X1600, X2000, and X2600 SoCs H. Nikolaus Schaller
2026-11-12 8:10 ` [PATCH v2 8/9] MIPS: Ingenic: Expand Kconfig by MACH_JZ4730 H. Nikolaus Schaller
2026-11-12 8:10 ` [PATCH v2 9/9] MIPS: Ingenic: Add Platform makefile and load addresses for X1600, X2000, X2600 H. Nikolaus Schaller
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=873ebe259b8534fdb3a6f8a926cd16d1aafec74b.1794471031.git.hns@goldelico.com \
--to=hns@goldelico.com \
--cc=david@ixit.cz \
--cc=gregkh@linuxfoundation.org \
--cc=jmkrzyszt@gmail.com \
--cc=letux-kernel@openphoenux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=macro@orcam.me.uk \
--cc=olivier@mgcrea.io \
--cc=paul@boddie.org.uk \
--cc=paul@crapouillou.net \
--cc=paulburton@kernel.org \
--cc=pengpeng@iscas.ac.cn \
--cc=tiwai@suse.de \
--cc=tsbogend@alpha.franken.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
all inboxes | Powered by JetHome®