I created a zImage using “toradex_5.4-2.1.x-imx”, but it behaves differently from the kernel included in BSP 5.4.1. Is there a way to get the 5.4.129 kernel included in BSP 5.4.1 from git?
The problem is the zImage created with “toradex_5.4-2.1.x-imx” and “toradex_5.4-2.3.x-imx”. It does not comply with DTBO and spidev3.0 is not enabled.
mcp251x0 is disabled, ecspi4 and spidev0 are enabled, and DTBO is normal.
Linux/arm 5.4.77 Kernel(toradex_5.4-2.1.x-imx) #Spidev3.0 does not follow DTBO and is invalid.
Linux/arm 5.4.129 Kernel (BSP5.4.1) #Spidev3.0 is valid according to DTBO.
Linux/arm 5.4.154 Kernel(toradex_5.4-2.3.x-imx) #Spidev3.0 does not follow DTBO and is invalid.
Hi @yoshida , Linux BSP 5.4 uses toradex_5.4-2.3.x-imx branch. Please download it by the following command. git clone -b toradex_5.4-2.3.x-imx git://git.toradex.com/linux-toradex.git.
To check out the same version of kernel as BSP 5.4.1, you can find the commit hash value by uname -a on Colibri iMX6 with BSP 5.4.1 installed.
The result of “uname-a” is “Linux colibri-imx6-107161415.4.129-5.4.0-devel + git.cb88cc157bfb # 1 SMP Wed Sep 29 18:17:21 UTC 2021 armv7l armv7l armv7l GNU / Linux”
Hi @yoshida , if only the spi is going to be enabled by device tree overlay, you don’t need to download and compile kernel, just activate colibri-imx6-eval_spidev_overlay.dtbo in /boot/overlays.txt
root@colibri-imx6:~# cat /boot/overlays.txt
fdt_overlays=colibri-imx6-eval_spidev_overlay.dtbo
root@colibri-imx6:~# ls /dev/|grep spi
colibri-spi-cs0
spidev3.0
Since it is now your customized kernel 5.4.129-37365-gcb88cc157bfb-dirty, kernel modules need to be built and deployed against your kernel source code. This is how to build them.