【问题标题】:dtc not found when using buildroot使用 buildroot 时找不到 dtc
【发布时间】:2017-08-16 14:21:02
【问题描述】:

错误如下:

CC      scripts/mod/devicetable-offsets.s
GEN     scripts/mod/devicetable-offsets.h
HOSTCC  scripts/mod/file2alias.o
HOSTLD  scripts/mod/modpost
DTC     arch/arm/boot/dts/versatile-pb.dtb
/bin/sh: 1: /home/buildroot-2017.08-rc2/output/build/linux-3.10.100/scripts/dtc/dtc: not found
scripts/Makefile.lib:272: recipe for target 'arch/arm/boot/dts/versatile-pb.dtb' failed
make[3]: *** [arch/arm/boot/dts/versatile-pb.dtb] Error 12

可能是什么问题?

【问题讨论】:

  • Linux 构建系统应该在需要的时候构建 dtc——早在 3.0 之前就是这种情况。也许在关于构建 dtc 的日志中存在不同的错误?
  • 事实证明,我搞砸了配置。于是重新开始打扫。问题不存在了。

标签: arm buildroot


【解决方案1】:
git clone https://git.kernel.org/pub/scm/utils/dtc/dtc.git    
cd dtc
make

然后就可以了!

如果版本不对,可能会出现一些错误,比如

dtc: invalid option -- '@'

也许你可以尝试不同的版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-04
    相关资源
    最近更新 更多