diff options
-rw-r--r-- | apps/plugins/SOURCES | 2 | ||||
-rw-r--r-- | apps/plugins/iriver_flash.c | 4 | ||||
-rw-r--r-- | firmware/export/config/iriverh300.h | 11 |
3 files changed, 12 insertions, 5 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index c0246eecc4..910ffe4161 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES | |||
@@ -61,7 +61,7 @@ iriverify.c | |||
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) /* Requires real hardware */ | 63 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) /* Requires real hardware */ |
64 | #if defined(IRIVER_H100_SERIES) | 64 | #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) |
65 | iriver_flash.c | 65 | iriver_flash.c |
66 | #endif | 66 | #endif |
67 | 67 | ||
diff --git a/apps/plugins/iriver_flash.c b/apps/plugins/iriver_flash.c index cecd4990a9..2ef6872c7d 100644 --- a/apps/plugins/iriver_flash.c +++ b/apps/plugins/iriver_flash.c | |||
@@ -27,7 +27,7 @@ | |||
27 | unsigned char *audiobuf; | 27 | unsigned char *audiobuf; |
28 | ssize_t audiobuf_size; | 28 | ssize_t audiobuf_size; |
29 | 29 | ||
30 | #ifndef IRIVER_H100_SERIES | 30 | #if !defined(IRIVER_H100_SERIES) && !defined(IRIVER_H300_SERIES) |
31 | #error this platform is not (yet) flashable | 31 | #error this platform is not (yet) flashable |
32 | #endif | 32 | #endif |
33 | 33 | ||
@@ -48,7 +48,7 @@ struct flash_info | |||
48 | char name[32]; | 48 | char name[32]; |
49 | }; | 49 | }; |
50 | 50 | ||
51 | #ifdef IRIVER_H100_SERIES | 51 | #if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) |
52 | #define SEC_SIZE 4096 | 52 | #define SEC_SIZE 4096 |
53 | #define BOOTLOADER_ERASEGUARD (BOOTLOADER_ENTRYPOINT / SEC_SIZE) | 53 | #define BOOTLOADER_ERASEGUARD (BOOTLOADER_ENTRYPOINT / SEC_SIZE) |
54 | enum sections { | 54 | enum sections { |
diff --git a/firmware/export/config/iriverh300.h b/firmware/export/config/iriverh300.h index e2f16d2b4e..ca0df7217e 100644 --- a/firmware/export/config/iriverh300.h +++ b/firmware/export/config/iriverh300.h | |||
@@ -157,6 +157,9 @@ | |||
157 | /* Define this if you want to use coldfire's i2c interface */ | 157 | /* Define this if you want to use coldfire's i2c interface */ |
158 | #define CONFIG_I2C I2C_COLDFIRE | 158 | #define CONFIG_I2C I2C_COLDFIRE |
159 | 159 | ||
160 | /* Define this if you can run rockbox from flash memory */ | ||
161 | #define HAVE_FLASHED_ROCKBOX | ||
162 | |||
160 | /* The size of the flash ROM */ | 163 | /* The size of the flash ROM */ |
161 | #define FLASH_SIZE 0x400000 | 164 | #define FLASH_SIZE 0x400000 |
162 | 165 | ||
@@ -184,13 +187,17 @@ | |||
184 | #define BOOTFILE "rockbox." BOOTFILE_EXT | 187 | #define BOOTFILE "rockbox." BOOTFILE_EXT |
185 | #define BOOTDIR "/.rockbox" | 188 | #define BOOTDIR "/.rockbox" |
186 | 189 | ||
187 | #define BOOTLOADER_ENTRYPOINT 0x001F0000 | 190 | #define BOOTLOADER_ENTRYPOINT 0x003F0000 |
188 | #define FLASH_ENTRYPOINT 0x00001000 | 191 | #define FLASH_RAMIMAGE_ENTRY 0x00001000 |
192 | #define FLASH_ROMIMAGE_ENTRY 0x00100000 | ||
189 | #define FLASH_MAGIC 0xfbfbfbf1 | 193 | #define FLASH_MAGIC 0xfbfbfbf1 |
190 | 194 | ||
191 | /* Define this if there is an EEPROM chip */ | 195 | /* Define this if there is an EEPROM chip */ |
192 | #define HAVE_EEPROM | 196 | #define HAVE_EEPROM |
193 | 197 | ||
198 | /* Define this if the EEPROM chip is used */ | ||
199 | #define HAVE_EEPROM_SETTINGS | ||
200 | |||
194 | /* Define this for FM radio input available */ | 201 | /* Define this for FM radio input available */ |
195 | #define HAVE_FMRADIO_IN | 202 | #define HAVE_FMRADIO_IN |
196 | 203 | ||