红联Linux门户
Linux帮助

Ubuntu16.10 32bit环境下编译u-boot-2017.01提示dtc版本过低

发布时间:2017-05-21 10:42:18来源:linux网站作者:jasonactions
1.问题描述
在ubuntu16.10下编译uboot 201701时会提示如下的错误:
/home/share/wowotech-x-project/u-boot/scripts/dtc-version.sh: line 17: dtc: command not found
/home/share/wowotech-x-project/u-boot/scripts/dtc-version.sh: line 18: dtc: command not found
*** Your dtc is too old, please upgrade to dtc 1.4 or newer
/home/share/wowotech-x-project/u-boot/Makefile:1359: recipe for target 'checkdtc' failed
make[2]: *** [checkdtc] Error 1
make[2]: Leaving directory '/home/share/wowotech-x-project/build/out/u-boot'
Makefile:150: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/share/wowotech-x-project/u-boot'
Makefile:74: recipe for target 'uboot' failed
make: *** [uboot] Error 2
 
2.解决方法:
安装device-tree-compiler
apt-get install device-tree-compiler,安装后就可以成功编译。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/30957.html