From b04a7a86e1d903a37091486764d0dfe09372d663 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sun, 11 Oct 2009 01:37:12 +0000 Subject: Make the Nano2G bootloader actually function as a bootloader. The resulting bootloader-ipodnano2g.ipod file needs to be encrypted on a target using the crypt_firmware plugin to create bootloader-ipodnano2g.ipodx, which can then be written to the firmware partition using the ipodpatcher patch at FS#10609. Dual-booting doesn't work yet - only Rockbox can be run. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23084 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/s5l8700/ipodnano2g/ftl-target.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/target/arm/s5l8700/ipodnano2g/ftl-target.h') diff --git a/firmware/target/arm/s5l8700/ipodnano2g/ftl-target.h b/firmware/target/arm/s5l8700/ipodnano2g/ftl-target.h index f214964551..0c36db9799 100644 --- a/firmware/target/arm/s5l8700/ipodnano2g/ftl-target.h +++ b/firmware/target/arm/s5l8700/ipodnano2g/ftl-target.h @@ -25,6 +25,11 @@ #include "config.h" #include "inttypes.h" +#ifdef BOOTLOADER +/* Bootloaders don't need write access */ +#define FTL_READONLY +#endif + uint32_t ftl_init(void); uint32_t ftl_read(uint32_t sector, uint32_t count, void* buffer); uint32_t ftl_write(uint32_t sector, uint32_t count, const void* buffer); -- cgit v1.2.3