Verdin iMX8M-Plus and custom DTB integration into yocto


We have a project with Verdin iMX8M-Plus and we use Toradex reference yocto minimal image with BSP5.x. I already customized the image for the desired recipes and works fine for us.

Recently I customized imx8mp-verdin-wifi-dahlia.dts in the linux kernel code and created our own dts by copying it imx8mp-verdin-wifi-custom.dts. It is compiled and I have corresponding dtb file. I can use this new dtb file by doing:

  1. Copy compiled device tree file imx8mp-verdin-wifi-custom.dtb to the boot partition in the SDCard
  2. Delete overlay folder and overlay.txt file
  3. Reboot the device
  4. Enter into U-boot (press any button in 1 sec)
  5. setenv fdt_board custom
  6. saveenv
  7. reset

But I don’t want to follow these steps manually. What I want in Toradex yocto is that:

  1. Disable all overlays
  2. Use directly imx8mp-verdin-wifi-custom.dts that I will put in yocto folders (I prefer not to put this in kernel since kernel codes are in the toradex repository)

Any guidance about how to do that?

Thank you.

Hi @Fide ,

in the kernel configuration under the section “Boot options” you can see the following:

Use appended device tree blob to zImage (EXPERIMENTAL)  

After this is enabled you can follow these steps from the NXP forum.

Can you give this a try and let us know if it worked as intended?

Best Regards