Hello!
I have a Colibri iMX8QXP module and I’ve built a custom device tree for making it compatible with the Focaltech FT5426 touch driver. The problem is that even after setting up all the variables referencing the evaluation board DTB (imx8qxp-colibri-eval-v3.dtb
) the default device tree loaded by U-Boot remains the same.
The variables I changed are located in a file called colibri-imx8x-extra.conf
that’s included in local.conf
:
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT_remove = " colibri-imx8x_ad7879_overlay.dtbo display-vga_overlay.dtbo "
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT_append = " colibri-imx8x_atmel-mxt-adapter_overlay.dtbo display-lt161010_overlay.dtbo "
TORADEX_PRODUCT_IDS = "0038 0050 0051 0052"
TORADEX_PRODUCT_IDS[0038] = "imx8qxp-colibri-bcn3d.dtb"
TORADEX_PRODUCT_IDS[0050] = "imx8qxp-colibri-bcn3d.dtb"
TORADEX_PRODUCT_IDS[0051] = "imx8qxp-colibri-bcn3d.dtb"
TORADEX_PRODUCT_IDS[0052] = "imx8qxp-colibri-bcn3d.dtb"
KERNEL_DEVICETREE_append = " freescale/imx8qxp-colibri-bcn3d.dtb"
KERNEL_DEVICETREE_use-mainline-bsp_remove = " freescale/imx8qxp-colibri-eval-v3.dtb "
KERNEL_DEVICETREE_use-mainline-bsp_append = " freescale/imx8qxp-colibri-bcn3d.dtb "
I’ve noticed that in the include/configs/colibri-imx8x.h
header file of u-boot-toradex
there’s a hardcoded string in the CONFIG_EXTRA_ENV_SETTINGS
that specifies the value of fdt_board
to eval-v3
.
Changing that to bcn3d
like the name of the device tree in fact works as the fdtfile
string is built dynamically based on the value of this variable.
Is there a better way to handle this without patching that hardcoded string?
Thanks