Using runqemu capabilities
QEMU is deeply integrated into the Yocto Project, and it is crucial to learn how to take advantage of this integration so we can plan the testing of our projects. The runqemu
usage lists the variety of options available, which you can see in the following figure:
Figure 16.1 – The runqemu usage
There are a few use cases of QEMU that are important to highlight:
- Allows choosing different kernel images for testing
- Allows choosing different
rootfs
for booting - The capability to pass boot arguments for the kernel
- Supports the use of a graphical environment with OpenGL or OpenGL ES options
- It can pass extra QEMU command-line parameters
- Allows the use of serial console-only for rapid image testing
- Testing the audio stack support
- Testing different init systems (e.g., systemd)
In the following few sections, we use the qemux86-64
machine as a reference to cover some common use cases, illustrating...