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
This commit is contained in:
Pavel Pisa
2016-09-06 09:21:11 +02:00
parent 78627fe282
commit fab0dd11cb
2 changed files with 4 additions and 3 deletions

View File

@@ -27,6 +27,7 @@
#include <bsp/raspberrypi.h> #include <bsp/raspberrypi.h>
#include <bsp/mm.h> #include <bsp/mm.h>
#include <libcpu/arm-cp15.h> #include <libcpu/arm-cp15.h>
#include <bsp.h>
void BSP_START_TEXT_SECTION bsp_start_hook_0(void) void BSP_START_TEXT_SECTION bsp_start_hook_0(void)
{ {

View File

@@ -36,9 +36,9 @@
*/ */
MEMORY { MEMORY {
VECTOR_RAM (AIW) : ORIGIN = 0x0 , LENGTH = 0x8000 VECTOR_RAM (AIW) : ORIGIN = 0x0 , LENGTH = 16k
RAM (AIW) : ORIGIN = 0x00008000, LENGTH = 128M - 48K RAM_MMU (AIW) : ORIGIN = 0x00004000, LENGTH = 16k
RAM_MMU (AIW) : ORIGIN = 128M - 16k, LENGTH = 16k RAM (AIW) : ORIGIN = 0x00008000, LENGTH = 128M - 32k
} }
REGION_ALIAS ("REGION_START", RAM); REGION_ALIAS ("REGION_START", RAM);