Building Linux Kernel Print


This application note explains how to build Linux kernel images for the Emcraft i.MX 8M System-On-Module. Step through the following procedure:

  1. Download the Yocto toolchain from the Emcraft website.
  2. Install the toolchain to your development host. The toolchain can be installed to an arbitrary directory:
  3. sh ./

  4. Activate the cross-build environment:
  5. source /opt/fsl-imx-fb/4.9.51-mx8-beta/environment-setup-aarch64-poky-linux
    unset CCACHE_PATH

  6. 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:
  7. mkdir build
    cd build
    $ tar xfj meta-emcraft-imx8m.tar.bz2

  8. Unpack the Linux tarball:
  9. $ cd meta-emcraft/recipes-kernel/linux/linux-imx
    $ tar xfz linux-emcraft-4.9.51-mx8.tar.gz

  10. Build the i.MX 8M SOM Linux kernel and Device Tree images:
  11. export INSTALL_ROOT=`pwd`
    $ make imx8m-som.Image
    $ make imx8m-som.dtb
    $ make modules

  12. 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:
  13. $ ls -1