官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 湖南省| 龙游县| 鲁山县| 肥东县| 辽阳县| 山西省| 敖汉旗| 嘉义市| 永靖县| 微博| 西安市| 新竹市| 汝阳县| 子洲县| 景谷| 新野县| 尼勒克县| 南木林县| 东海县| 岳阳市| 东城区| 漠河县| 麻城市| 台东市| 太谷县| 浙江省| 洪泽县| 樟树市| 郯城县| 翼城县| 安福县| 宜昌市| 隆回县| 英山县| 湖北省| 潜山县| 平定县| 通榆县| 固镇县| 乌鲁木齐县| 沙田区|