From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:UEFI firmware volume (PI)" |
|---|
| claim | "EFI_FIRMWARE_VOLUME_HEADER: 0x38 fixed bytes then a run-length block map ended by {0,0}; Revision is 2, Reserved is 0, Checksum is a 16-bit value chosen so the header sums to zero, ExtHeaderOffset is relative to the header start (0 = none)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:UEFI firmware volume (PI)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "EFI_FIRMWARE_VOLUME_HEADER" |
|---|
| size_min | "0x40" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 16 |
|---|
| type | "uint8_t[16]" |
|---|
| name | "ZeroVector" |
|---|
|
| offset | "0x10" |
|---|
| size | 16 |
|---|
| type | "EFI_GUID" |
|---|
| name | "FileSystemGuid" |
|---|
|
| offset | "0x20" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "FvLength" |
|---|
|
| offset | "0x28" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "Signature" |
|---|
|
| offset | "0x2C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "Attributes" |
|---|
|
| offset | "0x30" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "HeaderLength" |
|---|
|
| offset | "0x32" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "Checksum" |
|---|
|
| offset | "0x34" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "ExtHeaderOffset" |
|---|
|
| offset | "0x36" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "Reserved" |
|---|
|
| offset | "0x37" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "Revision" |
|---|
|
| offset | "0x38" |
|---|
| size | 8 |
|---|
| type | "EFI_FV_BLOCK_MAP_ENTRY[]" |
|---|
| name | "BlockMap" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "EFI_FV_BLOCK_MAP_ENTRY {NumBlocks u32, Length u32}, the header struct with comments (checksum sums to zero, Revision set to 2, block map terminated by {0,0}), EFI_FVH_SIGNATURE and EFI_FVH_REVISION 0x02." |
|---|
| repo | "tianocore/edk2" |
|---|
| commit | "c1415771ac592ad8509351c46cd3cda4f38d7d52" |
|---|
| path | "MdePkg/Include/Pi/PiFirmwareVolume.h" |
|---|
| lines | "87-157" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "EFI_FIRMWARE_VOLUME_HEADER layout" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T03:50:25.337Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:04:44.907Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read EFI_FV_BLOCK_MAP_ENTRY and EFI_FIRMWARE_VOLUME_HEADER in edk2 PiFirmwareVolume.h at the cited commit: field order gives 0x38 fixed bytes, block map terminated by {0,0}, Revision 2, Reserved 0." |
|---|
|
|
|---|