主机系统要求
- 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
sudopermission 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
kastool to sync and build the Yocto project. Use the following steps to installkason your systemOn older Ubuntu versions, thekasversion provided by the system package manager may be outdated. Usingpipxis the recommended way to install kas.-
Install
pipx -
Add the
pipxinstall location to yourPATHThis 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. -
Install
kas(version 4.8 or higher is required)
-
Install
-
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 supportedMACHINE 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-imageas the image name.
相关主题
- 如何构建 meta-qcom 的主线变体
- 如何在容器化环境中构建镜像?
- 如何使用旧版 repo manifest 方法构建 meta-qcom
- 如何使用旧版 meta-qcom-releases 方法构建 meta-qcom
- 如何在 meta-qcom 构建中启用调试配置
- 如何为 Yocto 构建设置共享缓存
- 如何为 Yocto BSP 构建配置存储类型
- 如何增加系统内存以避免 OOM 错误
- 如何使用 kas 执行常见任务
- 如何排查常见构建失败问题
后续步骤
- 要将您构建的镜像烧录到设备上,请参见烧录软件镜像。

