diff options
Diffstat (limited to 'bootloader/x1000/utils.c')
-rw-r--r-- | bootloader/x1000/utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bootloader/x1000/utils.c b/bootloader/x1000/utils.c index 1b56bdf50a..837160a113 100644 --- a/bootloader/x1000/utils.c +++ b/bootloader/x1000/utils.c | |||
@@ -250,3 +250,11 @@ void dump_of_recovery(void) | |||
250 | dump_flash_file("/of_recovery.img", OF_RECOVERY_ADDR, OF_RECOVERY_LENGTH); | 250 | dump_flash_file("/of_recovery.img", OF_RECOVERY_ADDR, OF_RECOVERY_LENGTH); |
251 | #endif | 251 | #endif |
252 | } | 252 | } |
253 | |||
254 | void dump_entire_flash(void) | ||
255 | { | ||
256 | #if defined(FIIO_M3K) || defined(SHANLING_Q1) || defined(EROS_QN) | ||
257 | /* TODO: this should read the real chip size instead of hardcoding it */ | ||
258 | dump_flash_file("/flash.img", 0, 2048 * 64 * 1024); | ||
259 | #endif | ||
260 | } | ||