[PATCH] bsp/raspberrypi: Fix linker command file

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Dec 20 06:32:28 UTC 2019


The RTEMS entry point must be at 0x8000.

Update #3774.
---
 bsps/arm/raspberrypi/start/linkcmds.in | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/bsps/arm/raspberrypi/start/linkcmds.in b/bsps/arm/raspberrypi/start/linkcmds.in
index d99b4fe23e..fde75877e7 100644
--- a/bsps/arm/raspberrypi/start/linkcmds.in
+++ b/bsps/arm/raspberrypi/start/linkcmds.in
@@ -15,11 +15,12 @@
  */
 
 MEMORY {
-  RAM_MMU (AIW) : ORIGIN = 0x00100000, LENGTH = @RPI_RAM_MMU_LENGTH@
-  RAM     (AIW) : ORIGIN = 0x00200000, LENGTH = @RPI_RAM_LENGTH_AVAILABLE@ - @RPI_RAM_NOCACHE_LENGTH@
+  START (AIW) : ORIGIN = 0x00008000, LENGTH = 0xf8000
+  MMU   (AIW) : ORIGIN = 0x00100000, LENGTH = @RPI_RAM_MMU_LENGTH@
+  RAM   (AIW) : ORIGIN = 0x00200000, LENGTH = @RPI_RAM_LENGTH_AVAILABLE@ - @RPI_RAM_NOCACHE_LENGTH@
 }
 
-REGION_ALIAS ("REGION_START",          RAM);
+REGION_ALIAS ("REGION_START",          START);
 REGION_ALIAS ("REGION_VECTOR",         RAM);
 REGION_ALIAS ("REGION_TEXT",           RAM);
 REGION_ALIAS ("REGION_TEXT_LOAD",      RAM);
@@ -41,9 +42,7 @@ bsp_stack_abt_size = DEFINED (bsp_stack_abt_size) ? bsp_stack_abt_size : 1024;
 
 bsp_section_rwbarrier_align = DEFINED (bsp_section_rwbarrier_align) ? bsp_section_rwbarrier_align : 1M;
 
-bsp_vector_table_in_start_section = 1;
-
-bsp_translation_table_base = ORIGIN (RAM_MMU);
-bsp_translation_table_end = ORIGIN (RAM_MMU) + LENGTH (RAM_MMU);
+bsp_translation_table_base = ORIGIN (MMU);
+bsp_translation_table_end = ORIGIN (MMU) + LENGTH (MMU);
 
 INCLUDE linkcmds.armv4
-- 
2.16.4



More information about the devel mailing list