iMX8M Industrial Yocto Prerequisites

From Voipac Wiki
Revision as of 23:03, 8 December 2023 by Voipac (talk | contribs)
Jump to navigation Jump to search

This Wiki page describes the neccesary steps to prepare the host machine for successful compilation of the Yocto BSP for the iMX8M Industrial Development Kit.

If the host setup has been completed, follow Yocto Image Build Wiki page, which summarizes the process of compyling Yocto image and binaries.

Host machine setup

This image build was tested and verified on Ubuntu 18.04 LTS (Bionic Beaver) and Ubuntu 20.04 LTS (Focal Fossa) operating systems.

Follow the standard Ubuntu desktop installation, in case of difficulties head to the Ubuntu install guide.


Note: It is advisable to install the operating system into the virtual machine as this allows the working enviroment to be more flexible, adjustable and sharable.

Host packages

After the succesfull operating system instalation, following packages need to be added to the build machine:

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

Repo tool install

To ease the usage of Git repositories by utilizing manifest files, repo tool need to be installed. The repo tool is build on top of Git to manage multiple Git repositories.

mkdir ~/bin 
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

Add this folder to PATH variable:

export PATH="~/bin:$PATH"

Git identity setup

Git uses a username with connected email to associate commits with an identity. To set up a Git username and email following commands should be used:

git config --global user.name "Your Name"
git config --global user.email "Your Email"

At this point the host machine has been succesfully setup and ready to start the image building.