diff options
-rw-r--r-- | apps/debug_menu.c | 17 | ||||
-rw-r--r-- | firmware/export/config-gigabeat-s.h | 2 |
2 files changed, 17 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 1ea27b4f75..7aed5edd70 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -2373,6 +2373,20 @@ static bool dbg_save_roms(void) | |||
2373 | 2373 | ||
2374 | return false; | 2374 | return false; |
2375 | } | 2375 | } |
2376 | #elif CONFIG_CPU == IMX31L | ||
2377 | static bool dbg_save_roms(void) | ||
2378 | { | ||
2379 | int fd; | ||
2380 | |||
2381 | fd = creat("/flash_rom_A0000000-A01FFFFF.bin"); | ||
2382 | if (fd >= 0) | ||
2383 | { | ||
2384 | write(fd, (void*)0xa0000000, FLASH_SIZE); | ||
2385 | close(fd); | ||
2386 | } | ||
2387 | |||
2388 | return false; | ||
2389 | } | ||
2376 | #endif /* CPU */ | 2390 | #endif /* CPU */ |
2377 | 2391 | ||
2378 | #ifndef SIMULATOR | 2392 | #ifndef SIMULATOR |
@@ -2709,7 +2723,8 @@ struct the_menu_item { | |||
2709 | }; | 2723 | }; |
2710 | static const struct the_menu_item menuitems[] = { | 2724 | static const struct the_menu_item menuitems[] = { |
2711 | #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \ | 2725 | #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \ |
2712 | (defined(CPU_PP) && !(CONFIG_STORAGE & STORAGE_SD)) | 2726 | (defined(CPU_PP) && !(CONFIG_STORAGE & STORAGE_SD)) || \ |
2727 | CONFIG_CPU == IMX31L | ||
2713 | { "Dump ROM contents", dbg_save_roms }, | 2728 | { "Dump ROM contents", dbg_save_roms }, |
2714 | #endif | 2729 | #endif |
2715 | #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \ | 2730 | #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \ |
diff --git a/firmware/export/config-gigabeat-s.h b/firmware/export/config-gigabeat-s.h index ae57825388..2939ecb693 100644 --- a/firmware/export/config-gigabeat-s.h +++ b/firmware/export/config-gigabeat-s.h | |||
@@ -162,7 +162,7 @@ | |||
162 | #define HAVE_POWEROFF_WHILE_CHARGING | 162 | #define HAVE_POWEROFF_WHILE_CHARGING |
163 | 163 | ||
164 | /* The size of the flash ROM */ | 164 | /* The size of the flash ROM */ |
165 | #define FLASH_SIZE 0x400000 | 165 | #define FLASH_SIZE 0x200000 |
166 | 166 | ||
167 | /* Define this to the CPU frequency */ | 167 | /* Define this to the CPU frequency */ |
168 | /* TODO */ | 168 | /* TODO */ |