adi: Stop disabling device tree relocation
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.
--- include/env/adi/adi_boot.env | 2 -- 1 file changed, 2 deletions(-)
include/env/adi/adi_boot.env +0 -2
@@ -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
Quoted 40 lines · Tom Rini
Remove setting of
fdt_highto ~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.Signed-off-by Tom Rini <[email protected]>---
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 justbootm_size) orbootm_mapsizeare the correct way do this. Please seedoc/usage/environment.rstfor 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@@ -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.
Quoted 6 lines · Tom Rini
Remove setting of
fdt_highto ~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