summaryrefslogtreecommitdiff
path: root/meta-aspeed
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2019-07-30 10:00:09 +0300
committerEd Tanous <ed@tanous.net>2019-08-20 18:56:17 +0300
commit119fff484a54eb9fe239d5af99a7823874f24994 (patch)
tree8806f49b88dffa07296ce2df9c59b39a9deb6000 /meta-aspeed
parent25ad46338e5990f081ef280429a5fc8ada5735be (diff)
downloadopenbmc-119fff484a54eb9fe239d5af99a7823874f24994.tar.xz
aspeed: u-boot: Fix SDK booting on systems with lots of RAM
This patch is required to boot on the ast2600evb which has 2GB of RAM. It has been submitted to aspeed for inclusion in their tree. (From meta-aspeed rev: 229a6556b33641bdfc770eb9566b3db3ce01354c) Change-Id: Ic2605f6634c82bcf8c1f0d5e166fea88ff7722d4 Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-aspeed')
-rw-r--r--meta-aspeed/recipes-bsp/u-boot/files/0001-aspeed-Limit-bootm-memory.patch31
-rw-r--r--meta-aspeed/recipes-bsp/u-boot/u-boot-common-aspeed-sdk_2019.04.inc1
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-aspeed/recipes-bsp/u-boot/files/0001-aspeed-Limit-bootm-memory.patch b/meta-aspeed/recipes-bsp/u-boot/files/0001-aspeed-Limit-bootm-memory.patch
new file mode 100644
index 000000000..f6062971c
--- /dev/null
+++ b/meta-aspeed/recipes-bsp/u-boot/files/0001-aspeed-Limit-bootm-memory.patch
@@ -0,0 +1,31 @@
+From 41d6940891b91e27ea5509eda2247811a3ba0c0d Mon Sep 17 00:00:00 2001
+From: Joel Stanley <joel@jms.id.au>
+Date: Tue, 30 Jul 2019 15:52:05 +0930
+Subject: [PATCH] aspeed: Limit bootm memory
+
+This ensures u-boot places the kernel, device tree and initrd at an
+address that is accessible by the Linux early boot code.
+
+Without this, when booting with FIT the device tree is placed at the end
+of RAM which is not mapped on the AST2600 EVB which contains 2GB of RAM.
+
+Signed-off-by: Joel Stanley <joel@jms.id.au>
+---
+ include/configs/aspeed-common.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/configs/aspeed-common.h b/include/configs/aspeed-common.h
+index 3b345ba46333..eba4e1c79d80 100644
+--- a/include/configs/aspeed-common.h
++++ b/include/configs/aspeed-common.h
+@@ -41,6 +41,7 @@
+ #define CONFIG_SYS_INIT_SP_ADDR \
+ (SYS_INIT_RAM_END - GENERATED_GBL_DATA_SIZE)
+
++#define CONFIG_SYS_BOOTMAPSZ (256 * 1024 * 1024)
+ #define CONFIG_SYS_MALLOC_LEN (32 << 20)
+
+ /*
+--
+2.20.1
+
diff --git a/meta-aspeed/recipes-bsp/u-boot/u-boot-common-aspeed-sdk_2019.04.inc b/meta-aspeed/recipes-bsp/u-boot/u-boot-common-aspeed-sdk_2019.04.inc
index 91b0d0042..bdcb7fb13 100644
--- a/meta-aspeed/recipes-bsp/u-boot/u-boot-common-aspeed-sdk_2019.04.inc
+++ b/meta-aspeed/recipes-bsp/u-boot/u-boot-common-aspeed-sdk_2019.04.inc
@@ -12,6 +12,7 @@ SRCREV = "baa29d5ecc47e6b32a3422c897dcbe30e7209e2b"
UBRANCH = "aspeed-master-v2019.04"
SRC_URI = "git://github.com/AspeedTech-BMC/u-boot;branch=${UBRANCH};protocol=https"
+SRC_URI += "file://0001-aspeed-Limit-bootm-memory.patch"
S = "${WORKDIR}/git"