@@ -87,6 +87,15 @@ char bl_hash_v2_1_0[32] =
87
87
char bl_hash_v2_1_1 [32 ] =
88
88
"\xa3\xf8\xc7\x45\xff\x33\xcd\x92\xa7\xe9\x5d\x37\xc7\x6c\x65\x52\x3d\x25"
89
89
"\x8a\x70\x35\x2e\xa4\x4a\x23\x20\x38\xec\x4e\xc3\x8d\xea" ;
90
+ char bl_hash_v2_1_2 [32 ] =
91
+ "\x3b\x97\x59\x6e\xd6\x12\xaa\x29\xa7\x4a\x7f\x51\xf3\x3e\xa8\x5f\xd6\xe0"
92
+ "\xcf\xe7\x34\x0d\xfb\xb9\x6f\x0c\x17\x07\x7b\x36\x34\x98" ;
93
+ char bl_hash_v2_1_3 [32 ] =
94
+ "\xe6\x68\x5a\xb1\x48\x44\xd0\xa3\x81\xd6\x58\xd7\x7e\x13\xd6\x14\x5f\xe7"
95
+ "\xae\x80\x46\x9e\x5a\x53\x60\x21\x0a\xe9\xc3\x44\x7a\x77" ;
96
+ char bl_hash_v2_1_4 [32 ] =
97
+ "\xfe\x98\x45\x4e\x7e\xbd\x4a\xef\x4a\x6d\xb5\xbd\x4c\x60\xf5\x2c\xf3\xf5"
98
+ "\x8b\x97\x42\x83\xa7\xc1\xe1\xfc\xc5\xfe\xa0\x2c\xf3\xeb" ;
90
99
91
100
BootloaderKind get_bootloaderKind (void ) {
92
101
static uint8_t bl_hash [SHA256_DIGEST_LENGTH ];
@@ -103,6 +112,12 @@ BootloaderKind get_bootloaderKind(void) {
103
112
104
113
if (0 == memcmp (bl_hash , bl_hash_v2_1_1 , 32 )) return BLK_v2_1_1 ;
105
114
115
+ if (0 == memcmp (bl_hash , bl_hash_v2_1_2 , 32 )) return BLK_v2_1_2 ;
116
+
117
+ if (0 == memcmp (bl_hash , bl_hash_v2_1_3 , 32 )) return BLK_v2_1_3 ;
118
+
119
+ if (0 == memcmp (bl_hash , bl_hash_v2_1_4 , 32 )) return BLK_v2_1_4 ;
120
+
106
121
// Hotpatched bootloaders
107
122
// ----------------------
108
123
if (0 == memcmp (bl_hash , bl_hash_v1_0_0_hotpatched , 32 )) return BLK_v1_0_0 ;
0 commit comments