Skip to contentSkip to conversation

s5p4418_nanopi2: Stop disabling device tree relocation

PATCH In review Tom Rini 3 participants 3 messages Nov 19, 2025 – Nov 27, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 s5p4418_nanopi2: 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 Stefan Bosch <[email protected]>
---
 include/configs/s5p4418_nanopi2.h | 1 -
 1 file changed, 1 deletion(-)
include/configs/s5p4418_nanopi2.h +0 -1
index fec1bfd50eb9..8a8d54daf7b4 100644
@@ -139,7 +139,6 @@
 #endif
 
 #define CFG_EXTRA_ENV_SETTINGS				\
-	"fdt_high=0xffffffff\0"					\
 	"initrd_high=0xffffffff\0"				\
 	"rootdev=" __stringify(CONFIG_ROOT_DEV) "\0"		\
 	"rootpart=" __stringify(CONFIG_ROOT_PART) "\0"		\
Signature · 1 line
2.43.0
Tested-by on v1 1/1
#1 lore raw

Hi Tom,

Quoted 7 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.

---

Looks OK, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig) with booting of LUbuntu Xenial (kernel 4.4.49-s5p4418).

Thanks!

Quoted 15 lines

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 Stefan Bosch <[email protected]>
---
  include/configs/s5p4418_nanopi2.h | 1 -
  1 file changed, 1 deletion(-)
include/configs/s5p4418_nanopi2.h +0 -0
index fec1bfd50eb9..8a8d54daf7b4 100644

include/configs/s5p4418_nanopi2.h line 144

Quoted 7 lines
include/configs/s5p4418_nanopi2.h +0 -1
@@ -139,7 +139,6 @@
  #endif
 
  #define CFG_EXTRA_ENV_SETTINGS				\
-	"fdt_high=0xffffffff\0"					\
  	"initrd_high=0xffffffff\0"				\
  	"rootdev=" __stringify(CONFIG_ROOT_DEV) "\0"		\
  	"rootpart=" __stringify(CONFIG_ROOT_PART) "\0"		\

Regards,
Stefan

#2 lore raw

Hi,

Quoted 16 lines

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 Stefan Bosch <[email protected]>
---
  include/configs/s5p4418_nanopi2.h | 1 -
  1 file changed, 1 deletion(-)
include/configs/s5p4418_nanopi2.h +0 -0
index fec1bfd50eb9..8a8d54daf7b4 100644

include/configs/s5p4418_nanopi2.h line 144

Quoted 7 lines
include/configs/s5p4418_nanopi2.h +0 -1
@@ -139,7 +139,6 @@
  #endif
 
  #define CFG_EXTRA_ENV_SETTINGS				\
-	"fdt_high=0xffffffff\0"					\
  	"initrd_high=0xffffffff\0"				\
  	"rootdev=" __stringify(CONFIG_ROOT_DEV) "\0"		\
  	"rootpart=" __stringify(CONFIG_ROOT_PART) "\0"		\

Applied to u-boot-samsung.

Thanks,
Minkyu Kang.