]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
Updated miniarm configuration
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 2 Aug 2006 12:34:00 +0000 (12:34 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 2 Aug 2006 12:34:00 +0000 (12:34 +0000)
darcs-hash:20060802123417-f2ef6-9da0ac30e8841b5e97dd9406e0a2cd216fb887e5.gz

board/miniarm/config.armtest
board/miniarm/libs/lpc21xx.ld-ramisp [new file with mode: 0644]

index 4cb4ae05471f722ea2b18e51cb8e5d34f6884761..6d02848f4e4646aaa955721960717f0584cac4c8 100644 (file)
@@ -22,3 +22,8 @@ LD_SCRIPT=lpc21xx
 DEFAULT_LD_SCRIPT_VARIANT=ramisp
 
 #OUTPUT_FORMATS = bin hex srec
+
+CONFIG_USB_BASE=n
+CONFIG_USB_PDIUSB=n
+CONFIG_USB_MORE=n
+
diff --git a/board/miniarm/libs/lpc21xx.ld-ramisp b/board/miniarm/libs/lpc21xx.ld-ramisp
new file mode 100644 (file)
index 0000000..5a3ea25
--- /dev/null
@@ -0,0 +1,111 @@
+/***********************************************************************/\r
+/*                                                                     */\r
+/* RAMISP.ld:  Linker Script File - for use with serial line boo loader*/\r
+/*                                                                     */\r
+/***********************************************************************/\r
+ENTRY(_start)\r
+STACK_SIZE = 0x400;\r
+\r
+/* Memory Definitions */\r
+MEMORY\r
+{\r
+  ROM (rx) : ORIGIN = 0x00000000, LENGTH = 0x00020000\r
+  RAMBEG (rw) : ORIGIN = 0x40000000, LENGTH = 0x00000120\r
+  RAMISP (r)  : ORIGIN = 0x40000120, LENGTH = 0x000000E0\r
+  RAMREST (rw) : ORIGIN = 0x40000200, LENGTH = 0x0000FE00\r
+}\r
+\r
+STARTUP(crt0.o)\r
+\r
+/* Section Definitions */\r
+SECTIONS\r
+{\r
+  /* first section is .text which is used for code */\r
+  .text :\r
+  {\r
+    . = ALIGN(4);\r
+/*    LONG( ((ABSOLUTE( _start ) - . - 8) >> 2) + 0xea000000 ) /* B _start */\r
+    *(.text)                   /* remaining code */\r
+    *(.rodata)                 /* read-only data (constants) */\r
+    *(.rodata*)\r
+    *(.glue_7)\r
+    *(.glue_7t)\r
+  } > RAMREST\r
+\r
+  . = ALIGN(4);\r
+  _etext = . ;\r
+  PROVIDE (etext = .);\r
+\r
+  .ivec :\r
+  {\r
+    *(.ivec)                   /* remaining code */\r
+  } > RAMBEG\r
+  \r
+  /* .data section which is used for initialized data */\r
+  .data :\r
+  {\r
+    _data = .;\r
+    *(.data)\r
+  } > RAMREST\r
+\r
+  . = ALIGN(4);\r
+  _edata = . ;\r
+  PROVIDE (edata = .);\r
+\r
+  /* .bss section which is used for uninitialized data */\r
+  .bss (NOLOAD) :\r
+  {\r
+    __bss_start = . ;\r
+    __bss_start__ = . ;\r
+    *(.bss)\r
+    *(COMMON)\r
+    . = ALIGN(4);\r
+  } > RAMREST\r
+\r
+  . = ALIGN(4);\r
+  __bss_end__ = . ;\r
+  PROVIDE (__bss_end = .);\r
+\r
+  .stack ALIGN(256) :\r
+  {\r
+    . += STACK_SIZE;\r
+    PROVIDE (_stack = .);\r
+  } > RAMREST\r
+\r
+  _end = . ;\r
+  PROVIDE (end = .);\r
+\r
+  /* Stabs debugging sections.  */\r
+  .stab          0 : { *(.stab) }\r
+  .stabstr       0 : { *(.stabstr) }\r
+  .stab.excl     0 : { *(.stab.excl) }\r
+  .stab.exclstr  0 : { *(.stab.exclstr) }\r
+  .stab.index    0 : { *(.stab.index) }\r
+  .stab.indexstr 0 : { *(.stab.indexstr) }\r
+  .comment       0 : { *(.comment) }\r
+  /* DWARF debug sections.\r
+     Symbols in the DWARF debugging sections are relative to the beginning\r
+     of the section so we begin them at 0.  */\r
+  /* DWARF 1 */\r
+  .debug          0 : { *(.debug) }\r
+  .line           0 : { *(.line) }\r
+  /* GNU DWARF 1 extensions */\r
+  .debug_srcinfo  0 : { *(.debug_srcinfo) }\r
+  .debug_sfnames  0 : { *(.debug_sfnames) }\r
+  /* DWARF 1.1 and DWARF 2 */\r
+  .debug_aranges  0 : { *(.debug_aranges) }\r
+  .debug_pubnames 0 : { *(.debug_pubnames) }\r
+  /* DWARF 2 */\r
+  .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }\r
+  .debug_abbrev   0 : { *(.debug_abbrev) }\r
+  .debug_line     0 : { *(.debug_line) }\r
+  .debug_frame    0 : { *(.debug_frame) }\r
+  .debug_str      0 : { *(.debug_str) }\r
+  .debug_loc      0 : { *(.debug_loc) }\r
+  .debug_macinfo  0 : { *(.debug_macinfo) }\r
+  /* SGI/MIPS DWARF 2 extensions */\r
+  .debug_weaknames 0 : { *(.debug_weaknames) }\r
+  .debug_funcnames 0 : { *(.debug_funcnames) }\r
+  .debug_typenames 0 : { *(.debug_typenames) }\r
+  .debug_varnames  0 : { *(.debug_varnames) }\r
+}\r