- Embedded Linux Development using Yocto Projects(Second Edition)
- Otavio Salvador Daiane Angolini
- 248字
- 2021-07-02 15:08:42
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 a test run without involving any 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, ARM64, MIPS, MIPS64, PowerPC, and x86 and x86-64 emulations are supported.
The runqemu script enables and makes use of QEMU with the OpenEmbedded-Core supported machines easier. The way to run the script is as follows:
$ runqemu <machine> <zimage> <filesystem>
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. The parameters <zimage> and <filesystem> are optional.
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 to 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 BeagleBone Black, Raspberry Pi 3, and Wandboard machines in Chapter 14, Booting Our Custom Embedded Linux.
- 工業(yè)機器人虛擬仿真實例教程:KUKA.Sim Pro(全彩版)
- 3D Printing with RepRap Cookbook
- Practical Data Wrangling
- 協(xié)作機器人技術及應用
- 計算機原理
- 機艙監(jiān)測與主機遙控
- 大數(shù)據(jù)技術入門(第2版)
- Data Wrangling with Python
- 永磁同步電動機變頻調速系統(tǒng)及其控制(第2版)
- Windows 7寶典
- CompTIA Network+ Certification Guide
- Java Web整合開發(fā)全程指南
- PVCBOT機器人控制技術入門
- 單片機C語言程序設計完全自學手冊
- INSTANT Heat Maps in R:How-to