diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2009-12-31 19:15:20 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2009-12-31 19:15:20 +0000 |
commit | 2392bb41996963c6683253114bdfb3174146e7dc (patch) | |
tree | 3846475be5d2ac2f472fbac22781868ab0b0c60e /firmware/target/arm/as3525/boot.lds | |
parent | 822abc12360900030323560b92a440f425b5641a (diff) | |
download | rockbox-2392bb41996963c6683253114bdfb3174146e7dc.tar.gz rockbox-2392bb41996963c6683253114bdfb3174146e7dc.zip |
FS#10047 : Clipv2
Reuse some code from Clip (LCD) and a lot of code from AS3525
Add a new CPU type : AS3525v2, identical to AS3525 except it's an ARMv5 (arm926-ejs)
SD code still not working
For an unknown reason LCD doesn't work anymore (to be investigated)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24131 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/boot.lds')
-rw-r--r-- | firmware/target/arm/as3525/boot.lds | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/firmware/target/arm/as3525/boot.lds b/firmware/target/arm/as3525/boot.lds index 9c6d6faf11..dcc291b54f 100644 --- a/firmware/target/arm/as3525/boot.lds +++ b/firmware/target/arm/as3525/boot.lds | |||
@@ -6,24 +6,29 @@ OUTPUT_FORMAT(elf32-littlearm) | |||
6 | OUTPUT_ARCH(arm) | 6 | OUTPUT_ARCH(arm) |
7 | STARTUP(target/arm/crt0.o) | 7 | STARTUP(target/arm/crt0.o) |
8 | 8 | ||
9 | #define IRAMORIG 0x81000000 | 9 | #ifdef SANSA_CLIPV2 |
10 | #define IRAMSIZE 0x50000 | 10 | #define RAMORIG 0x0 /* DRAM */ |
11 | #define RAMSIZE (MEM*0x100000) | ||
12 | #else | ||
13 | #define RAMORIG 0x81000000 /* IRAM */ | ||
14 | #define RAMSIZE 0x50000 | ||
15 | #endif | ||
11 | 16 | ||
12 | MEMORY | 17 | MEMORY |
13 | { | 18 | { |
14 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | 19 | RAM : ORIGIN = RAMORIG, LENGTH = RAMSIZE |
15 | } | 20 | } |
16 | 21 | ||
17 | SECTIONS | 22 | SECTIONS |
18 | { | 23 | { |
19 | . = IRAMORIG; | 24 | . = RAMORIG; |
20 | 25 | ||
21 | .text : { | 26 | .text : { |
22 | *(.init.text) | 27 | *(.init.text) |
23 | *(.glue_7) | 28 | *(.glue_7) |
24 | *(.glue_7t) | 29 | *(.glue_7t) |
25 | *(.text*) | 30 | *(.text*) |
26 | } > IRAM | 31 | } > RAM |
27 | 32 | ||
28 | .data : { | 33 | .data : { |
29 | *(.icode) | 34 | *(.icode) |
@@ -33,7 +38,7 @@ SECTIONS | |||
33 | *(.ncdata*) | 38 | *(.ncdata*) |
34 | *(.rodata*) | 39 | *(.rodata*) |
35 | _dataend = . ; | 40 | _dataend = . ; |
36 | } > IRAM | 41 | } > RAM |
37 | 42 | ||
38 | .stack : | 43 | .stack : |
39 | { | 44 | { |
@@ -43,7 +48,7 @@ SECTIONS | |||
43 | . += 0x2000; | 48 | . += 0x2000; |
44 | _stackend = .; | 49 | _stackend = .; |
45 | stackend = .; | 50 | stackend = .; |
46 | } > IRAM | 51 | } > RAM |
47 | 52 | ||
48 | .bss : { | 53 | .bss : { |
49 | _edata = .; | 54 | _edata = .; |
@@ -52,5 +57,5 @@ SECTIONS | |||
52 | *(COMMON) | 57 | *(COMMON) |
53 | *(.ncbss*); | 58 | *(.ncbss*); |
54 | _end = .; | 59 | _end = .; |
55 | } > IRAM | 60 | } > RAM |
56 | } | 61 | } |