summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2025-11-19 18:43:53 +0100
committerTom Rini <[email protected]>2025-12-27 09:40:35 -0600
commit9235da9446e5e896a06e1555251d11717277a893 (patch)
tree188f067ee58f02dacd81bfe95ae65d3a984956ee /boot
parent48e56ac26dd925984d599ce06cb769dabb1251d6 (diff)
boot: Warn users about fdt_high=~0 usage
In case the 'fdt_high' environment variable is set to ~0, warn users about the dangers of the fdt_high usage. This will hopefully lead to removal of most of the fdt_high ~0 usage over time. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Tom Rini <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'boot')
-rw-r--r--boot/image-fdt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/boot/image-fdt.c b/boot/image-fdt.c
index 3f0ac54f76f..a3a4fb8b558 100644
--- a/boot/image-fdt.c
+++ b/boot/image-fdt.c
@@ -189,6 +189,12 @@ int boot_relocate_fdt(char **of_flat_tree, ulong *of_size)
/* All ones means use fdt in place */
of_start = fdt_blob;
addr = map_to_sysmem(fdt_blob);
+ printf("WARNING:\n"
+ "The 'fdt_high' environment variable is set to ~0. This is known to cause\n"
+ "boot failures due to placement of DT at non-8-byte-aligned addresses.\n"
+ "This system will likely fail to boot. Unset the 'fdt_high' environment\n"
+ "variable and submit a fix upstream.\n");
+
err = lmb_alloc_mem(LMB_MEM_ALLOC_ADDR, 0, &addr,
of_len, LMB_NONE);
if (err) {