SHA256
1
0
forked from pool/u-boot
u-boot/0017-ARM-rpi-fix-64-bit-CONFIG_SYS_TEXT_BASE.patch

34 lines
1.0 KiB
Diff

From 51b81f8879de15322824fdfef08d4fef48c821fe Mon Sep 17 00:00:00 2001
From: Stephen Warren <swarren@wwwdotorg.org>
Date: Wed, 13 Apr 2016 22:11:16 -0600
Subject: [PATCH 17/17] ARM: rpi: fix 64-bit CONFIG_SYS_TEXT_BASE
The Pi firmware has changed the default "kernel" load address for 64-bit
mode. Adapt U-Boot to the new value.
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
include/configs/rpi.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/configs/rpi.h b/include/configs/rpi.h
index b83d622..19ca606 100644
--- a/include/configs/rpi.h
+++ b/include/configs/rpi.h
@@ -48,7 +48,11 @@
/* Memory layout */
#define CONFIG_NR_DRAM_BANKS 1
#define CONFIG_SYS_SDRAM_BASE 0x00000000
+#ifdef CONFIG_ARM64
+#define CONFIG_SYS_TEXT_BASE 0x00080000
+#else
#define CONFIG_SYS_TEXT_BASE 0x00008000
+#endif
#define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_TEXT_BASE
/*
* The board really has 256M. However, the VC (VideoCore co-processor) shares
--
1.8.5.6