Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

关于hardware native nvram 问题

cattyhouse edited this page Jul 4, 2019 · 4 revisions

现在已经可以从最新的EDk2来编译 VariableRuntimeDxe.efi 并用于OpenCore了, 解决没有hardware/native nvram主板的一系列问题

git clone https://github.com/acidanthera/audk UDK
cd UDK
source edksetup.sh
make -C BaseTools
build -a X64 -b RELEASE -t XCODE5 -p MdeModulePkg/MdeModulePkg.dsc -m MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf --pcd=PcdEmuVariableNvModeEnable=1
cp Build/MdeModule/RELEASE_XCODE5/X64/VariableRuntimeDxe.efi ~/Desktop/
  • 复制 VariableRuntimeDxe.efi 到EFI/OC/Drivers/
  • 然后在config.plist里面的UEFI/Drivers/加入VariableRuntimeDxe.efi
  • Asrock B360M-HDV 测试完美.

之前编译的时候没有加入 --pcd=PcdEmuVariableNvModeEnable=1, 这个efi是不可用的, 受到insanelymac @dgsga 的启发, 才加入这个参数,目前关机,重启,睡眠,唤醒,等都正常.

Clone this wiki locally