diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-19 14:07:55 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-24 23:40:07 +0000 |
commit | 0d21d80ca8fc5f287eeb12ca67cc070b55ab46fa (patch) | |
tree | dc0c0106353708e1ac0e9df851c7fe4d85d91d3f /bootloader/x1000/x1000bootloader.h | |
parent | ee68d9df8e6b53476bb3bce8a024da60f9310a8b (diff) | |
download | rockbox-0d21d80ca8fc5f287eeb12ca67cc070b55ab46fa.tar.gz rockbox-0d21d80ca8fc5f287eeb12ca67cc070b55ab46fa.zip |
x1000: bootloader: add basic flash dump utility
Change-Id: Id4ce0f00a78ef27399bdef6a7b32c23f89b9cb05
Diffstat (limited to 'bootloader/x1000/x1000bootloader.h')
-rw-r--r-- | bootloader/x1000/x1000bootloader.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bootloader/x1000/x1000bootloader.h b/bootloader/x1000/x1000bootloader.h index 0309421ced..a7c9927f1b 100644 --- a/bootloader/x1000/x1000bootloader.h +++ b/bootloader/x1000/x1000bootloader.h | |||
@@ -167,6 +167,11 @@ int load_uimage_file(const char* filename, | |||
167 | int load_uimage_flash(uint32_t addr, uint32_t length, | 167 | int load_uimage_flash(uint32_t addr, uint32_t length, |
168 | struct uimage_header* uh, size_t* sizep); | 168 | struct uimage_header* uh, size_t* sizep); |
169 | 169 | ||
170 | int dump_flash(int fd, uint32_t addr, uint32_t length); | ||
171 | int dump_flash_file(const char* file, uint32_t addr, uint32_t length); | ||
172 | void dump_of_player(void); | ||
173 | void dump_of_recovery(void); | ||
174 | |||
170 | void recovery_menu(void) __attribute__((noreturn)); | 175 | void recovery_menu(void) __attribute__((noreturn)); |
171 | 176 | ||
172 | #endif /* __X1000BOOTLOADER_H__ */ | 177 | #endif /* __X1000BOOTLOADER_H__ */ |