Skip to content

Commit

Permalink
boardloader hash update, add 1.6.4
Browse files Browse the repository at this point in the history
Signed-off-by: Adam BZH <[email protected]>
  • Loading branch information
424778940z committed Aug 12, 2024
1 parent 2fcac9b commit e4271a2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core/embed/trezorhal/br_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ static int onekey_known_boardloader(const uint8_t *hash) {
memcpy(boardloader_version, "1.6.3", strlen("1.6.3"));
return 1;
}
if (0 ==
memcmp(hash,
"\x16\xfd\xed\xee\xd0\x44\x2c\xb6\x57\x55\x8e\x40\xc6\x99\x89\x5e"
"\xa1\xb7\xbf\x3b\x20\x6f\x14\x39\x5b\xc9\xa5\x2a\xfc\xab\x45\xfe",
32)) {
memcpy(boardloader_version, "1.6.4", strlen("1.6.4"));
return 1;
}
memcpy(boardloader_version, "unknown boardloader",
strlen("unknown boardloader"));
return 1;
Expand Down Expand Up @@ -92,6 +100,14 @@ static int onekey_known_boardloader(const uint8_t *hash) {
memcpy(boardloader_version, "1.6.3", strlen("1.6.3"));
return 1;
}
if (0 ==
memcmp(hash,
"\xb5\x19\x4a\xe6\x11\x1a\x45\xf8\x0b\x1a\xf8\x45\x08\x14\xf0\x3a"
"\x51\x0b\x97\x15\x65\xb2\x64\xa2\xb3\xd4\x35\x2c\xef\x58\x9b\x49",
32)) {
memcpy(boardloader_version, "1.6.4", strlen("1.6.4"));
return 1;
}
memcpy(boardloader_version, "unknown boardloader",
strlen("unknown boardloader"));
return 1;
Expand Down

0 comments on commit e4271a2

Please sign in to comment.