Imx6ull kernel build - Use custom device tree instead of eval-v3 tree

I want to rebuild the kernel / console-tdx-image using my own device tree instead of the imx6ull-colibri-eval-v3.dtsi

I have changed the makefile in the dts folder to build my dtsi file, BUT where do i need to change so that my dtsi gets placed into the package for firmware upgrading ?

Hi @adrian

Thanks for writing to the Toradex Community!

I have changed the makefile in the dts folder to build my dtsi file, BUT where do i need to change so that my dtsi gets placed into the package for firmware upgrading ?

You need to change the file name in the file image.json in the Toradex Easy Installer image of Bsp 3.x for Colibri iMX6ULL for the corresponding Products Ids. The Product Ids can be found here.

Best regards,
Jaski

Hello,

So in my generated install image (that goes onto the SD card) i can see in image.json there is this

{
                    "name": "dtb",
                    "content": {
                        "rawfiles": [
                            {
                                "filename": "imx6ull-colibri-eval-v3.dtb",
                                "product_ids": "0036"
                            },
                            {
                                "filename": "imx6ull-colibri-wifi-eval-v3.dtb",
                                "product_ids": "0040"
                            },
                            {
                                "filename": "imx6ull-colibri-eval-v3.dtb",
                                "product_ids": "0044"
                            },
                            {
                                "filename": "imx6ull-colibri-wifi-eval-v3.dtb",
                                "product_ids": "0045"
                            }
                        ]
                    },

And i see where i can replace the ‘eval-v3’ with my board name

What i wanted to know is, where (what files) do i need to change so that during the build (bitbake console-tdx-image) it builds MY dtb file instead of the eval-v3 and other unused dtb files

Regarding Yocto build, you would need to create a .bbappend file with your patch to the devicetree as it is done for the regular devicetree files.

Please have a look here.

Best regards,
Jaski