Skip to contentSkip to conversation

OMAP4: Set fdt_high for OMAP4 devices to enable booting with Device Tree

PATCH New Jon Hunter 2 participants 2 messages May 1, 2012 – May 14, 2012

lore
Share & tools
lore

Jon Hunter

author
#0 lore raw

PATCH 1/1 OMAP4: Set fdt_high for OMAP4 devices to enable booting with Device Tree

From: Jon Hunter <[email protected]>

For OMAP4 boards, such as the panda-es, that have 1GB of memory the linux kernel fails to locate the device tree blob on boot. The reason being is that u-boot is copying the DT blob to the upper part of RAM when booting the kernel and the kernel is unable to access the blob. By setting the fdt_high variable to either 0xffffffff (to prevent the copy) or 0xac000000 (704MB boundary of memory for OMAP4) the kernel is able to locate the DT blob and boot.

Based upon following patch by Dirk Behme set the fdt_high variable to allow booting with device tree on OMAP4 boards.

"7e9603e i.mx6q: configs: Add fdt_high and initrd_high variables"

Cc Sricharan R <[email protected]>
Cc Sandeep Paulraj <[email protected]>
Cc Tom Rini <[email protected]>
---
 include/configs/omap4_common.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/configs/omap4_common.h +1 -0
index a989721..d31cbb5 100644
@@ -151,6 +151,7 @@
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"loadaddr=0x82000000\0" \
 	"console=ttyO2,115200n8\0" \
+	"fdt_high=0xffffffff\0" \
 	"usbtty=cdc_acm\0" \
 	"vram=16M\0" \
 	"mmcdev=0\0" \
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 OMAP4: Set fdt_high for OMAP4 devices to enable booting with Device Tree

Quoted 12 lines · Jon Hunter

From: Jon Hunter <[email protected]>

For OMAP4 boards, such as the panda-es, that have 1GB of memory the linux kernel fails to locate the device tree blob on boot. The reason being is that u-boot is copying the DT blob to the upper part of RAM when booting the kernel and the kernel is unable to access the blob. By setting the fdt_high variable to either 0xffffffff (to prevent the copy) or 0xac000000 (704MB boundary of memory for OMAP4) the kernel is able to locate the DT blob and boot.

Based upon following patch by Dirk Behme set the fdt_high variable to allow booting with device tree on OMAP4 boards.

Quoted 6 lines

"7e9603e i.mx6q: configs: Add fdt_high and initrd_high variables"

Cc Sricharan R <[email protected]>
Cc Sandeep Paulraj <[email protected]>
Cc Tom Rini <[email protected]>

Applied to u-boot-ti/master, thanks.

Signature · 1 line
Tom