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:如何使用 C 语法(#include、#define)编译.dts 文件

Guru**** 670150 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/747828/linux-beaglebn-how-to-compile-dts-file-with-c-syntax-include-define

器件型号:BEAGLEBN

工具/软件:Linux

大家好、

由于 定制的 Cape PCB 布局、我想更改默认 BB-CAPE-DISP-CT4-00A0.DTS 中的 pinmux。

在尝试使用以下命令编译 DTS 后:

DTC -O DTB -o BB-cape - DISP-CT4-00A0.dtbo -b 0 -@ BB-cape - DISP-CT4-00A0.DTS

我在# include 行上遇到语法错误、我尝试将# include 更改为/include/、但我再次遇到 include 中的语法错误

显然、这是因为 include 使用 C 语法(#define)、并且必须使用 C++预编译 DTS 文件。

可以帮帮我吗?

包括用于 DTC 的 shoud 的 PS:-i /opt/source/dtb-4.4-ti/include/dt-bindings 或 :-i /opt/source/dtb-4.14-ti/include/dt-bindings

我正在使用9.5 Debian IoT 开发 BeagleBone Green