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  fix yocto QA Issue : " was already stripped, this will prevent future debugging ! "

The source code of DTC is available at https://git.kernel.org/pub/scm/utils/dtc/dtc.git . You can clone and compile as below,

 $ git clone git://git.kernel.org/pub/scm/utils/dtc/dtc.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 *