EMB-2237-AI: Build and Install SDK

From Estone Technology Wiki
Jump to: navigation, search

Build SDK

Build SDK Setup

Note: Different machine setup will have different SDK. This Sample SDK is based on (i.MX8M mini-fsl-imx-xwayland) build.

  1. Before starting SDK build follow the Yocto Build Environment guide if not already done
  2. Change directory path to where Yocto sources directory was created
$ cd emb-2237-ai
$ cd rootfs
$ DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk source fsl-setup-release.sh -b <sdk_dir>
$ bitbake -v meta-toolchain-qt5

SDK compile time varies based on host machine cores that are available for compile

SDK Location

finished SDK executable location:

$ cd /emb-2237-ai/rootfs/sdk_dir/tmp/deploy/sdk/fsl-imx-xwayland-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.14-sumo.sh
$ sudo cp fsl-imx-xwayland-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.14-sumo.sh ~/

Installing SDK

$ cd 
$ chmod +x fsl-imx-xwayland-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.14-sumo.sh
$ ./fsl-imx-xwayland-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.14-sumo.sh

Press Enter when prompted to install SDK in default directory = /opt/fsl-imx-xwayland/4.14-sumo/
Enter 'Y' to install SDK and wait for SDK to installation

Extracting SDK..............................................
........................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.

Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/fsl-imx-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux