s5p4418_nanopi2: Stop disabling device tree relocation
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.
--- include/configs/s5p4418_nanopi2.h | 1 - 1 file changed, 1 deletion(-)
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" \
Signature · 1 line
2.43.0
Hi Tom,
Quoted 7 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]>---
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 justbootm_size) orbootm_mapsizeare the correct way do this. Please seedoc/usage/environment.rstfor 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
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
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 justbootm_size) orbootm_mapsizeare the correct way do this. Please seedoc/usage/environment.rstfor 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
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.