Skip to content

Commit

Permalink
JadePkg: Fix wrong size in NVRAM Storage Header
Browse files Browse the repository at this point in the history
The size of NVRAM Storage is 512KB including 192KB for Variable Storage,
64KB for FTW, and 256KB for FTW Spare. The header in the FV should be
8 blocks x 64KB per block instead of 3 blocks. It did not cause the
significant issue because EDK2 code adjusts this but it must be changed
for a correct definition in NVRAM header.

The CheckSum in the header is updated as well.

Signed-off-by: Nhi Pham <[email protected]>
  • Loading branch information
nhivp committed Oct 11, 2024
1 parent 461d42a commit 15d91fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Platform/Ampere/JadePkg/Jade.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ DATA = {
# Signature "_FVH" # Attributes
0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
# HeaderLength # CheckSum # ExtHeaderOffset #Reserved #Revision
0x48, 0x00, 0x2D, 0x09, 0x00, 0x00, 0x00, 0x02,
# Blockmap[0]: 0x2 Blocks * 0x40000 Bytes / Block
0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
0x48, 0x00, 0x2A, 0x09, 0x00, 0x00, 0x00, 0x02,
# Blockmap[0]: 0x8 Blocks * 0x10000 Bytes / Block
0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
# Blockmap[1]: End
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
## This is the VARIABLE_STORE_HEADER
Expand Down

0 comments on commit 15d91fe

Please sign in to comment.