Sunil V L schrieb am Mi., 14. Juni 2023, 19:01: > Recent updates to RISC-V qemu virt platform merged today (07/14), > have enabled both pflash devices for the S-mode payload like EDK2. > These updates also aligned the design similar to other architectures > where pflash0 is for read-only code and pflash1 for variable store. > Previously only pflash1 was available for S-mode use. > > Current EDK2 will not work with this latest qemu changes since it always > assumed to boot from pflash1. So, separate the code and variable > store and use pflash0 to keep the code. > Not all users will have the newest QEMU provided by their Linx distro. Will it be possible to boot the the same EDK II binary on old and new QEMU releases? Best regards Heinrich > Add 'readme' about build and test as per these changes. > > The changes are available in the branch : > https://github.com/vlsunil/edk2/tree/separate_code_vars > > CI tests passed (#4553). > > Cc: Ard Biesheuvel > Cc: Jiewen Yao > Cc: Jordan Justen > Cc: Gerd Hoffmann > Cc: Andrei Warkentin > Cc: Heinrich Schuchardt > Cc: Dann Frazier > > > Sunil V L (4): > OvmfPkg/RiscVVirt: Fix couple of issues in VarStore > OvmfPkg/RiscVVirt: Add VirtNorFlashDeviceTreeLib library > OvmfPkg/RiscVVirt: Add support for separate code and variable store > OvmfPkg/RiscVVirt: Add a readme for build and test > > OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc | 2 +- > OvmfPkg/RiscVVirt/RiscVVirtQemu.fdf | 9 +- > .../VirtNorFlashDeviceTreeLib.inf | 40 +++++ > .../VirtNorFlashDeviceTreeLib.c | 137 ++++++++++++++++++ > OvmfPkg/RiscVVirt/README.md | 41 ++++++ > OvmfPkg/RiscVVirt/RiscVVirt.fdf.inc | 12 +- > OvmfPkg/RiscVVirt/VarStore.fdf.inc | 25 ++-- > 7 files changed, 245 insertions(+), 21 deletions(-) > create mode 100644 > OvmfPkg/RiscVVirt/Library/VirtNorFlashPlatformLib/VirtNorFlashDeviceTreeLib.inf > create mode 100644 > OvmfPkg/RiscVVirt/Library/VirtNorFlashPlatformLib/VirtNorFlashDeviceTreeLib.c > create mode 100644 OvmfPkg/RiscVVirt/README.md > > -- > 2.34.1 > >