- Embedded Linux Development using Yocto Projects(Second Edition)
- Otavio Salvador Daiane Angolini
- 277字
- 2021-07-02 15:08:41
Building a target image
Poky provides several predesigned image recipes that we can use to build our own binary image. We can check the list of available images by running the following command from the poky directory:
$ ls meta*/recipes*/images/*.bb
All the recipes provide images which are a set of unpacked and configured packages, generating a filesystem that we can use on a hardware or one of the supported QEMU machines.
Next, we can see the list of most commonly used images:
- core-image-minimal: This is a small image allowing a device to boot, and it is very useful for kernel and boot loader tests and development.
- core-image-base: This is a console-only image that fully supports the target device hardware.
- core-image-weston: This is an image that provides the Wayland protocol libraries and the reference Weston compositor.
- core-image-x11: This is a very basic X11 image with a terminal.
- core-image-sato: This is an image with Sato support and a mobile environment for mobile devices that use X11; it provides applications such as a terminal, editor, file manager, media player, and so forth.
The complete list would likely be outdated, so it's not included here. There are several different images supporting different features as Real Time, InitRAMFS, MTD (flash tools) and others. It is advisable to check the source code or the Yocto Project Reference Manual for the complete and updated list.
The process of building an image for a target is very simple. We must run the following command:
$ bitbake <recipe name>
For example, to build core-image-full-cmdline, run the following command:
$ bitbake core-image-full-cmdline
- 工業(yè)機(jī)器人虛擬仿真實(shí)例教程:KUKA.Sim Pro(全彩版)
- 大數(shù)據(jù)戰(zhàn)爭(zhēng):人工智能時(shí)代不能不說(shuō)的事
- Python Artificial Intelligence Projects for Beginners
- 運(yùn)動(dòng)控制系統(tǒng)
- 網(wǎng)站入侵與腳本攻防修煉
- 嵌入式操作系統(tǒng)原理及應(yīng)用
- HBase Essentials
- 空間機(jī)器人
- Spark大數(shù)據(jù)商業(yè)實(shí)戰(zhàn)三部曲:內(nèi)核解密|商業(yè)案例|性能調(diào)優(yōu)
- Building Google Cloud Platform Solutions
- Mastering Predictive Analytics with scikit:learn and TensorFlow
- 機(jī)器學(xué)習(xí)案例分析(基于Python語(yǔ)言)
- Learn Microsoft Azure
- 軟件測(cè)試設(shè)計(jì)
- 歐姆龍PLC應(yīng)用系統(tǒng)設(shè)計(jì)實(shí)例精解