You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (i=0; i< (FIRMWARE_PARTITION_SIZE- (fsize+5)); i++)
202
+
for (i=0; i< (FIRMWARE_PARTITION_SIZE- (fsize)); i++)
199
203
write(fd, &pad, 1);
200
-
write(fd, update_flags, 5);
204
+
lseek(fd, FIRMWARE_PARTITION_SIZE, SEEK_SET);
201
205
for (i=0; i<SWAP_SIZE; i++)
202
206
write(fd, &pad, 1);
203
207
}
208
+
if (strncmp((char*)&signature_word, "WOLF", 4) !=0) {
209
+
fprintf(stderr, "Warning: the binary file provided does not appear to contain a valid firmware partition file. (If the update is encrypted, this is OK)\n");
0 commit comments