OVMF模拟平台build步骤

1. Download Qemu from http://qemu.weilnetz.de/w64/ (please download latest version)

2. Install the Qemu  (Can install qemu successfully

3. After installing qemu and then you can enter "C:\Program Files\qemu" to check the result of installation

4. Download the latest edk2 source tree from git

5. Build Ovmf image by following command: build -p edk2\OvmfPkg\OvmfPkgIa32X64.dsc -a IA32 -a X64 -t VS2015x86  –b DEBUG  (Build Ovmf.fd successfully

6. Copy Ovmf.fd from \Build\Ovmf3264\DEBUG_VS2015x86\FV to C:\Program Files\qemu

7. Run: qemu-system-x86_64.exe -pflash OVMF.fd -m 512 -hda fat:rw: -debugcon file:debug.log -g lobal isa-debugcon.iobase=0x402   (The WORKSPACE is the directory that store the test tool like C:\Code\CodeBase\Build\MdeModule\DEBUG_VS2015x86\X64.  That is, enter into C:\Program Files\qemu, and input  qemu-system-x86_64.exe -pflash OVMF.fd -hda fat:rw:C:\ets-poc\Build\Ovmf3264\DEBUG_VS2013x86\X64

8. Enter shell and run the tool: ResetNotificationTest.efi, check the log from screen  (Check the test result by screen message)

9.  Close the qemu and restart it again

10.  Enter shell and run the tool ResetNotificationTest2.efi, check the log from screen

Qemu不是动态加载的,因此更改内容后需要关闭qemu后重新启动。

你可能感兴趣的:(UEFI编程学习之旅)