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