- Embedded Linux Development with Yocto Project
- Otavio Salvador Daiane Angolini
- 237字
- 2021-12-08 12:35:25
Running images in QEMU
As many projects have a small portion that is hardware dependent, the hardware emulation comes to speed up the development process by enabling sample to run without involving an actual hardware.
Quick EMUlator (QEMU) is a free and open source software package that performs hardware virtualization. The QEMU-based machines allow test and development without real hardware. Currently, the ARM, MIPS, MIPS64, PowerPC, and x86 and x86-64 emulations are supported.
The runqemu
script enables and makes the use of QEMU with the OpenEmbedded-Core supported machines easier. The way to run the script is as follows:
$: runqemu <machine> <zimage> <filesystems>
Here, <machine>
is the machine/architecture to be used as qemuarm
, qemumips
, qemuppc
, qemux86
, or qemux86-64
. Also, <zimage>
is the path to a kernel (for example, zimage-qemuarm.bin
). Finally,<filesystem>
is the path to an ext3
image (for example, filesystem-qemuarm.ext3
) or an NFS directory.
So, for example, in case we run runqemu qemuarm core-image-full-cmdline
, we can see something as shown in the following screenshot:

We can log in with the root account using an empty password. The system behaves as a regular system even being used inside the QEMU. The process to deploy an image in a real hardware varies depending on the type of storage used, bootloader, and so on. However, the process to generate the image is the same. We explore how to build and run an image in the Wandboard machine in Chapter 14, Booting Our Custom Embedded Linux.
- PLC控制程序精編108例
- Windows Vista基礎(chǔ)與應(yīng)用精品教程
- Linux系統(tǒng)文件安全實(shí)戰(zhàn)全攻略
- WindowsServer2012Hyper-V虛擬化部署與管理指南
- 嵌入式實(shí)時(shí)操作系統(tǒng)μC/OS原理與實(shí)踐
- 蘋果OS X Mavericks 10.9應(yīng)用大全
- AutoCAD 2014中文版從入門到精通
- 一學(xué)就會(huì):Windows Vista應(yīng)用完全自學(xué)手冊(cè)
- 精解Windows 10
- 從零開始學(xué)安裝與重裝系統(tǒng)
- Linux應(yīng)用大全 基礎(chǔ)與管理
- 嵌入式微系統(tǒng)
- 應(yīng)急指揮信息系統(tǒng)設(shè)計(jì)
- Android應(yīng)用性能優(yōu)化最佳實(shí)踐
- Android Telephony原理解析與開發(fā)指南