diff options
author | Jens Arnold <amiconn@rockbox.org> | 2011-06-19 17:23:18 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2011-06-19 17:23:18 +0000 |
commit | 91ce4b2a60c4cbe8e3568f79c3a73572461ff40d (patch) | |
tree | 863cf4142841fee4dd53e2849d060d2c559cca55 /firmware/target/coldfire/iaudio | |
parent | e9e0cf59085cb3b3d77c8a2962fd8b80ac4d0c9d (diff) | |
download | rockbox-91ce4b2a60c4cbe8e3568f79c3a73572461ff40d.tar.gz rockbox-91ce4b2a60c4cbe8e3568f79c3a73572461ff40d.zip |
Optional dual-boot support in iAudio X5 and M5 bootloader, based on FS#5289.
In order to enable it, #define HAVE_DUALBOOT when building the bootloader.
Do not use the automatically created x5_fw.bin or m5_fw.bin, but use mkboot
to create a new firmware file from an OF x5_fw.bin resp. m5_fw.bin and
bootloader.bin.
The dual-boot bootloader boots the OF when pressing Play (main or remote) for
more than 3 seconds. Hold it a bit longer because the OF also checks buttons.
Short press boots rockbox.
As a bonus, the Play button read (for hold check) is done a bit earlier for
single-boot mode as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30018 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/iaudio')
-rw-r--r-- | firmware/target/coldfire/iaudio/boot.lds | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/coldfire/iaudio/boot.lds b/firmware/target/coldfire/iaudio/boot.lds index 4cd0e8eaab..9288a6c18b 100644 --- a/firmware/target/coldfire/iaudio/boot.lds +++ b/firmware/target/coldfire/iaudio/boot.lds | |||
@@ -14,8 +14,12 @@ STARTUP(target/coldfire/crt0.o) | |||
14 | #define IRAMSIZE 0x18000 | 14 | #define IRAMSIZE 0x18000 |
15 | #endif | 15 | #endif |
16 | #define DRAMORIG 0x31000000 | 16 | #define DRAMORIG 0x31000000 |
17 | #ifdef HAVE_DUALBOOT | ||
18 | #define FLASHORIG 0x00150000 | ||
19 | #else | ||
17 | #define FLASHORIG 0x00010000 | 20 | #define FLASHORIG 0x00010000 |
18 | #define FLASHSIZE 4M | 21 | #endif |
22 | #define FLASHSIZE 4M - FLASHORIG | ||
19 | 23 | ||
20 | MEMORY | 24 | MEMORY |
21 | { | 25 | { |