Skip to content

iMX8M Linux Kernel Build

vraevsky edited this page Mar 21, 2019 · 6 revisions

iMX8M Linux Kernel Build

Supported machines:

  • cl-som-imx8

Define a MACHINE environment variable with respect to a required machine:

export MACHINE=cl-som-imx8

Prerequisites

It is up to developer to setup arm64 build environment:

  • Download a tool chain from Linaro
  • Set environment variables:
export ARCH=arm64
export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
  • Create a folder to organize the files:
mkdir imx8mq
cd imx8mq
  • Download CompuLab BSP
git clone -b devel-imx8mq-4.14.78 https://github.com/compulab-yokneam/meta-compulab-bsp.git
export BSP=$(pwd)/meta-compulab-bsp
export PATCHES=${BSP}/meta-bsp-imx8mq/recipes-kernel/linux/compulab/imx8mq

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.78_1.0.0_ga
git -C linux-imx am ${PATCHES}/*.patch

Compile the Kernel

make -C linux-imx ${MACHINE}_defconfig
make -C linux-imx