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