1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-04 11:51:50 +00:00

feat(legacy): add 'stay in bootloader' bootloader to firmware'

This commit is contained in:
Ondrej Mikle 2021-02-24 11:18:40 +01:00 committed by Pavol Rusnak
parent 10be0230a5
commit f9917e8d47
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 6 additions and 0 deletions

View File

@ -126,6 +126,12 @@ static int known_bootloader(int r, const uint8_t *hash) {
"\x07\x6b\xcd\xad\x72\xd7\x0d\xa2\x2a\x63\xd8\x89\x6b\x63\x91\xd8", "\x07\x6b\xcd\xad\x72\xd7\x0d\xa2\x2a\x63\xd8\x89\x6b\x63\x91\xd8",
32)) 32))
return 1; // 1.8.0 shipped with fw 1.8.0 and 1.8.1 return 1; // 1.8.0 shipped with fw 1.8.0 and 1.8.1
if (0 ==
memcmp(hash,
"\xf0\xa1\x9c\x9b\x0a\xf6\xce\xb1\x49\xcb\xa6\x4e\xcf\xd0\x1a\x6a"
"\x01\xe6\x07\xd3\x1f\xed\xef\xf8\x65\xd5\x19\xa8\x6f\xe9\x15\x1a",
32))
return 1; // 1.9.0 'stay in bootloader'
return 0; return 0;
} }
#endif #endif

Binary file not shown.