当前位置:网站首页>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
边栏推荐
- Apple script
- Pointnet++ classification practice
- Markdown tips
- Threads and processes
- MySQL - storage engine
- 1089 Insert or Merge 含测试点5
- Global and Chinese market for blood typing 2022-2028: Research Report on technology, participants, trends, market size and share
- 数字孪生实际应用案例-风机篇
- Let me teach you how to develop a graphic editor
- 万字详解八大排序 必读(代码+动图演示)
猜你喜欢
Altium Designer 19.1.18 - 导入板框
[neo4j] common operations of neo4j cypher and py2neo
About the problem that MySQL connector net cannot be cleared in MySQL
P3D gauge size problem
Application of ultra pure water particle counter in electronic semiconductors
生产中影响滑环质量的因素
Thunderbird tutorial \ easy to use mail client
A complete set of indicators for the 10000 class clean room of electronic semiconductors
Butterfly theme beautification - Page frosted glass effect
Markdown tips
随机推荐
Threads and processes
.NET服务治理之限流中间件-FireflySoft.RateLimit
How to excavate and research ideas from the paper
Altium designer 19.1.18 - Import frame
如何将EasyCVR平台RTSP接入的设备数据迁移到EasyNVR中?
Apple modify system shortcut key
Altium Designer 19.1.18 - 隐藏某一个网络的飞线
Let me teach you how to develop a graphic editor
GPIO circuit principle of stm32
Readme, self study record
Query the table name used by kettle in Oracle
Exit of pyGame, idle and pycharm
editplus
Global and Chinese markets for medical oxygen machines 2022-2028: Research Report on technology, participants, trends, market size and share
Markdown tips
Logistic regression: the most basic neural network
Global and Chinese market for blood typing 2022-2028: Research Report on technology, participants, trends, market size and share
Detour of Tkinter picture scaling
deepin 20 kivy unable to get a window, abort
Using C language to realize IIC driver in STM32 development