How to resolve error : dtc: command not found

When trying to compile uboot on ubuntu, we seen the following error,

 OBJCOPY u-boot.srec OBJCOPY u-boot-nodtb.bin
./scripts/ line 17: dtc: command not found
./scripts/ line 18: dtc: command not found
*** Your dtc is too old, please upgrade to dtc 1.4 or newer
Makefile:1450: recipe for target 'checkdtc' failed
make: *** [checkdtc] Error 1

From the error it looks like we are unable to find “dtc” command, which actually is a “device tree compiler”

READ  Linux commands to find files based on type, size etc.

So, we need to install it on ubuntu as,

 $ sudo apt-get install device-tree-compiler

Now, lets verify that dtc is now installed,

 $ which dtc /usr/bin/dtc
 $ dtc --version Version: DTC 1.4.0

Leave a Reply

Your email address will not be published. Required fields are marked *