summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/s5l8702/boot.lds
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2011-01-02 23:16:27 +0000
committerMichael Sparmann <theseven@rockbox.org>2011-01-02 23:16:27 +0000
commit152847977a420487d9c3728841101ef708e41373 (patch)
treef4113d0d6f60355d1ba00d78fc96e97a98e4d493 /firmware/target/arm/s5l8702/boot.lds
parent6f40387e742322c4860af2f389a4b531e669801f (diff)
downloadrockbox-152847977a420487d9c3728841101ef708e41373.tar.gz
rockbox-152847977a420487d9c3728841101ef708e41373.zip
New port: iPod Classic (also known as iPod 6G/6.5G/7G)
Major known issues: - No bootloader yet - No support for the first-generation 160GB CE-ATA hard disk drive yet - Audio playback is slow, only FLAC seems to reach realtime git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28953 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s5l8702/boot.lds')
-rw-r--r--firmware/target/arm/s5l8702/boot.lds94
1 files changed, 94 insertions, 0 deletions
diff --git a/firmware/target/arm/s5l8702/boot.lds b/firmware/target/arm/s5l8702/boot.lds
new file mode 100644
index 0000000000..9741cee45e
--- /dev/null
+++ b/firmware/target/arm/s5l8702/boot.lds
@@ -0,0 +1,94 @@
+#define ASM
+#include "config.h"
+
+ENTRY(start)
+#ifdef ROCKBOX_LITTLE_ENDIAN
+OUTPUT_FORMAT(elf32-littlearm)
+#else
+OUTPUT_FORMAT(elf32-bigarm)
+#endif
+OUTPUT_ARCH(arm)
+STARTUP(target/arm/s5l8702/crt0.o)
+
+#ifdef IPOD_NANO2G
+#define DRAMORIG 0x08000000 + ((MEMORYSIZE - 1) * 0x100000)
+#define DRAMSIZE 0x00100000
+#else
+#define DRAMORIG 0x08000000
+#define DRAMSIZE (DRAM_SIZE - TTB_SIZE)
+#endif
+
+#define IRAMORIG 0x22000000
+#define IRAMSIZE 256K
+
+MEMORY
+{
+ DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
+ IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
+}
+
+#define LOAD_AREA IRAM
+
+SECTIONS
+{
+#ifdef NEEDS_INTVECT_COPYING
+ .intvect : {
+ _intvectstart = . ;
+ *(.intvect)
+ _intvectend = _newstart ;
+ } >IRAM AT> LOAD_AREA
+ _intvectcopy = LOADADDR(.intvect) ;
+#endif
+
+ .text : {
+#ifndef NEEDS_INTVECT_COPYING
+ *(.intvect)
+#endif
+ *(.init.text)
+ *(.text*)
+ *(.glue_7*)
+ } > LOAD_AREA
+
+ .rodata : {
+ *(.rodata*)
+ . = ALIGN(0x4);
+ } > LOAD_AREA
+
+ .data : {
+ _datastart = . ;
+ *(.irodata)
+ *(.icode)
+ *(.idata)
+ *(.data*)
+ *(.ncdata*);
+ . = ALIGN(0x4);
+ _dataend = . ;
+ } > IRAM AT> LOAD_AREA
+ _datacopy = LOADADDR(.data) ;
+
+ .stack (NOLOAD) :
+ {
+ *(.stack)
+ _stackbegin = .;
+ stackbegin = .;
+ . += 0x2000;
+ _stackend = .;
+ stackend = .;
+ _irqstackbegin = .;
+ . += 0x400;
+ _irqstackend = .;
+ _fiqstackbegin = .;
+ . += 0x400;
+ _fiqstackend = .;
+ } > IRAM
+
+ .bss (NOLOAD) : {
+ _edata = .;
+ *(.bss*);
+ *(.ibss);
+ *(.ncbss*);
+ *(COMMON);
+ . = ALIGN(0x4);
+ _end = .;
+ } > IRAM
+}