Created
December 22, 2024 21:17
-
-
Save al3xtjames/a8a9c468c35e9b7c84db5323c0a99153 to your computer and use it in GitHub Desktop.
Hex Fiend binary template for `flashdrv.bin` included in Lenovo drive firmware update packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section "Header" { | |
ascii 12 "Magic" | |
ascii 26 "CSV Name" | |
set count [uint32 "Number of Entries"] | |
ascii 12 "Date" | |
ascii 10 "Version" | |
} | |
goto 0x80 | |
for {set i 0} {$i < $count} {incr i} { | |
section "Firmware Entry $i" { | |
ascii 24 "Lenovo Part Number?" | |
ascii 32 "Part Number" | |
hex 6 "Unknown" | |
ascii 10 "Original Firmware Version" | |
ascii 10 "Firmware Version 1" | |
ascii 20 "File Name 2" | |
hex 2 "Unknown" | |
ascii 10 "Firmware Version 2" | |
ascii 20 "File Name 2" | |
hex 0x38 "Unknown" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment