Skip to contentSkip to conversation

adi: Stop disabling device tree relocation

PATCH In review Tom Rini 2 participants 3 messages Nov 18, 2025 – Dec 4, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 adi: Stop disabling device tree relocation

Remove setting of fdt_high to ~0, which disables device tree relocation, from the default environment. Doing so prevents U-Boot from correcting problems such as having an unaligned device tree and leads to various failure modes in the OS.

---
If there is some window of memory that must be used for where the device tree is relocated to, bootm_low + bootm_size (or often just bootm_size) or bootm_mapsize are the correct way do this. Please see doc/usage/environment.rst for more details.

Cc Nathan Barrett-Morrison <[email protected]>
Cc Greg Malysa <[email protected]>
Cc Ian Roberts <[email protected]>
Cc Vasileios Bimpikas <[email protected]>
Cc Utsav Agarwal <[email protected]>
Cc Arturs Artamonovs <[email protected]>
---
 include/env/adi/adi_boot.env | 2 --
 1 file changed, 2 deletions(-)
include/env/adi/adi_boot.env +0 -2
index d56b14f51726..e266c89b110f 100644
@@ -20,10 +20,8 @@ ethaddr=02:80:ad:20:31:e8
 eth1addr=02:80:ad:20:31:e9
 uart_console=CONFIG_UART_CONSOLE
 #ifdef CONFIG_SC59X_64
-fdt_high=0xffffffffffffffff
 initrd_high=0xffffffffffffffff
 #else
-fdt_high=0xffffffff
 initrd_high=0xffffffff
 #endif
 
Signature · 1 line
2.43.0
Tested-by on v1 1/1
#1 lore raw
Quoted 40 lines · Tom Rini

Remove setting of fdt_high to ~0, which disables device tree relocation, from the default environment. Doing so prevents U-Boot from correcting problems such as having an unaligned device tree and leads to various failure modes in the OS.

---
If there is some window of memory that must be used for where the device tree is relocated to, bootm_low + bootm_size (or often just bootm_size) or bootm_mapsize are the correct way do this. Please see doc/usage/environment.rst for more details.

Cc Nathan Barrett-Morrison <[email protected]>
Cc Greg Malysa <[email protected]>
Cc Ian Roberts <[email protected]>
Cc Vasileios Bimpikas <[email protected]>
Cc Utsav Agarwal <[email protected]>
Cc Arturs Artamonovs <[email protected]>
---
 include/env/adi/adi_boot.env | 2 --
 1 file changed, 2 deletions(-)
include/env/adi/adi_boot.env +0 -3
index d56b14f51726..e266c89b110f 100644
@@ -20,10 +20,8 @@ ethaddr=02:80:ad:20:31:e8
 eth1addr=02:80:ad:20:31:e9
 uart_console=CONFIG_UART_CONSOLE
 #ifdef CONFIG_SC59X_64
-fdt_high=0xffffffffffffffff
 initrd_high=0xffffffffffffffff
 #else
-fdt_high=0xffffffff
 initrd_high=0xffffffff
 #endif
 
--
Quoted 2 lines

2.43.0

Hi Tom,

Thanks for this fix. Works for me on the sc573 and sc598 boards, and there's no reason it should not work on any other boards. We primarily boot FIT images which include an explicit fdt load address anyway.

author
#2 lore raw
In reply to Tom Rini
Quoted 6 lines · Tom Rini

Remove setting of fdt_high to ~0, which disables device tree relocation, from the default environment. Doing so prevents U-Boot from correcting problems such as having an unaligned device tree and leads to various failure modes in the OS.

Applied to u-boot/next, thanks!

[1/1] adi: Stop disabling device tree relocation

      commit: bcc53242b95f0d2e4b51e7e3e6b26c0b34790eb6
Signature · 1 line
Tom