![Embedded Linux Development using Yocto Projects(Second Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/525/36700525/b_36700525.jpg)
Building an image to QEMU
Following the same steps used in Chapter 2, Baking Our Poky-Based System, we are going to build an image to the QEMU ARM emulation.
The first step is to create the first project, which is a collection of configurations and builds that have already been performed.
As we don't have a project, we need to start one. Create a Project name and choose the target release, as shown in the following screenshot:
![](https://epubservercos.yuewen.com/CAE7A8/19470401408925506/epubprivate/OEBPS/Images/ca44d770-13e2-4da4-b668-3bfa41562189.png?sign=1738844078-yjqbYIhGGnypKWnvkaAjepXaj2P3MHyr-0-fc59344400f62f073782a48bd1eeeb8d)
After creating my-first-project, we can see the main project screen, as shown in the following screenshot:
![](https://epubservercos.yuewen.com/CAE7A8/19470401408925506/epubprivate/OEBPS/Images/a6a49cc7-eeed-4131-a52d-b39698e033ef.png?sign=1738844078-0RjwRjikOkhMxC3aJTH2QKiy6nlxelxB-0-cf4ad7d2d2d6adb6ec034bd14db63869)
While on the Configuration tab, go to Machine and change it to qemuarm:
![](https://epubservercos.yuewen.com/CAE7A8/19470401408925506/epubprivate/OEBPS/Images/d2fa1a84-ea57-48bb-9fcc-c437116c9cb2.png?sign=1738844078-J7TzLBt27bl3e9rJLSwjFM6nMjcoqSTz-0-dd77f020a95fd047fea94820b5a602e2)
After that, click the Image Recipes tab to choose the image you want to build. In this example, as used in Chapter 2, Baking Our Poky-Based System, we can build core-image-full-cmdline:
![](https://epubservercos.yuewen.com/CAE7A8/19470401408925506/epubprivate/OEBPS/Images/6adc0f36-bf6e-4028-8655-623ff41d4dd8.png?sign=1738844078-zYjM1RJ8yNSzAXqs05Fs3GfuV3e87PrL-0-5193768242518c9a7456c1d1640e61a8)
The following screenshot shows the build process:
![](https://epubservercos.yuewen.com/CAE7A8/19470401408925506/epubprivate/OEBPS/Images/511462d5-b580-4ac7-a96e-67331e95b44c.png?sign=1738844078-p1elsNbcxUnJnwJC7D1284sWT0ylfJWq-0-42230e23badcefae0273c056e8207a9a)
The build process takes some time, but after that, we can see the built image along with some statistics:
![](https://epubservercos.yuewen.com/CAE7A8/19470401408925506/epubprivate/OEBPS/Images/0bbf76ef-0c69-4c19-ba13-2dbbee5a7007.png?sign=1738844078-22FWNoWBJi4BiW7CXogCIhwsZDJfwo7Z-0-bb22836703ea4f8c680422c2c86d8455)
We can also verify the generated set of files, as shown in the following screenshot:
![](https://epubservercos.yuewen.com/CAE7A8/19470401408925506/epubprivate/OEBPS/Images/090680de-95b4-4e19-af21-176e531c3928.png?sign=1738844078-fgkxsv0AjzTajfqftI9jJzjujGVflmpZ-0-eb5b3d753e49a5d9ccabfff00bb12ae7)
Toaster is a powerful tool. It can be used either on a local development machine or on a shared server to get a graphic representation of the build. Most tasks performed by BitBake can be achieved using Toaster as well.