Development Environment Setup
Host Requirements
The performance of a Linux development workstation should be higher than the minimum requirements for running Ubuntu 64-bit operating system on a general desktop system. To speed up compilation time, it is recommended to use a powerful PC with the following recommended configuration:
| Hardware Configuration | Software Tools |
|---|---|
| x86 Computer | Git 1.8.3.1 or higher |
| Quad-core CPU, e.g., Intel i7-2600 at 3.4 GHz (equivalent or higher) | Tar 1.28 or higher |
| 300 GB available disk space (swap partition > 32 GB) | Python 3.10.2 or higher |
| 16 GB RAM or more | GCC 7.5 or higher |
| Ubuntu 22.04 (64-bit) | GNU Make 4.0 or higher |
System Environment
| Purpose | System Requirements |
|---|---|
| Linux Compilation Machine | Ubuntu 64-bit 22.04 |
| Firmware Flashing Tool (Optional) | Windows 10 or higher |
It is recommended to use Ubuntu 22.04 LTS for compilation, as this version has been fully tested and verified.
Linux Environment Configuration
Install Build Tools
To prepare the host environment for Yocto builds, you need to install the following packages. You can use the command below to install them.
Update packages and install all required tools:
sudo apt update
sudo apt install repo gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils linuxutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool locales tar python-is-python3 file libxml-opml-simplegen-perl vim whiptail g++ && pip3 install pyhocon
Windows Flashing Tools (Optional)
If you need to perform firmware flashing operations on a Windows system, you need to install the following tools:
QFIL Flashing Tool
QFIL (Qualcomm Flash Image Loader) is a professional firmware flashing tool for Qualcomm platforms, used to flash compiled images to development boards.
Installation Steps:
- Download the QPST toolkit (includes QFIL tool)
- Run the installer and complete the installation
- Install Qualcomm USB drivers (ensure PC can recognize the development board)
Next Steps
After the environment setup is complete, you can proceed with the following operations:
- Clone code and compile images: See Image Build for details
- Flash firmware to development board: See Image Flashing for details