Trouble applying overlay on build


I’m attempting to build my Torizon image and am getting the following error:

=> Selecting custom device-tree 'static/device-trees/dts-arm64/imx8mp-verdin-wifi-dev.dts'
'imx8mp-verdin-wifi-dev.dts' compiles successfully.
warning: removing currently applied device tree overlays
Device tree imx8mp-verdin-wifi-dev.dtb successfully applied.

=> Adding device-tree overlay 'static/device-trees/overlays/touch-atmel-mxt_overlay.dts'
'touch-atmel-mxt_overlay.dts' compiles successfully.

Failed to apply '/tmp/tmperu_bpl_': FDT_ERR_NOTFOUND

error: cannot apply device tree overlays ['/tmp/tmperu_bpl_'] against device tree /storage/dt/usr/lib/modules/5.4.193-5.7.2+git.b60d3160fd04/dtb/imx8mp-verdin-wifi-dev.dtb.
error: overlay 'static/device-trees/overlays/touch-atmel-mxt_overlay.dts' is not applicable.

Because it wasn’t in the cloned Toradex github repo I just created a file and copy/pasted the touch-atmel-mxt_overlay.dts code from the following git.

Any idea what my issue is?

Hey @bengur,

Because that file is an overlay, you’ll find it in our overlays page. touch-atmel-mxt_overlay.dts

Here is the article on git clone for the device tree overlay, you’ll see toradex_5.15 is a reference to Torizon OS 6, and toradex_5.4 is a reference to Torizon OS 5.

It is also a dts for TorizonCore 5. Was this your intention?

Are you trying to add a touch screen? If so can you link which one?

Also, the Toradex github repo you have linked is depreciated, you’ll find the correct one for here @ the dts.


I switched to the toradex_5.4-2.3.x-imx branch you linked for the device-trees repo and it applied successfully. My mistake was using the toradex_5.4-2.3.x-imx branch and copying touch-atmel-mxt_overlay.dts into it.