ES: Yocto Images

Yocto images are the end products of a BitBake build — complete, deployable Linux system images. The Yocto Project provides several standard reference images ranging from minimal console systems to full graphical environments, and finding the right image for your project is the first step in customisation.

In the Yocto Project, an image is the final output of a BitBake build — a complete, bootable Linux system that includes the bootloader, kernel, root filesystem, and application software assembled into a deployable format.

Images are defined by special recipe types and represent the complete specification of what ends up on the target hardware.


What is a Yocto Image?

A Yocto image recipe defines:

  • Which packages are included in the root filesystem
  • Which features are enabled (e.g. SSH, systemd, X11)
  • The filesystem type and format of the output (ext4, squashfs, tar, etc.)
  • Post-install scripts and system configuration

Images are the highest level of the Yocto metadata hierarchy:

md
Image Recipe (.bb)
    |
    | includes
    v
Package Recipes (libraries, utilities, apps)
    |
    | built by
    v
BitBake Tasks (fetch, compile, install)
    |
    | produces
    v
Deployable Image (SD card image, ramdisk, etc.)


Standard Yocto Reference Images

The Yocto Project provides four standard reference images that cover the most common use cases:

core-image-minimal

A small console-based system — the minimal viable embedded Linux image.

  • Includes: BusyBox, kernel, basic init
  • No graphical environment
  • Boots to a shell prompt
  • Best for: Testing, board bring-up, and as a base for custom images

core-image-minimal-initramfs

The same as core-image-minimal, but built as a ramdisk image.

  • Loaded entirely into RAM at boot
  • Does not require persistent storage for the root filesystem
  • Best for: Minimalist systems, recovery environments, network booting

core-image-x11

A graphical system with X11 server support.

  • Includes: X11 server, xterminal application
  • Basic graphical desktop capability
  • Best for: Systems requiring a simple graphical terminal

core-image-sato

A full graphical system based on the Sato mobile graphical environment.

  • Built on X11 and GNOME
  • Includes: terminal emulator, text editor, file manager
  • Full mobile-style UI suitable for touchscreen devices
  • Best for: HMI systems, demonstration platforms

Image Comparison

ImageSizeGraphicsUse Case
core-image-minimalSmallestNoneTesting, base image
core-image-minimal-initramfsSmallNoneRAM-only, recovery
core-image-x11MediumX11Basic graphical terminal
core-image-satoLargeFull GNOMEHMI, full desktop

Finding Available Images

To list all available images across all layers in your build:

bash
find . -name "*.bb" | grep image

To list only the images visible to BitBake from the configured layers:

bash
bitbake -s | grep image


Building an Image

bash
# Build the minimal image
bitbake core-image-minimal

# Build the minimal ramdisk image
bitbake core-image-minimal-initramfs

# Build the full Sato graphical image
bitbake core-image-sato


Image Output Files

After building, image files appear in:

md
tmp/deploy/images/<machine-name>/
├── core-image-minimal-<machine>.ext4       (root filesystem)
├── core-image-minimal-<machine>.tar.bz2    (tarball)
├── core-image-minimal-<machine>.wic        (SD card image)
├── zImage or Image                         (kernel)
├── <machine>.dtb                           (device tree blob)
└── u-boot.bin                              (bootloader)

File TypeDescription
.ext4ext4 root filesystem image
.tar.bz2Root filesystem as a compressed tarball
.wicComplete SD card image (all partitions)
.wic.bz2Compressed SD card image

Creating a Custom Image

Custom images are created by writing a new image recipe. The simplest approach is to inherit from an existing image and add packages:

bitbake
# my-custom-image.bb
inherit core-image

IMAGE_INSTALL:append = " \
    nano \
    htop \
    openssh \
    myapp \
"

IMAGE_FEATURES += "ssh-server-openssh"

Place this recipe in your custom layer and build it:

bash
bitbake my-custom-image


Final Thoughts

Yocto images are the final product of all the build system work — the bootloader, kernel, root filesystem, and all packages assembled into a format ready for your target hardware.

md
Image Selection Guide:
Need to test board bring-up?
    --> core-image-minimal

Need a ramdisk / network boot?
    --> core-image-minimal-initramfs

Need basic graphical terminal?
    --> core-image-x11

Need full graphical HMI?
    --> core-image-sato

Need production custom image?
    --> Write your own image recipe

Start with core-image-minimal to verify the build system is working, then extend it with a custom image recipe that includes exactly what your product needs.