Setup Build Environment (Linux)

To build images of IoT Yocto you need:

  • Supported Linux distribution - e.g. Ubuntu 22.04 (LTS)

  • At least 200 GiB of free disk space

  • At least 16 GiB of system memory

  • Internet connection

On Ubuntu, use the following command to install the required packages:

sudo apt-get install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev

And install the latest repo tool:

mkdir -p ~/.bin
curl > ~/.bin/repo
chmod a+rx ~/.bin/repo

We recommend checking these package versions:

  • git --version or greater

  • tar --version 1.27.1 or greater

  • python3 --version 3.6.0 or greater

  • gcc --version 5.0 or greater

  • repo --version 2.16.6 or greater


  • The repo tool bundled in Ubuntu 18.04 is too old. It’s recommended to install the latest version.

  • It’s also possible to use other Linux distributions and even WSL on Windows to build the Yocto project. Please refer to Yocto Project Reference Manual for details on build environment setup if you want to use other Linux distributions.