当前位置:网站首页>UEFI development learning 2 - running ovmf in QEMU
UEFI development learning 2 - running ovmf in QEMU
2022-07-05 07:51:00 【Yang_ Winston】
stay qemu Run in OVMF
install qemu
The first thing you need to do is Ubuntu Install in qemu, Use the following command to install .
sudo apt-get install qemu
Choose the right processor architecture
Be sure to align the processor architecture for OVMF with the proper processor archtecture of QEMU.
For the IA32 build of OVMF, there is a little more choice, since the X64 processor is also compatible with IA32. Therefore, with the IA32 build of OVMF, you can use the following commands: qemu, qemu-system-i386 or qemu-system-x86_64.
For the X64 build of OVMF, however, you can only use the qemu-system-x86_64 command.
by OVMF QEMU establish BIOS Catalog
- Create a directory , also cd Go to the directory .
bash$ mkdir ~/run-ovmf
bash$ cd ~/run-ovmf
- take OVMF.fd Copy files to this directory , And rename to bios.bin:
bash$ cp /path/to/ovmf/OVMF.fd bios.bin
- Create a directory as QEMU Hard disk image of
(QEMU can turn the contents of a directory into a disk image ‘on-the-fly’):
bash$ mkdir hda-contents
Use OVMF function QEMU
The following three commands are similar , But the parameters are different .
bash$ qemu-system-x86_64 -L . -hda fat:hda-contents
Add -net none You can disable PXE start-up .
qemu-system-x86_64 -L . --bios ~/src/edk2/Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd -net none
I use the following command .
qemu-system-x86_64 -pflash bios.bin -hda fat:hda-contents -net none


Input exit You can quit 
Reference resources :How-to-build-OVMF
Last one :UEFI Developing learning 1 - Ubuntu18.04 build edk2 Environmental Science
边栏推荐
- 如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
- MySQL - storage engine
- Global and Chinese market of resistivity meter 2022-2028: Research Report on technology, participants, trends, market size and share
- Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
- The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
- The printer encountered an abnormal configuration problem 0x8007007e (win10)
- What is Bezier curve? How to draw third-order Bezier curve with canvas?
- Global and Chinese market of rammers 2022-2028: Research Report on technology, participants, trends, market size and share
- Function and usage of function pointer
- Altium Designer 19.1.18 - 清除测量距离产生的信息
猜你喜欢

MySQL - storage engine

Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world

Differences between pycharm and idle and process -- join() in vs Code

What is Bezier curve? How to draw third-order Bezier curve with canvas?

A simple method to prove 1/t Fourier transform

Software designer: 03 database system

L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!

Package ‘*****‘ has no installation candidate

Opendrive arc drawing script

SQL JOINS
随机推荐
MySQL blind note common functions
[professional literacy] core conferences and periodicals in the field of integrated circuits
Global and Chinese market of core pallets 2022-2028: Research Report on technology, participants, trends, market size and share
mysql 盲注常见函数
Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
Apple terminal skills
软件设计师:03-数据库系统
Can't find real-time chat software? Recommend to you what e-commerce enterprises are using!
Practical application cases of digital Twins - fans
Openxlsx field reading problem
[untitled] record the visual shock of the Winter Olympics and the introduction of the display screen
研究發現,跨境電商客服系統都有這五點功能!
如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
Summary of STM32 serial port sending and receiving data methods
Record the torch encountered by win10 cuda. is_ False problem in available()
生产中影响滑环质量的因素
Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
Deepin, help ('command ') output saved to file
Distinction between heap and stack
1089 Insert or Merge 含测试点5