From 64595105b1e63eedcd0c47290cf6c0d5e7e4cd46 Mon Sep 17 00:00:00 2001 From: Marc Guay Date: Wed, 27 May 2009 22:32:39 +0000 Subject: Set up the c100 for dual-booting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21105 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config-c100.h | 4 ++++ firmware/target/arm/tcc77x/crt0.S | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/firmware/export/config-c100.h b/firmware/export/config-c100.h index cedc7c3aed..1fe1a6ca64 100644 --- a/firmware/export/config-c100.h +++ b/firmware/export/config-c100.h @@ -124,4 +124,8 @@ #define BOOTFILE "rockbox." BOOTFILE_EXT #define BOOTDIR "/" +#ifdef BOOTLOADER +#define TCCBOOT +#endif + #endif /* SIMULATOR */ diff --git a/firmware/target/arm/tcc77x/crt0.S b/firmware/target/arm/tcc77x/crt0.S index 68946eb6fa..2c5af3f21b 100644 --- a/firmware/target/arm/tcc77x/crt0.S +++ b/firmware/target/arm/tcc77x/crt0.S @@ -63,7 +63,7 @@ bl_entrypoint: .word 0 /* Location in RAM of the start of our bootloader */ .word 0 /* Second CRC32 */ .word 0 /* length of firmware file */ -#ifdef LOGIK_DAX +#if defined(LOGIK_DAX) || defined(SANSA_C100) /* Some original firmwares have 0x40 bytes of zeroes here - we don't know why, but err on the side of caution and include it here. */ @@ -83,7 +83,7 @@ start_loc: #ifdef TCCBOOT mov r0, #0x80000000 -#if defined(LOGIK_DAX) +#if defined(LOGIK_DAX) || defined(SANSA_C100) ldr r0, [r0, #0x300] /* Hold button is GPIO A, pin 0x2 */ tst r0, #0x2 #elif defined(SANSA_M200) -- cgit v1.2.3