rockbox/rbutil/mkzenboot/dualboot/dualboot.lds
Amaury Pouly 2e0c558064 Introduce rbutil/mkzenboot, a replacement for tools/mkzenboot
The old tools/mkzenboot has a number of problems: very hard to maintain,
poor integration with rbutil. Restart from scratch by recycling all the
crypto and descrambling code, rewrite the actual firmware modification part
to handle all scenarios in a much clearer way. The code is ready to be
integrated into Rockbox Utility, by using the very similar interface to
mkimxboot.
I copied all the keys from the old mkzenboot, so it can potentially support
the older Creative ports, but since this is untested, I prefer not do so
at the moment. However, I did add a "mixed" boot option to support the
dualboot style used in the older ports.

Change-Id: I80cfc48fa78187baa1b1692e8a30ec7137cea37b
2013-10-22 00:48:33 +02:00

32 lines
564 B
Text

ENTRY(start)
OUTPUT_FORMAT(elf32-littlearm)
OUTPUT_ARCH(arm)
MEMORY
{
/* keep this consistent with the address in mkzenboot.c */
#if IMX233_SUBTARGET == 3700
RAM : ORIGIN = 0x41000000, LENGTH = 0x8000
#elif IMX233_SUBTARGET == 3600
RAM : ORIGIN = 0x61000000, LENGTH = 0x8000
#else
#error define me
#endif
}
SECTIONS
{
.text :
{
*(.start*)
*(.text*)
. = ALIGN(4);
LONG(0x1ceb00da)
of_vector = .;
. += 4;
rb_vector = .;
. += 4;
boot_arg = .;
. += 4;
} > RAM
}