Skip to main content
本页面面向希望使用 Yocto 项目从头构建 Qualcomm Linux 的用户。 它介绍了构建所需的关键 Yocto 概念,并逐步讲解整体工作流——从配置到执行。

主机系统要求

  • Configuration
    • x86 machine
    • Quad-core CPU, for example, Intel i7-2600 at 3.4 GHz (equivalent or better)
    • 300 GB free disk space (swap partition > 32 GB)
    • 16 GB RAM
  • Tools
    • Git 1.8.3.1 or later versions
    • Tar 1.28 or later versions
    • Python 3.10.2 or later versions
    • GCC 10.1 or later versions
    • GNU Make 4.0 or later versions
    • Kas 4.8 or later versions
  • Permissions
    • sudo permission is required to run a few commands

主机设置

The following instructions are intended for use on a Ubuntu host system. The Yocto build is also supported on other distributions compatible with Yocto, but no validation is performed against them.
  • Install the following packages to prepare your host environment for the Yocto build
  • Qualcomm uses the kas tool to sync and build the Yocto project. Use the following steps to install kas on your system
    On older Ubuntu versions, the kas version provided by the system package manager may be outdated. Using pipx is the recommended way to install kas.
    1. Install pipx
    2. Add the pipx install location to your PATH
      This command updates your shell’s startup file, so the change only takes effect in new shell sessions. Restart your shell session before continuing to the next step.
    3. Install kas (version 4.8 or higher is required)
  • Verify if the kas installation is successful.

kas 配置模型

Qualcomm 使用 kas 工具来同步和构建 Yocto 项目。kas 配置模型使用 YAML 文件来声明构建中要包含的层、机器和发行版。这些 YAML 文件位于 meta-qcom/ci/ 目录中。 一个典型的 kas 构建命令组合了:
  • 一个机器 YAML 文件(例如 meta-qcom/ci/iq-9075-evk.yml)
  • 一个发行版 YAML 文件(例如 meta-qcom/ci/qcom-distro.yml)

选择 MACHINE 和 DISTRO

The following table lists the supported MACHINE and DISTRO combinations. Use these values when invoking the kas command.

配置参数

The following table describes the build tags for the current release. These values need to be substituted in the build commands.

构建说明

  • Download Qualcomm’s Yocto layer meta-qcom. For the latest <meta-qcom-release-tag>, see Configuration Parameters.
  • Build the software image using kas. You define build targets based on machine and distro combinations.
  • The build creates a single tarball containing all the relevant files to perform a full clean flash, including partition metadata, boot firmware, ESP partition and the rootfs. After a successful build, check if the qcomflash tarball exists in the build artifacts. The following examples use qcom-multimedia-proprietary-image as the image name.

相关主题

后续步骤