CL-SOM-iMX8X: Building Linux Kernel

From Compulab Mediawiki
Jump to: navigation, search


The CL-SOM-iMX8X Linux kernel provides support for on-board peripherals/interfaces of the CL-SOM-iMX8X System-on-Module.

Build environment

  • Download and install a cross compiler (toolchain) for the arm64 architecture.
It is recommenced to use the Linaro cross compiler.
  • Set environment variables. Update the cross compiler path according to the installation path:
export ARCH=arm64
export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
  • Create a folder to organize the files:
mkdir cl-som-imx8x
cd cl-som-imx8x
  • Download CL-SOM-iMX8X module BSP:
git clone -b r1.2
export PATCHES=$(pwd)/meta-cl-som-imx8x/recipes-kernel/linux/compulab/cl-som-imx8x

CompuLab Linux kernel setup

git clone
git -C linux-imx checkout -b linux-compulab rel_imx_4.14.98_2.0.0_ga
git -C linux-imx am ${PATCHES}/*.patch

Compile the kernel

make -C linux-imx cl-som-imx8x_defconfig
make -C linux-imx