Book Image

Embedded Linux Development with Yocto Project

Book Image

Embedded Linux Development with Yocto Project

Overview of this book

Table of Contents (22 chapters)
Embedded Linux Development with Yocto Project
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
References
Index

Generating a root filesystem image


One of the most common uses of Poky is the rootfs image generation (rootfs). The rootfs image should be seen as a ready-to-use root filesystem for a target. The image can be made up of one filesystem or may include other artifacts to be available during its generation as the Linux kernel, device tree, and bootloader binaries and other filesystems. The process to generate the image is composed of several steps, and its most common usages are the following:

  1. Generate the rootfs directory.

  2. Create the required files.

  3. Wrap the final filesystem accordingly to the specific requirements (it may be a disk file with several partitions and contents).

  4. Finally, compress it, if applicable.

All these steps are performed by subtasks of do_rootfs.

The rootfs is basically a directory with the desired packages installed (the package generation is covered in Chapter 6, Assimilating Packaging Support), with the needed tweaks applied just afterwards. The tweaks make minor adjustments...