-
Notifications
You must be signed in to change notification settings - Fork 712
Closed
Description
Continuing from #454 (comment)
UEFITool mis-parses some firmware update capsules I have encountered due to these regularly-placed unidentified sections. Within each processor generation, the size and header of these sections is consistent.
I have collected sample capsules from different vendors and different generations of Intel chipsets for which this applies. I haven't located an Aptio AMD update capsule so I don't know if this issue also exists for those. I didn't see this problem with Insyde capsules from Framework (for either CPU vendor).
Lunar Lake
To remove the sections:
perl -0777 -pe 's/\x03\x00\x00\x00\x05\x00\x00\x00.{384}\x01\x00\x01\x00.{384}(?:\x02\x00\x00\x00.*?\x00\x00\x00\x00\xFF\x00\x00\x00\x00\x00\x00\x00)?//sg' in.cap > out.cap
Unmodified samples:
LNK0023 (ASUS).zip
P16ALY (Samsung).zip
Meteor Lake
perl -0777 -pe 's/\x02\x00\x00\x00\x03\x00\x00\x00.{384}\x01\x00\x01\x00.{384}(?:\x02\x00\x00\x00.*?\x00\x00\x00\x00\xFF\x00\x00\x00\x00\x00\x00\x00)?//sg'
Alder Lake
perl -0777 -pe 's/\x01\x00\x00\x00\x01\x00\x00\x00.{256}\x01\x00\x01\x00.{256}(?:\x02\x00\x00\x00.*?\x00\x00\x00\x00\xFF\x00\x00\x00\x00\x00\x00\x00)?//sg'
Metadata
Metadata
Assignees
Labels
No labels