Skip to content

UCM iMX8M Mini Linux Kernel Build

vraevsky edited this page Feb 21, 2019 · 4 revisions

UCM-iMX8M-Mini Linux Kernel Build

Supported machines:

  • ucm-imx8m-mini

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

export MACHINE=ucm-imx8m-mini

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 imx8mm
cd imx8mm
  • Download CompuLab BSP
git clone -b devel-imx8mm-4.14.78 https://github.com/compulab-yokneam/meta-compulab-bsp.git
export BSP=$(pwd)/meta-compulab-bsp
export PATCHES=${BSP}/meta-bsp-imx8mm/recipes-kernel/linux/compulab/imx8mm

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