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


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,安装后就可以成功编译


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM