CL-SOM-iMX8X: Building Linux Kernel

From Compulab Mediawiki
Revision as of 07:35, 19 February 2020 by imported>Uri.mashiach
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

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 https://github.com/compulab-yokneam/meta-cl-som-imx8x.git
export PATCHES=$(pwd)/meta-cl-som-imx8x/recipes-kernel/linux/compulab/cl-som-imx8x

CompuLab Linux kernel setup

git clone https://source.codeaurora.org/external/imx/linux-imx.git
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