[rtems commit] arm/raspberrypi: minimized mainline patch move MMU in front of application image and correct RPi2 boot on 4.11 branch.
Pavel Pisa
ppisa at rtems.org
Sun Oct 2 08:47:07 UTC 2016
Module: rtems
Branch: 4.11
Commit: fab0dd11cb1e1ad4054b1d6fb1e30ee26afd871c
Changeset: http://git.rtems.org/rtems/commit/?id=fab0dd11cb1e1ad4054b1d6fb1e30ee26afd871c
Author: Pavel Pisa <pisa at cmp.felk.cvut.cz>
Date: Tue Sep 6 09:21:11 2016 +0200
arm/raspberrypi: minimized mainline patch move MMU in front of application image and correct RPi2 boot on 4.11 branch.
This is minimized version of mainline patch
arm/raspberrypi: move MMU in front of application image to respect variable memory size.
plus correction which has been part of other mainline patches.
This is end of series which allows 4.11 to boot on Raspberry Pi.
Closes #2782
Closes #2783
---
c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c | 1 +
c/src/lib/libbsp/arm/raspberrypi/startup/linkcmds | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c b/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c
index 2504015..b3f0229 100644
--- a/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c
+++ b/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c
@@ -27,6 +27,7 @@
#include <bsp/raspberrypi.h>
#include <bsp/mm.h>
#include <libcpu/arm-cp15.h>
+#include <bsp.h>
void BSP_START_TEXT_SECTION bsp_start_hook_0(void)
{
diff --git a/c/src/lib/libbsp/arm/raspberrypi/startup/linkcmds b/c/src/lib/libbsp/arm/raspberrypi/startup/linkcmds
index f1ad11c..fc72b5c 100644
--- a/c/src/lib/libbsp/arm/raspberrypi/startup/linkcmds
+++ b/c/src/lib/libbsp/arm/raspberrypi/startup/linkcmds
@@ -36,9 +36,9 @@
*/
MEMORY {
- VECTOR_RAM (AIW) : ORIGIN = 0x0 , LENGTH = 0x8000
- RAM (AIW) : ORIGIN = 0x00008000, LENGTH = 128M - 48K
- RAM_MMU (AIW) : ORIGIN = 128M - 16k, LENGTH = 16k
+ VECTOR_RAM (AIW) : ORIGIN = 0x0 , LENGTH = 16k
+ RAM_MMU (AIW) : ORIGIN = 0x00004000, LENGTH = 16k
+ RAM (AIW) : ORIGIN = 0x00008000, LENGTH = 128M - 32k
}
REGION_ALIAS ("REGION_START", RAM);
More information about the vc
mailing list