当前位置:网站首页>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
边栏推荐
- Day07 type of mathematical operator automatic conversion relational operator bitwise operator blind date math
- The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
- Realization of binary relation of discrete mathematics with C language and its properties
- Apple terminal skills
- Record the visual shock of the Winter Olympics and the introduction of the screen 2
- Threads and processes
- msys2
- Differences between pycharm and idle and process -- join() in vs Code
- Win10 shortcut key
- 研究發現,跨境電商客服系統都有這五點功能!
猜你喜欢
Latex notes
Pagoda create multiple sites with one server
Application of ultra pure water particle counter in electronic semiconductors
About the problem that MySQL connector net cannot be cleared in MySQL
Opendrive arc drawing script
Altium designer 19.1.18 - change the transparency of copper laying
Altium Designer 19.1.18 - 隐藏某一个网络的飞线
SQL JOINS
MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
mysql 盲注常见函数
随机推荐
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
NSIS finds out whether the file exists and sets the installation path
Deepin get file (folder) list
Global and Chinese markets for medical oxygen machines 2022-2028: Research Report on technology, participants, trends, market size and share
SQL JOINS
Close of office 365 reading
Apple terminal skills
[idea] common shortcut keys
Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
. Net service governance flow limiting middleware -fireflysoft RateLimit
Detour of Tkinter picture scaling
How to excavate and research ideas from the paper
[MySQL] database knowledge record
Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share
Apple system shortcut key usage
[neo4j] common operations of neo4j cypher and py2neo
Day07 type of mathematical operator automatic conversion relational operator bitwise operator blind date math
P3D gauge size problem
Build your own random wallpaper API for free
Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world