![](https://csdnimg.cn/release/download_crawler_static/85421581/bg5.jpg)
Demonstration recipes reside in the meta-sdk directory. This layer contains image recipes and recipes for customization,
such as touch calibration, or recipes for demonstration applications.
• Machine learning recipes
Machine learning recipes reside in the meta-ml directory. This layer contains machine learning recipes for packages like
tensorflow-lite, onnx, armnn, and so on.
• Cockpit recipes
Cockpit recipes reside in meta-cockpit and are supported on the i.MX 8QuadMax using the imx-8qm-cockpit-mek
machine configuration.
3 Host Setup
To get the Yocto Project expected behavior in a Linux Host Machine, the packages and utilities described below must be installed.
An important consideration is the hard disk space required in the host machine. For example, when building on a machine running
Ubuntu, the minimum hard disk space required is about 50 GB. It is recommended that at least 120 GB is provided, which is
enough to compile all backends together. For building machine learning components, at least 250 GB is recommended.
The recommended minimum Ubuntu version is 20.04 or later. The latest release supports Chromium v91, which requires an
increase to the ulimit (number of open files) to 4098.
3.1 Docker
i.MX is now releasing docker setup scripts in imx-docker Repo on CAF. Follow the instructions in the readme for setting up a host
build machine using docker.
In addition docker on board is enabled with standard manifest by including the meta-virtualization layer on i.MX 8 only. This
creates a headless system for installing docker containers from external docker hubs.
3.2 Host packages
A Yocto Project build requires that some packages be installed for the build that are documented under the Yocto Project. Go to
Yocto Project Quick Start and check for the packages that must be installed for your build machine.
Essential Yocto Project host packages are:
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm rsync curl zstd pzstd lz4c lz4
The configuration tool uses the default version of grep that is on your build machine. If there is a different version of grep in your
path, it may cause builds to fail. One workaround is to rename the special version to something not containing "grep".
3.3 Setting up the Repo utility
Repo is a tool built on top of Git that makes it easier to manage projects that contain multiple repositories, which do not need to be
on the same server. Repo complements very well the layered nature of the Yocto Project, making it easier for users to add their
own layers to the BSP.
To install the “repo” utility, perform these steps:
1. Create a bin folder in the home directory.
$ mkdir ~/bin (this step may not be needed if the bin folder already exists)
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
NXP Semiconductors
Host Setup
i.MX Yocto Project User's Guide, Rev. LF5.15.5_1.0.0, 31 March 2022
User Guide 5 / 24