![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=1739314774-Ckq8NbeRFrESQ6FlFBo9pBPgAn5uL9RX-0-5beb0e4faefbbad5bacfcc2fbba87a71)
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=1739314774-DxAdpyqILAGtFiX85MtRIG9qRq705mQF-0-d22759d8fa324dd5fe561e0c290db6d7)
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=1739314774-un9VUBVDChfNHdZ5900iUNmmKZtPGYao-0-80c6871ce973975efbcb9f6a7e10c50c)
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=1739314774-KXSTMw2Irft3bwGl7ZBNizfobWfgQBYh-0-15a6610aca79c3db4bda18ccd3947ebd)
The following screenshot shows the build process:
![](https://epubservercos.yuewen.com/CAE7A8/19470401408925506/epubprivate/OEBPS/Images/511462d5-b580-4ac7-a96e-67331e95b44c.png?sign=1739314774-MyWKMgkKQmEHAn2Hk0sq2wlS0j8NgHHQ-0-0c4ddb1c26267d1a4fd66f437485d378)
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=1739314774-IpTKOXrFrtShz4diifLLy1UAT2N4DflS-0-1c181d079c26db47a3729983b5d35ea7)
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=1739314774-kqmVPiJ9iaV8vfdlHmhQa24nZDsFKwxm-0-abd7867790dfbeba954dc942c553ef46)
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.