Cannot build image for the Yocto apalis-imx8 machine with kirkstone-6.x.y due to missing DTB file

I tried to build a Yocto image for the apalis-imx8 machine. However, the Toradex kernel does not build due to a missing DTB file:

| make[1]: *** No rule to make target 'arch/arm64/boot/dts/freescale/imx8qm-apalis-eval.dtb'.  Stop.
| make: *** [/home/test/oe-apalis/build/tmp/work-shared/apalis-imx8/kernel-source/Makefile:1432: freescale/imx8qm-apalis-eval.dtb] Error 2

meta-toradex-bsp-common is at commit dbc9d3d74c81387cafa292bf06bf7ae91f5c3640 .
meta-toradex-nxp is at commit 45d4fd4ed2b8b31de5e548dcc4acc81178a424ca .
Both layers are on branch kirkstone-6.x.y.

Looking into the kernel source tree, I can only find the following files with “apalis” in their names:

$ find -iname '*apalis*'

imx8qm-apalis-eval.dtb is nowhere to be found.

Any idea what is going on? Commit 08711132d7c2c0e28091f0275f42bff6f85e15db in meta-toradex-nxp states that these devicetree files exist again after the kernel upgrade to 5.15-2.1.x, but they apparently don’t exist.

Hello @crg8000 ,
I have looked in our git repository and for the branch that you mention ( 5.15-2.1.x), I can find the device tree sources

Have you checked out the correct branch for the kernel sources?

Best regards,

I use whatever the linux-toradex kernel recipe uses in meta-toradex-nxp. Currently, that recipe points to branch toradex_5.15-2.1.x-imx and commit a8d2c55c6ae71c54878e1394fde1c6aa66786f6b (" arm64: dts: imx8mp-verdin: enable hpd on hdmi-connector") in linux-toradex. Note that you referred to a different branch (toradex_5.4-2.1.x-imx).

Looking that that kernel’s git history, it seems that the recipe needs to be updated, since subsequent commits in the kernel do reintroduce the DTS files correctly.

Noted the error. I have updated the link to the correct branch

I managed to get it to work, but I am unsure if this is OK. I attached the patch here:
linux-toradex-kirkstone-fix.patch (571 Bytes)

Hi @crg8000

Just a quick FYI: BSP 6 was not released yet for Apalis iMX8 nor Colibri iMX8X.

Best regards,