为了生成U-Boot,U-Boot depends upon an externally build device tree compiler (dtc) in order to build successfully. Please build the dtc tool before proceeding U-boot。需要提前Build DTC,dtc的源代码位于Linux文件/scripts/dtc/路径。根据参考Xilinx的向导Build Device Tree Compiler (dtc)【1】,进入dtc源目录,执行make。我们得到了如下错误提示,Xilinx和AD两家的内核提示错误相同:

make: *** No rule to make target '/dtc-parser.tab.h', needed by '/dtc-lexer.lex.o'. Stop.

 参考【2】自己安装DTC,而不使用内核自带的DTC。 apt-get install device-tree-compiler

通过dpkg -L device-tree-compiler可见DTC的相关安装路径:

 系统搭建遇到问题2:build DTC提示make: *** No rule to make target '/dtc-parser.tab.h', needed by '/dtc-lexer.lex.o'.  Stop.

其中,/usr/bin/dtc为安装后的可执行文件。file dtc查看文件信息。

系统搭建遇到问题2:build DTC提示make: *** No rule to make target '/dtc-parser.tab.h', needed by '/dtc-lexer.lex.o'.  Stop.

echo $PATH,可见/usr/bin的路径已在环境变量中,无需重复设置。(其实/usr/bin是默认install的应用目录,内含大量可执行文件)

  

参考资料:

【1】http://www.wiki.xilinx.com/Build+Device+Tree+Compiler+(dtc)

【2】http://blog.csdn.net/fys2xxx/article/details/51057185

相关文章:

  • 2022-02-08
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2021-10-17
  • 2022-12-23
  • 2021-07-27
猜你喜欢
  • 2021-11-06
  • 2021-12-25
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2022-01-21
相关资源
相似解决方案