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 <WORKSPACE>\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:<WORKSPACE> -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后重新启动。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值