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.

Linux/BEAGLEBN: how to compile .dts file with C syntax (#include, #define)

Part Number: BEAGLEBN


Tool/software: Linux

Hi all,

I want to change pinmux in default  BB-CAPE-DISP-CT4-00A0.dts due to the custom cape PCB layout.

after trying to compile the dts using:

dtc -O dtb -o BB-CAPE-DISP-CT4-00A0.dtbo -b 0 -@ BB-CAPE-DISP-CT4-00A0.dts

I had an Syntax Error on # include lines, I've tried to change # include to /include/ but the I've got again Syntax Error from includes

Apparently it's because includes use C syntax (#define) and you have to precompile dts file with C++.

Can you help me with this?

PS which include shoud I use for dtc: -i /opt/source/dtb-4.4-ti/include/dt-bindings/ or:  -i /opt/source/dtb-4.14-ti/include/dt-bindings/

I'm working on BeagleBone Green with 9.5 Debian IoT