iMX8M-CM Linux: Difference between revisions

From Ronetix's Wiki
Jump to navigation Jump to search
(remove empty comments)
(switch to template)
 
Line 1: Line 1:
{{#vardefine:HARDWARE_NAME|i.MX8M-CM}}
{{#vardefine:HARDWARE_NAME|iMX8M-CM}}
{{#vardefine:KERNEL_BRANCH|5.4-2.1.x-imx_rnx}}
{{#vardefine:KERNEL_BRANCH|5.4-2.1.x-imx_rnx}}
{{#vardefine:DEFCONFIG_NAME|imx8mq_cm_defconfig}}
{{#vardefine:DEFCONFIG_NAME|imx8mq_cm_defconfig}}
{{#vardefine:DTB_NAME|imx8mq-cm.dtb}}
{{#vardefine:DTB_NAME|imx8mq-cm.dtb}}


[[File:imx8m-cm-top.png|thumb]]
[[File:iMX8M-CM-top.png|thumb]]
= Overview =
The Linux kernel provides support for on-board peripherals and interfaces of the {{#var:HARDWARE_NAME}} System-on-Module
= Building kernel for {{#var:HARDWARE_NAME}} =
This Linux kernel is based on https://source.codeaurora.org/external/imx/linux-imx.git, branch {{#var:KERNEL_BRANCH}}
==== Setup the cross compiler and CPU architecture ====
$ export ARCH=arm64
$ export CROSS_COMPILE=/opt/cross/aarch64-ronetix-linux-10.2/bin/aarch64-ronetix-linux-gnu-


==== Clone the latest revision of the repo ====
<!-- use template -->
$ git clone https://github.com/ronetix/linux.git linux-ronetix --depth=1 -b {{#var:KERNEL_BRANCH}}
{{iMX8M-LINUX}}
$ cd linux-ronetix
 
==== Configure and build ====
$ make {{#var:DEFCONFIG_NAME}}
$ make
 
= Build Results =
The resulted images are located in arch/arm64/boot
 
{| class="wikitable"
|-
! scope="col" | File Name
! scope="col" | Description
|-
| style="padding: 5px;"| zImage
| style="padding: 5px;"| Linux kernel image
|-
| style="padding: 5px;"| dts/freescale/{{#var:DTB_NAME}}
| style="padding: 5px;"| Device tree blob for {{#var:HARDWARE_NAME}}
|-
|}
 
= See also =
* [[iMX8M-CM Yocto Linux | Yocto Linux]]
* [[iMX8M-CM Linux|Building Linux Kernel]]
* [[iMX8M-CM U-Boot|Building U-Boot]]

Latest revision as of 09:01, 8 October 2021



Overview

The Linux kernel provides support for on-board peripherals and interfaces of the iMX8M-CM System-on-Module

Building kernel for iMX8M-CM

This Linux kernel is based on https://source.codeaurora.org/external/imx/linux-imx.git, branch 5.4-2.1.x-imx_rnx

Setup the cross compiler and CPU architecture

$ export ARCH=arm64
$ export CROSS_COMPILE=/opt/cross/aarch64-ronetix-linux-11.1/bin/aarch64-ronetix-linux-gnu-

Cross compiler can be downloaded from here: http://download.ronetix.at/toolchains/crosstool-ng

Clone the latest revision of the repo

$ git clone https://github.com/ronetix/linux.git linux-ronetix --depth=1 -b 5.4-2.1.x-imx_rnx
$ cd linux-ronetix

Configure and build

$ make imx8mq_cm_defconfig
$ make

Build Results

The resulted images are located in arch/arm64/boot

File Name Description
zImage Linux kernel image
dts/freescale/imx8mq-cm.dtb Device tree blob for iMX8M-CM

See also