野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 24296|回复: 4

[求助] 编译设备树插件dtc报错-@

[复制链接]

发表于 2020-5-28 22:16:35 | 显示全部楼层 |阅读模式
1火花

如题,编译是报如下错误
  1. DTC     overlays/ebf/imx-fire-key-overlay.dtbo
  2. dtc: invalid option -- '@'
  3. Usage: dtc [options] <input file>

  4. Options: -[qI:O:o:V:d:R:S:p:fb:i:H:sW:E:hv]
  5.   -q, --quiet
  6.         Quiet: -q suppress warnings, -qq errors, -qqq all
  7.   -I, --in-format <arg>
  8.         Input formats are:
  9.                 dts - device tree source text
  10.                 dtb - device tree blob
  11.                 fs  - /proc/device-tree style directory
  12.   -o, --out <arg>
  13.         Output file
  14.   -O, --out-format <arg>
  15.         Output formats are:
  16.                 dts - device tree source text
  17.                 dtb - device tree blob
  18.                 asm - assembler source
  19.   -V, --out-version <arg>
  20.         Blob version to produce, defaults to %d (for dtb and asm output)
  21.   -d, --out-dependency <arg>
  22.         Output dependency file
  23.   -R, --reserve <arg>
  24.         tMake space for <number> reserve map entries (for dtb and asm output)
  25.   -S, --space <arg>
  26.         Make the blob at least <bytes> long (extra space)
  27.   -p, --pad <arg>
  28.         Add padding to the blob of <bytes> long (extra space)
  29.   -b, --boot-cpu <arg>
  30.         Set the physical boot cpu
  31.   -f, --force
  32.         Try to produce output even if the input tree has errors
  33.   -i, --include <arg>
  34.         Add a path to search for include files
  35.   -s, --sort
  36.         Sort nodes and properties before outputting (useful for comparing trees)
  37.   -H, --phandle <arg>
  38.         Valid phandle formats are:
  39.                 legacy - "linux,phandle" properties only
  40.                 epapr  - "phandle" properties only
  41.                 both   - Both "linux,phandle" and "phandle" properties
  42.   -W, --warning <arg>
  43.         Enable/disable warnings (prefix with "no-")
  44.   -E, --error <arg>
  45.         Enable/disable errors (prefix with "no-")
  46.   -h, --help
  47.         Print this help and exit
  48.   -v, --version
  49.         Print version and exit

  50. Error: unknown option
  51. Makefile:185: recipe for target 'overlays/ebf/imx-fire-key-overlay.dtbo' failed
  52. make[1]: *** [overlays/ebf/imx-fire-key-overlay.dtbo] Error 1
  53. Makefile:130: recipe for target 'all_ebf' failed
  54. make: *** [all_ebf] Error 2
复制代码


回复

使用道具 举报

发表于 2020-5-29 08:41:32 | 显示全部楼层
DTC版本太低了?
回复

使用道具 举报

发表于 2020-5-29 08:42:10 | 显示全部楼层
不支持-@的选项
回复

使用道具 举报

 楼主| 发表于 2020-5-29 21:39:42 | 显示全部楼层
杰杰 发表于 2020-5-29 08:41
DTC版本太低了?

有啥可行的解决办法吗
已执行  sudo apt-get install device-tree-compiler 这条命令
搜索查到的
wget -c https://raw.githubusercontent.co ... /master/pkgs/dtc.sh
这条命令也不好使
回复

使用道具 举报

发表于 2020-6-1 08:44:45 | 显示全部楼层
来俩不甜的 发表于 2020-5-29 21:39
有啥可行的解决办法吗
已执行  sudo apt-get install device-tree-compiler 这条命令
搜索查到的

你是在哪里编译的?换个dtc版本试试
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-5 02:03 , Processed in 0.077744 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表