Getting started with AI on NXP i.MX8M Plus/Introduction/Quick getting started/Yocto minimal image
Downloading and downloading Gatesgarth
Let's suppose we are working in $HOME as the root directory for this process.
So, move into that directory and create folder in which the download will be performed:
cd $HOME
mkdir imx8-yocto-variscite
cd imx8-yocto-variscite
Initialize the repository using repo installed before:
repo init -u https://github.com/varigit/variscite-bsp-platform.git -b fsl-gatesgarth -m imx-5.10.9-1.0.0-var01.xml
Synchronize the local repo with the remote one:
repo sync
Configuring the environment for image building from XWayland distribuition
Here we need to define distribuitions and the device by setting the following variables:
- DISTRO
- MACHINE
In this case, we have a i.MX8M Plus from variscite, and the chosen distro is xwayland, so the parameters are:
DISTRO=fsl-imx-xwayland
MACHINE=imx8mp-var-dart
Inside our development directory, we need to set a build directory:
mkdir build_xwayland
At first time configuring the environment we need to execute the bash script called var-setup-release.sh, and specify the build folder:
source var-setup-release.sh -b build_xwayland
At this point, some files will be created in $HOME/imx8-yocto-variscite/build_xwayland. Inside the build directory, a folder called conf contains two files:
- local.conf
- bblayers.conf
Go to local.conf and at the end of this file add the following lines[This is optional, this will add some protocols recommended by Variscite]: