Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.26 KB

linux_kernel_build.md

File metadata and controls

50 lines (41 loc) · 1.26 KB

Building Linux Kernel for CompuLab's i.MX8M Mini products

Supported machines:

  • iot-gate-imx8

Define a MACHINE environment variable for the target product:

export MACHINE=iot-gate-imx8

Define the following environment variables:

Description Command Line
NXP release name export NXP_RELEASE=rel_imx_5.4.24_2.1.0
CompuLab branch name export CPL_BRANCH=iot-gate-imx8_r2.5

Prerequisites

It is up to developer to setup arm64 build environment:

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 ${CPL_BRANCH} https://github.com/compulab-yokneam/meta-bsp-imx8mm.git
export PATCHES=$(pwd)/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 ${NXP_RELEASE}
git -C linux-imx am ${PATCHES}/*.patch

Compile the Kernel

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