Hi @spasoye ,
Glad your problem was solved. Thank you for your help @John1 !
Your initial overlay looks mostly correct @spasoye . Apart from using %
instead of *
for the bbappend version you should put an override in TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT
as @John1 did e.g.
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT:colibri-imx8x
For reference, here’s how you can add overlays with mainline images (iMX6 and iMX7 SoMs):
device-tree-overlays-mainline_git.bbappend
FILESEXTRAPATHS:prepend := "${THISDIR}/device-tree-overlays-mainline:"
CUSTOM_OVERLAYS_SOURCE = " \
<custom_overlay1>.dts \
<custom_overlay2>.dts \
"
CUSTOM_OVERLAYS_BINARY = " \
<custom_overlay1>.dtbo \
<custom_overlay2>.dtbo \
"
SRC_URI += " \
file://<custom_overlay1>.dts \
file://<custom_overlay2>.dts \
"
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT:use-mainline-bsp += " \
${CUSTOM_OVERLAYS_BINARY} \
"
do_collect_overlays:prepend() {
for DTS in ${CUSTOM_OVERLAYS_SOURCE}; do
cp ${WORKDIR}/${DTS} ${S}
done
}
Best regards,
Lucas Akira