Building an Image

From RidgeRun Developer Wiki





Follow Us On Twitter LinkedIn Email Share this page






Build BSP Image

Overview

This section describes how to create and build a Yocto BSP image using Qualcomm Linux and kas.

Clone Qualcomm Yocto Meta Layers

Download the Qualcomm Yocto meta layers. Replace <meta-qcom-release> with the appropriate release tag.

git clone https://github.com/qualcomm-linux/meta-qcom-releases -b <meta-qcom-release>

Example:

git clone https://github.com/qualcomm-linux/meta-qcom-releases -b qli-2.0-rc2

Checkout kas Lock File

kas checkout meta-qcom-releases/lock.yml

Copy Lock File

Copy the kas lock file to ensure consistent layer versions.

cp meta-qcom-releases/lock.yml meta-qcom/ci/lock.yml

Build the Image

Define your build using machine and distribution configuration files.

kas build meta-qcom/ci/<machine.yml>:meta-qcom/ci/<distro.yml>:meta-qcom/ci/linux-qcom-6.18.yml:meta-qcom/ci/lock.yml

Example:

kas build meta-qcom/ci/iq-9075-evk.yml:meta-qcom/ci/qcom-distro-prop-image.yml:meta-qcom/ci/linux-qcom-6.18.yml:meta-qcom/ci/lock.yml

Remember to set up locales (specified on previous section), otherwise, might throw error:

Please make sure locale 'en_US.UTF-8' is available on your system
2026-04-07 13:32:53 - ERROR    - Command "/home/ridgerun/bitbake/bin/bitbake -c build qcom-multimedia-image qcom-multimedia-proprietary-image qcom-container-orchestration-image" failed with error 1

Verify Build Artifacts

After a successful build, verify that the root filesystem image exists.

cd <workspace-dir>/build/tmp/deploy/images/<MACHINE>/<IMAGE>-<MACHINE>.rootfs.qcomflash/
ls -al rootfs.img

Compile single image

The previous command compiles the qcom-multimedia-image, qcom-multimedia-proprietary-image and qcom-multimedia-image. To compile a single available image, get into the the kas shell workspace by using:

kas build meta-qcom/ci/<machine.yml>:meta-qcom/ci/<distro.yml>:meta-qcom/ci/linux-qcom-6.18.yml:meta-qcom/ci/lock.yml

Example:

kas shell meta-qcom/ci/iq-9075-evk.yml:meta-qcom/ci/qcom-distro-prop-image.yml:meta-qcom/ci/linux-qcom-6.18.yml:meta-qcom/ci/lock.yml

And then:

bitbake <image>

Example:

bitbake qcom-minimal-image

Notes