Difference between revisions of "CL-SOM-iMX8X: Building Linux Kernel"
imported>Igor.vaisbein |
imported>Uri.mashiach |
||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
:<pre>cd cl-som-imx8x</pre> | :<pre>cd cl-som-imx8x</pre> | ||
* Download CL-SOM-iMX8X module BSP: | * Download CL-SOM-iMX8X module BSP: | ||
− | :<pre>git clone -b | + | :<pre>git clone -b r1.2 https://github.com/compulab-yokneam/meta-cl-som-imx8x.git</pre> |
:<pre>export PATCHES=$(pwd)/meta-cl-som-imx8x/recipes-kernel/linux/compulab/cl-som-imx8x</pre> | :<pre>export PATCHES=$(pwd)/meta-cl-som-imx8x/recipes-kernel/linux/compulab/cl-som-imx8x</pre> | ||
==CompuLab Linux kernel setup== | ==CompuLab Linux kernel setup== |
Latest revision as of 07:35, 19 February 2020
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