How to compile the kernel for Rugged Board i.MX6UL
Objective:
This guide describes a method of compile the kernel for rugged board i.MX6UL .
Materials:
Hardware:
PC(Personal computer)/System
Software:
Ubuntu 20.04 64-bit
Kernel Information:
Linux Mainline Kernel v5.15.35 (LTS kernel)
Tag : v5.15.35-phy3
Procedure:
The following list shows what you need in order to use a Linux-based build host to build images:
Build Host A build host with a minimum of 50 Gbytes of free disk space that is running a supported Linux distribution (i.e. recent releases of Fedora, openSUSE, CentOS, Debian, or Ubuntu).
Build Host Packages Appropriate packages installed on the build host.
The Build Host Packages:
The following list shows the required packages needed to build an image.
Ubuntu and Debian:
Source Downloading:
Step-1: Create a directory to download the kernel source.
Step-2: Clone linux-i.MX6UL with the proper branch.
Step-3: Copy the below patch files to the kernel source directory which you got with documents.
0001-patch-for-ruggedboard.dtsi.patch
0002-patch_for_kconfig.patch
0005-patch_for_defconfig.patch
0006-patch_for_imx6ul-phytec-ruggedboard-rdk.dts.patch
0007-patch_for_makefile.patch
Step-4: Apply the patch files in the kernel source.
Step-5: Install the toolchain.
The below link,have the script for toolchain.
Use the commands given below to download.
Step-6: Enable the toolchain.
Step-7: Configure the kernel fo rugged board i.MX6UL.
Add the following lines if they are not already present in arch/arm/configs/imx6_Rb_defconfig :
CONFIG_HAVE_GCC_PLUGINS=n
CONFIG_GCC_PLUGINS=n
Save and exit.
Step-8: Compile the device tree.
Step-9: Compile the Kernel.
Last updated