How to Compile and Install device-tree-compiler On Ubuntu

If you want to install device-tree-compiler i.e. dtc command on ubuntu, use following command,

 $ sudo apt-get install device-tree-compiler

This command will install two command “dtc” and “dtdiff” of which dtc is a device tree compiler whereas dtdiff helps to take diff between two device tree source files.

READ  Integrating Linux kernel module inside Linux kernel source and building it as part of kernel compilation

The source code of DTC is available at . You can clone and compile as below,

 $ git clone git://
$ cd dtc
 $ make

This will compile following binaries in all along with device tree compiler.

  • convert-dtsv0
  • dtc
  • fdtdump
  • fdtget
  • fdtoverlay
  • fdtput

Leave a Reply

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