This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

J721e - compiling DTS file failed in uboot

Hello,

I am trying to add our DTS file in u-boot-ti-staging which was generated via pinmux tool. I have done following steps - 

STEP 1 - Added my DTS file at <u-boot-ti-staging>/git/arch/arm/dts/aptiv-gcp-j7.dts

STEP 1 - updated <u-boot-ti-staging>/git/arch/arm/dts/Makefile to add "aptiv-gcp-j7.dtb"

STEP 3 - Created patch and bitbaked u-boot-ti-staging

I get following error 

m/dts/.aptiv-gcp-j7.dtb.d.dtc.tmp arch/arm/dts/.aptiv-gcp-j7.dtb.dts.tmp ; cat arch/arm/dts/.aptiv-gcp-j7.dtb.d.pre.tmp arch/arm/dts/.aptiv-gcp-j7.dtb.d.dtc.tmp > arch/arm/dts/.aptiv-gcp-j7.dtb.d
| arch/arm/dts/.aptiv-gcp-j7.dtb.pre.tmp:12:10: fatal error: dt-bindings/pci/pci.h: No such file or directory
|  #include <dt-bindings/pci/pci.h>
|           ^~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| scripts/Makefile.lib:314: recipe for target 'arch/arm/dts/aptiv-gcp-j7.dtb' failed
| make[3]: *** [arch/arm/dts/aptiv-gcp-j7.dtb] Error 1
| make[3]: *** Waiting for unfinished jobs....

I did check and found that "dt-bindings/pci" directory is missing in uboot. 

What should I do to fix it?

Thanks,

Satish

  • Hi Satish,

    I believe you will not be using any pci related defines in u-boot.
    I do not see them in ti u-boot j7 device tree files. Remove the include
    statement and also make sure you remove the nodes that use the defines
    under the file as it will be unused by u-boot.

    Thanks,
    Keerthy