This application note explains how to build Linux kernel images for the Emcraft i.MX 8M System-On-Module. Step through the following procedure:
- Download the Yocto toolchain from the Emcraft website.
- Install the toolchain to your development host. The toolchain can be installed to an arbitrary directory:
$ sh ./fsl-imx-fb-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.9.51-mx8-beta.sh
- Activate the cross-build environment:
$ source /opt/fsl-imx-fb/4.9.51-mx8-beta/environment-setup-aarch64-poky-linux $ unset CCACHE_PATH
- Download the Emcraft i.MX 8M add-on Yocto layer from the Emcraft website and unpack it to an arbitrary directory on your development host:
$ mkdir build $ cd build $ tar xfj meta-emcraft-imx8m.tar.bz2
- Unpack the Linux tarball:
$ cd meta-emcraft/recipes-kernel/linux/linux-imx $ tar xfz linux-emcraft-4.9.51-mx8.tar.gz
- Build the i.MX 8M SOM Linux kernel and Device Tree images:
$ export INSTALL_ROOT=`pwd` $ make imx8m-som.Image $ make imx8m-som.dtb $ make modules
- The Linux kernel and Device Tree images, and the tarboll with the kernel modules ready for installation to the i.MX 8M SOM are here:
$ ls -1 ... imx8m-som.dtb imx8m-som.Image kernel_modules.tgz ...
|