Linux 5.4, Trizeps VII

Gitlab Access:

Description

Link

Branch

Description

Link

Branch

Linux 5.4 based on NXP 5.4.24_2.1.0

ssh://git@git.seco.com:seco-ne/kernel/linux-imx-kuk.git
https://git.seco.com/seco-ne/kernel/linux-imx-kuk.git

kuk_5.4_t7

How to Build Linux Kernel for Trizeps VII

This is only a quick-reference on how to build a Linux Kernel including the Seco specific changes.
For details please view the Linux and NXP i.MX6 documentation.

Get the Linux source code from the git repository:

$ git clone https://git.seco.com/seco-ne/kernel/linux-imx-kuk.git -b kuk_5.4_t7

Setup Cross-Build environment (View Software-Development-Kit on how to install.):

$ source /opt/fsl-imx-fb/5.4-zeus/environment-setup-cortexa9t2hf-neon-poky-linux-gnueabi

Build Linux Kernel from source code:

~/linux-imx$ make trizeps7_defconfig ~/linux-imx$ make -j$(nproc)

This will generate the linux kernel ('zImage') and device-tree binary ('*.dtb') files.

~/linux-imx/arch/arm/boot/zImage ~/linux-imx/arch/arm/boot/dts/pConXS-t7dl-v1r3.dtb

After you generated the kernel you might want to build the kernel modules:

~/linux-imx$ make modules_install INSTALL_MOD_PATH=MODULES

Update Kernel

Updating the kernel involves copying the 'zImage' and the contents of the MODULES directory to the device.

Update µSD-Card

Mount the µSD-Card and copy the kernel zImage and the device tree in the partition containing the linux file system:

$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 200G 0 disk └─sda1 8:1 0 200G 0 part / sdb 8:16 1 3,8G 0 disk ├─sdb1 8:17 1 3,7G 0 part /media/imx6/linux_roofs └─sdb2 8:18 1 16M 0 part sr0 11:0 1 1024M 0 rom
sudo cp ~/linux-imx/arch/arm/boot/zImage /media/imx6/linux_roofs/zImage sudo cp ~/linux-imx/arch/arm/boot/dts/pConXS-t7dl-v1r3.dtb /media/imx6/linux_roofs/oftree.dtb

Copy the kernel-modules-directory to /lib/modules/ in the linux file system.

sudo cp -pr ~/linux-imx/MODULES/lib/modules/5.4.24* /media/imx6/linux_roofs/lib/modules/

An Ubuntu 18.04 Image with the 5.4.24 Linux Kernel and the 2020.07 U-Boot for Trizeps7 is available here: tr7-5_4_24-pconxs-edt7-debian-lxde-18.04-2021-07-12.imz
Use the 'restore' function of the usb_image_tool.zip to copy it to an sd card.