Device tree modification in Yocto for Colibri i.MX7 emmc

Hi @kevin.tx,

After installing the image on the module, Linux starts up as expected. However, the modifications I made in my device tree did not show up: I disabled UART2 but it still shows up as /dev/ttymxc1

&uart2 {
        status = "disabled";     // overrides the "okay" status
};

I’m sure that my .dts file is read by bitbake because when I introduce a syntax error (e.g. removing the semicolon after ‘}’), bitbake reports it.
I followed the instructions for kernel customization (except for the display patch), adding both recipes for the kernel and bsp without success.
One strange thing is that when I fill in a wrong name in meta-customer/recipes-bsp/u-boot/u-boot-toradex_%.bbappend, bit bake does NOT complain about it !! (as you can see below, I added “ERROR_” in front of the file name)

do_configure_append() {
    sed -i 's/#define FDT_FILE.*/#define FDT_FILE "ERROR_imx7d-colibri-emmc-interferometer.dtb"/' ${S}/include/configs/colibri_imx7.h
}

So I’m stuck again :frowning:

I made a zip file with the contents of the …/oe-core/layers/meta-customer directory :
meta-customer.zip (25.7 KB)
And also from the …/oe-core/build/conf directory :
conf.zip (32.3 KB)

Maybe you can have a look at them and immediately see the thing I forgot…
As you may remember, I’m using BSP 5.7

Thanks in advance !
Jeroen