summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/RiscVVirt
diff options
context:
space:
mode:
authorQingyu Shang <2931013282@sjtu.edu.cn>2023-08-11 19:04:43 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-08-25 01:54:50 +0000
commit819cfc6b42a68790a23509e4fcc58ceb70e1965e (patch)
tree31b3a187d69e49d5ebd23c2ec8c24b39020c9170 /OvmfPkg/RiscVVirt
parent00b51e0d78a547dd78119ec44fcc74a01b6f79c8 (diff)
downloadedk2-819cfc6b42a68790a23509e4fcc58ceb70e1965e.tar.gz
edk2-819cfc6b42a68790a23509e4fcc58ceb70e1965e.tar.bz2
edk2-819cfc6b42a68790a23509e4fcc58ceb70e1965e.zip
OvmfPkg/RiscVVirt: Fix issues in VarStore Blockmap configedk2-stable202308
The block size configuration of Blockmap does not match that in Qemu VirtNorFlash, which causes variable data to be written into FtwWorkBlock by mistake, resulting in data loss during reboot. Fix it and update new checksum value. Signed-off-by: Qingyu Shang <2931013282@sjtu.edu.cn> Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Diffstat (limited to 'OvmfPkg/RiscVVirt')
-rw-r--r--OvmfPkg/RiscVVirt/VarStore.fdf.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/OvmfPkg/RiscVVirt/VarStore.fdf.inc b/OvmfPkg/RiscVVirt/VarStore.fdf.inc
index 6bc619e50c..aba32315cc 100644
--- a/OvmfPkg/RiscVVirt/VarStore.fdf.inc
+++ b/OvmfPkg/RiscVVirt/VarStore.fdf.inc
@@ -30,9 +30,9 @@ DATA = {
# Signature "_FVH" # Attributes
0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
# HeaderLength # CheckSum # ExtHeaderOffset #Reserved #Revision
- 0x48, 0x00, 0x2F, 0xF1, 0x00, 0x00, 0x00, 0x02,
- # Blockmap[0]: 0x20 Blocks * 0x1000 Bytes / Block
- 0x00, 0x08, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00,
+ 0x48, 0x00, 0x28, 0x09, 0x00, 0x00, 0x00, 0x02,
+ # Blockmap[0]: 0x3 Blocks * 0x40000 Bytes / Block
+ 0x3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
# Blockmap[1]: End
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
## This is the VARIABLE_STORE_HEADER