fusee: Add automatic firmware version detection.

This commit is contained in:
hexkyz
2018-08-23 19:57:01 +01:00
parent c40bb9b317
commit 8edec43be2
2 changed files with 72 additions and 39 deletions

View File

@@ -6,7 +6,17 @@
#define PACKAGE1LOADER_SIZE_MAX 0x40000
typedef struct package1_header_t {
typedef struct {
uint32_t package1loader_hash;
uint32_t secmon_hash;
uint32_t nx_bootloader_hash;
uint32_t _0xC;
char build_timestamp[0x0E];
uint8_t _0x1E;
uint8_t version;
} package1loader_header_t;
typedef struct {
char magic[4];
uint32_t warmboot_size;
uint32_t warmboot_offset;