Boot2qt imx7 customize device tree

Hello together,

I want to customize the device Tree for my boot 2 qt version because I need to use I2C4 to be used at the M4 chip (evaluation board)

Therefore I changed the imx7-colibri-eval-v3.dtsi and altered status as Disabled

&i2c4 {
	status = "disabled";
...
}

Anyway my dtb file won’t be recompiled at my deployment folder of boot2qt

Is there anything further I have to do to compile my device tree

Kind regards

Hi @PatrickNies

Where do you do the modification of the dtsi file? Is it under the boot2qt build? If so it could be that you have to force the recompilation of the kernel with:

bitbake -fc compile virtual/kernel
bitbake <image name>

Yocto doesn’t recognize modifications in the build directories.

However, as an alternative you can also checkout the following repository:
http://git.toradex.com/cgit/linux-toradex.git/log/?h=toradex_4.9-1.0.x-imx

Then you can do your modification on the devicetree and afterwards recompile it as described here:
https://developer.toradex.com/device-tree-customization

To compile the devictree file you can do something like this:

export ARCH=arm
export CROSS_COPILE=~/QtCommercial/5.12.4/Boot2Qt/colibri-imx7/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
make imx7d-colibri-emmc-eval-v3.dtb

The compiled dtb will be under arch/arm/boot/dts/imx7d-colibri-emmc-eval-v3.dtb. You can then copy this devictree binary to the target.

I hope this helps.

Regards,
Stefan