public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] OMAP4: Set fdt_high for OMAP4 devices to enable booting with Device Tree
@ 2012-05-01 20:05 Jon Hunter
  2012-05-14 16:48 ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Hunter @ 2012-05-01 20:05 UTC (permalink / raw)
  To: u-boot

From: Jon Hunter <jon-hunter@ti.com>

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 <r.sricharan@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Tom Rini <trini@ti.com>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
---
 include/configs/omap4_common.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/configs/omap4_common.h b/include/configs/omap4_common.h
index a989721..d31cbb5 100644
--- a/include/configs/omap4_common.h
+++ b/include/configs/omap4_common.h
@@ -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" \
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] OMAP4: Set fdt_high for OMAP4 devices to enable booting with Device Tree
       [not found] <1335902462-10724-1-git-send-email-jon-hunter@ti.com>
@ 2012-05-04 11:20 ` R, Sricharan
  2012-05-04 14:05   ` Jon Hunter
  0 siblings, 1 reply; 5+ messages in thread
From: R, Sricharan @ 2012-05-04 11:20 UTC (permalink / raw)
  To: u-boot

Jon,
[snip]

> --- a/include/configs/omap4_common.h
> +++ b/include/configs/omap4_common.h
> @@ -151,6 +151,7 @@
> ?#define CONFIG_EXTRA_ENV_SETTINGS \
> ? ? ? ?"loadaddr=0x82000000\0" \
> ? ? ? ?"console=ttyO2,115200n8\0" \
> + ? ? ? "fdt_high=0xffffffff\0" \

 Tested this on mainline and worked fine on 4430SDP.

 Tested the same on u-boot-arm, but did not work there.
 Not sure what i am missing.

Thanks,
 Sricharan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] OMAP4: Set fdt_high for OMAP4 devices to enable booting with Device Tree
@ 2012-05-04 14:01 Jon Hunter
  0 siblings, 0 replies; 5+ messages in thread
From: Jon Hunter @ 2012-05-04 14:01 UTC (permalink / raw)
  To: u-boot

From: Jon Hunter <jon-hunter@ti.com>

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 <r.sricharan@ti.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Tom Rini <trini@ti.com>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
---
 include/configs/omap4_common.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/configs/omap4_common.h b/include/configs/omap4_common.h
index a989721..d31cbb5 100644
--- a/include/configs/omap4_common.h
+++ b/include/configs/omap4_common.h
@@ -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" \
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] OMAP4: Set fdt_high for OMAP4 devices to enable booting with Device Tree
  2012-05-04 11:20 ` [U-Boot] [PATCH] OMAP4: Set fdt_high for OMAP4 devices to enable booting with Device Tree R, Sricharan
@ 2012-05-04 14:05   ` Jon Hunter
  0 siblings, 0 replies; 5+ messages in thread
From: Jon Hunter @ 2012-05-04 14:05 UTC (permalink / raw)
  To: u-boot

Hi Sricharan,

On 05/04/2012 06:20 AM, R, Sricharan wrote:
> Jon,
> [snip]
> 
>> --- a/include/configs/omap4_common.h
>> +++ b/include/configs/omap4_common.h
>> @@ -151,6 +151,7 @@
>>  #define CONFIG_EXTRA_ENV_SETTINGS \
>>        "loadaddr=0x82000000\0" \
>>        "console=ttyO2,115200n8\0" \
>> +       "fdt_high=0xffffffff\0" \
> 
>  Tested this on mainline and worked fine on 4430SDP.
> 
>  Tested the same on u-boot-arm, but did not work there.
>  Not sure what i am missing.

Thanks. I have not tried uboot-arm branch. I am guess that DT booting
does not work on the uboot-arm branch with or without this patch. Correct?

BTW, I just resent the original patch to the ML as the first version did
not seem to make it.

Cheers
Jon

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] OMAP4: Set fdt_high for OMAP4 devices to enable booting with Device Tree
  2012-05-01 20:05 Jon Hunter
@ 2012-05-14 16:48 ` Tom Rini
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2012-05-14 16:48 UTC (permalink / raw)
  To: u-boot

On Tue, May 01, 2012 at 03:05:08PM -0500, Jon Hunter wrote:
> From: Jon Hunter <jon-hunter@ti.com>
> 
> 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 <r.sricharan@ti.com>
> Cc: Sandeep Paulraj <s-paulraj@ti.com>
> Cc: Tom Rini <trini@ti.com>
> Signed-off-by: Jon Hunter <jon-hunter@ti.com>

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

-- 
Tom

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-05-14 16:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1335902462-10724-1-git-send-email-jon-hunter@ti.com>
2012-05-04 11:20 ` [U-Boot] [PATCH] OMAP4: Set fdt_high for OMAP4 devices to enable booting with Device Tree R, Sricharan
2012-05-04 14:05   ` Jon Hunter
2012-05-04 14:01 Jon Hunter
  -- strict thread matches above, loose matches on Subject: below --
2012-05-01 20:05 Jon Hunter
2012-05-14 16:48 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox