diff options
author | Cástor Muñoz <cmvidal@gmail.com> | 2016-02-04 23:05:17 +0100 |
---|---|---|
committer | Cástor Muñoz <cmvidal@gmail.com> | 2017-04-14 00:03:42 +0200 |
commit | 346423c040fe4ac31dae7c1afcb1d853cc80635c (patch) | |
tree | bd8dd4c55f083a1162f7019188977213a20dc41c /rbutil/mks5lboot/dualboot/dualboot.lds | |
parent | eefc7c73e2495decdc6f242515696fe0e3f85609 (diff) | |
download | rockbox-346423c040fe4ac31dae7c1afcb1d853cc80635c.tar.gz rockbox-346423c040fe4ac31dae7c1afcb1d853cc80635c.zip |
mks5lboot v1.0 - dualboot installer for s5l8702 targetsmks5lboot_1.0
A tool to install/uninstall a bootloader into a s5l8702 based device:
- iPod Classic 6G
- iPod Nano 3G (TODO)
See mks5lboot/README for detailed info.
Change-Id: I451d2aaff34509ebd356e4660647e5222c5d3409
Diffstat (limited to 'rbutil/mks5lboot/dualboot/dualboot.lds')
-rw-r--r-- | rbutil/mks5lboot/dualboot/dualboot.lds | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/rbutil/mks5lboot/dualboot/dualboot.lds b/rbutil/mks5lboot/dualboot/dualboot.lds new file mode 100644 index 0000000000..cb92e2a286 --- /dev/null +++ b/rbutil/mks5lboot/dualboot/dualboot.lds | |||
@@ -0,0 +1,59 @@ | |||
1 | #define ASM | ||
2 | #include "config.h" | ||
3 | #include "cpu.h" | ||
4 | #include "mks5lboot.h" | ||
5 | |||
6 | ENTRY(_start) | ||
7 | OUTPUT_FORMAT(elf32-littlearm) | ||
8 | OUTPUT_ARCH(arm) | ||
9 | |||
10 | #define BIN_ORIG DFU_LOADADDR + BIN_OFFSET | ||
11 | #define BIN_SIZE MAX_PAYLOAD | ||
12 | |||
13 | MEMORY | ||
14 | { | ||
15 | IRAM : ORIGIN = BIN_ORIG, LENGTH = BIN_SIZE | ||
16 | } | ||
17 | |||
18 | SECTIONS | ||
19 | { | ||
20 | .text : { | ||
21 | *(.init.text*) | ||
22 | *(.text*) | ||
23 | *(.icode*) | ||
24 | . = ALIGN(4); | ||
25 | } > IRAM | ||
26 | |||
27 | /* include initialized BSS (if any) into DFU image */ | ||
28 | .bss : { | ||
29 | *(.bss*) | ||
30 | *(.ibss*) | ||
31 | *(COMMON) | ||
32 | . = ALIGN(4); | ||
33 | } > IRAM | ||
34 | |||
35 | #if 1 | ||
36 | /* reuse pwnage as stack, 0x30c bytes available */ | ||
37 | _exception_stack = BIN_ORIG; | ||
38 | _supervisor_stack = _exception_stack; | ||
39 | #else | ||
40 | /* include stack into DFU image */ | ||
41 | .stack : { | ||
42 | . += 0x400; | ||
43 | _supervisor_stack = .; | ||
44 | . += 0x200; | ||
45 | _exception_stack = .; | ||
46 | } > IRAM | ||
47 | #endif | ||
48 | |||
49 | .data : { | ||
50 | *(.data*) | ||
51 | *(.rodata*) | ||
52 | *(.idata*) | ||
53 | *(.irodata*) | ||
54 | /* place bootloader IM3 header at the end, mkdfu | ||
55 | will concatenate the bootloader binary here */ | ||
56 | . = ALIGN(16); | ||
57 | *(.im3info.data*) | ||
58 | } > IRAM | ||
59 | } | ||