From 15d91fe1dbdb290c713aae06adf8c2f4e49e3d24 Mon Sep 17 00:00:00 2001 From: Nhi Pham Date: Wed, 20 Jul 2022 21:48:32 +0700 Subject: [PATCH] JadePkg: Fix wrong size in NVRAM Storage Header 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 --- Platform/Ampere/JadePkg/Jade.fdf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Platform/Ampere/JadePkg/Jade.fdf b/Platform/Ampere/JadePkg/Jade.fdf index 0a080df7bb..6dfd8e8d15 100644 --- a/Platform/Ampere/JadePkg/Jade.fdf +++ b/Platform/Ampere/JadePkg/Jade.fdf @@ -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