This is an old revision of the document!


How to compare (typically in-kernel) device tree source files with dtx_diff.

Given a kernel source tree at, say, ~/k/git/, prepare for comparison with:

$ cd ~/k/git
$ PATH=~/k/git/scripts/dtc:$PATH
$ export ARCH=arm

Note that setting PATH as above will add access to all of the executables (scripts and possible binary executables) under the kernel's scripts/dtc/ directory, which includes not only the dtx_diff script but, if you've compiled the kernel scripts, the dtc device tree compiler program that will exist under there as well.

I mention this so you know that if you already had a /usr/bin/dtc executable installed via some sort of dtc package, the one in that scripts directory will take precedence, unless you add that directory at the end of PATH instead of at the beginning. In any event, you must have a dtc command somewhere for the dtx_diff script.

  • comparing_device_trees_with_dtx_diff.1542470896.txt.gz
  • Last modified: 2018/11/17 16:08
  • by rpjday