Files
meta-bsp-imx8mm/Documentation/linux_kernel_build.md
T
2024-01-26 19:19:59 +02:00

1.3 KiB

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

Supported machines:

  • iot-gate-imx8

Define a MACHINE environment variable for the target product:

Machine Command Line
iot-gate-imx8 export MACHINE=iot-gate-imx8

Define the following environment variables:

Description Command Line
CompuLab branch name export CPL_BRANCH=iot-gate-imx8-r3.2-i2c34-enabled
NXP release name export NXP_BRANCH=lf-5.15.y
NXP release name export NXP_RELEASE=fa6c3168595c02bd9d5366fcc28c9e7304947a3d

Prerequisites

It is up to developer to setup arm64 build environment:

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 -b ${NXP_BRANCH} --single-branch https://github.com/nxp-imx/linux-imx.git
git -C linux-imx checkout ${NXP_RELEASE} -b linux-compulab 
git -C linux-imx am ${PATCHES}/*.patch

Compile the Kernel

make -C linux-imx cl-imx8m-mini_defconfig ${MACHINE}.config
make -C linux-imx