diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-28 20:27:59 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-28 20:32:38 +0100 |
commit | 9e258652c47b0225730a19775304a33649f5c0a2 (patch) | |
tree | 41fe81749eee4fc833658208188d051141fe86c6 /firmware/target/mips/ingenic_x1000/installer-x1000.h | |
parent | 202eb8c06a0b2454b9b2ab0314fc43620f011e16 (diff) | |
download | rockbox-9e258652c4.tar.gz rockbox-9e258652c4.zip |
x1000: Add a basic sanity check for bootloader backups
The bootloader backup is intentionally simple, but it's a little
*too* simple. Add a sanity check to make sure what we're backing
up or restoring contains the first 8 bytes of the SPL header.
This isn't going to catch all possible problems, but it'll stop
obviously non-functional backups from being restored.
Change-Id: I6e80351aeb96c467f0514bd0ecd77d94ff72a8f8
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/installer-x1000.h')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/installer-x1000.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/installer-x1000.h b/firmware/target/mips/ingenic_x1000/installer-x1000.h index b71839a907..9b0f1e4bd6 100644 --- a/firmware/target/mips/ingenic_x1000/installer-x1000.h +++ b/firmware/target/mips/ingenic_x1000/installer-x1000.h @@ -45,6 +45,7 @@ enum { IERR_NAND_OPEN, IERR_NAND_READ, IERR_NAND_WRITE, + IERR_CORRUPTED_BACKUP, }; extern int install_bootloader(const char* filename); |