Table of Contents |
---|
httphttps://gitlabgit.keith-koepseco.com/seco-ne/imxkernel/linux-imx-kuk
Linux 5.10.9 based on Android 11.0.0_2.0.0 | ssh:// |
git@git. |
seco.com: |
seco-ne/ |
kernel/linux-imx-kuk.git |
kuk_lf-5.10.y_android-compilable |
Previous Versions
Branch/Tag | Comment |
---|---|
Kernel Binaries
Date | Changelog | Download |
---|---|---|
28.02.2022 |
How to Build Linux Kernel for Trizeps VIII & Trizeps VIII Mini
This is only a quick-reference on how to build a Linux Kernel including Keith & Koep Seco specific changes.
For details please view the Linux and NXP i.MX8M documentation.
Get the source code of linux-imx from git repository:
Code Block |
---|
$ mkdir linux-imx $ git clone httphttps://gitlabgit.keith-koepseco.com/seco-ne/imxkernel/linux-imx-kuk.git -b kuk_lf-5.10.y_android-compilable |
Setup Cross-Build environment (View Software-Development-Kit on how to install.):
...
Note: When the kernel boots it loads kernel-modules from the root-filesystem at '/lib/modules/<kernel-build-number>' (i.e. /lib/modules/5.10.9).
Note: if kernel stops compiling missing bio.h : –> apt install libssl-dev
Update Kernel
Updating the kernel involves to copy 'Image' and the kernel-module directory to the device.
If the kernel-build-version did not change, copy of the kernel-module directory can be omitted.
Update using USB and bootloader
Enter the bootloader command console and run:
...
Code Block |
---|
cp -r ~/linux-imx-modules/* /media/imx6/fd195515-0a44-4a7e-9387-bec6087f37ac |
Hints on using the Kernel
Device Tree
The Linux-kernel will use a Device-Tree-Binary file (.dtb) to determine how the Trizeps module is used in a system (i.e. which drivers to load). The device-tree files can be found at:
...
When building the Linux-kernel .dts source-files are converted to .dtb binary files.
DeviceTree (dtb) | Module | Description |
---|---|---|
Trizeps VIII Mini in i-PAN T7 V1 panel | ||
Trizeps VIII Mini in i-PAN T7 V2 panel | ||
Trizeps VIII Mini in pConXS V1 with capacitive touch EDT 7inch display | ||
Trizeps VIII Mini in pConXS V2 with capacitive touch EDT 7inch display | ||
Trizeps VIII Mini in pConXS V3 with ATM0700 7inch display | ||
Trizeps VIII Mini in pConXS V3 with AM19201080 10inch display | ||
SBCSOM with ATM0700 7inch display | ||
SBCSOM with HDMI display |
When you open the u-boot command prompt and output the environment, you can determine which device-tree is used:
...
'env save' will store this setting for subsequent boots.
Root-Filesystem
To have a full running Linux-system you will need:
...
There are different approaches on how to create a root-filesystem.
Basicly its a linux-distribution like Debian, where the system is put together by packages or like Yocto, where recipes define what needs to be built and put inside the file-system: