Skip to content

Commit 3ed9488

Browse files
committed
add alternative header ending signature
This is found in ASRock firmware images, e.g. A520M-HVS A52MIX_2.73. Also seen in coreboot 3rd_party/blobs/mainboard/, and used in Fiano: https://github.com/linuxboot/fiano/blob/d844cd98141518f41b3e4012bcf419984074a2b4/pkg/amd/apcb/internal.go#L16 Signed-off-by: Daniel Maslowski <info@orangecms.org>
1 parent 5ff7ee6 commit 3ed9488

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/apcb.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1268,8 +1268,12 @@ impl<'a> Apcb<'a> {
12681268
"V3_HEADER_EXT::data_offset",
12691269
));
12701270
}
1271+
// NOTE: The AMD docs for Turin, Genoa, Milan and Rome say `BCPA`,
1272+
// i.e., `APCB` backwards. Some vendors are using `BCBA` instead,
1273+
// e.g., ASRock and coreboot (`3rdparty/blobs/mainboard/`).
12711274
if !options.check_signature_ending
12721275
|| value.signature_ending == *b"BCPA"
1276+
|| value.signature_ending == *b"BCBA"
12731277
{
12741278
} else {
12751279
return Err(Error::FileSystem(

0 commit comments

Comments
 (0)