diff mbox

[U-Boot,v2,4/4] db-88f6820-gp.h: Load data blobs into lower memory

Message ID 1431559000-21544-5-git-send-email-kevin.smith@elecsyscorp.com
State Superseded
Delegated to: Prafulla Wadaskar
Headers show

Commit Message

Kevin Smith May 13, 2015, 11:17 p.m. UTC
By default on this platform, u-boot loads data into high memory
in the range of 0x7Fxxxxxx, which generates a data abort when the
kernel tries to read it.  Config the u-boot environment to load
the device tree and initrd image into lower memory to make them
accessible to the kernel.

Signed-off-by: Kevin Smith <kevin.smith@elecsyscorp.com>
---
 include/configs/db-88f6820-gp.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Stefan Roese May 15, 2015, 7:03 a.m. UTC | #1
On 14.05.2015 01:17, Kevin Smith wrote:
> By default on this platform, u-boot loads data into high memory
> in the range of 0x7Fxxxxxx, which generates a data abort when the
> kernel tries to read it.  Config the u-boot environment to load
> the device tree and initrd image into lower memory to make them
> accessible to the kernel.
>
> Signed-off-by: Kevin Smith <kevin.smith@elecsyscorp.com>
> ---
>   include/configs/db-88f6820-gp.h | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/include/configs/db-88f6820-gp.h b/include/configs/db-88f6820-gp.h
> index 12a24ce..490d74e 100644
> --- a/include/configs/db-88f6820-gp.h
> +++ b/include/configs/db-88f6820-gp.h
> @@ -63,6 +63,11 @@
>   #define CONFIG_SYS_CONSOLE_INFO_QUIET	/* don't print console @ startup */
>   #define CONFIG_SYS_ALT_MEMTEST
>
> +/* Keep device tree and initrd in lower memory so the kernel can access them */
> +#define CONFIG_EXTRA_ENV_SETTINGS       \
> +        "fdt_high=0x10000000\0"         \
> +        "initrd_high=0x10000000\0"

Indentation with tabs please.

Acked-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan
diff mbox

Patch

diff --git a/include/configs/db-88f6820-gp.h b/include/configs/db-88f6820-gp.h
index 12a24ce..490d74e 100644
--- a/include/configs/db-88f6820-gp.h
+++ b/include/configs/db-88f6820-gp.h
@@ -63,6 +63,11 @@ 
 #define CONFIG_SYS_CONSOLE_INFO_QUIET	/* don't print console @ startup */
 #define CONFIG_SYS_ALT_MEMTEST
 
+/* Keep device tree and initrd in lower memory so the kernel can access them */
+#define CONFIG_EXTRA_ENV_SETTINGS       \
+        "fdt_high=0x10000000\0"         \
+        "initrd_high=0x10000000\0"
+
 /*
  * mv-common.h should be defined after CMD configs since it used them
  * to enable certain macros