aboutsummaryrefslogtreecommitdiff
path: root/ftdump.c
AgeCommit message (Collapse)AuthorFilesLines
2008-01-03dtc: Remove header information dumpingDavid Gibson1-6/+26
Currently, when used in -Idtb mode, dtc will dump information about the input blob's header fields to stderr. This is kind of ugly, and can get in the way of dtc's real output. This patch, therefore, removes this. So that there's still a way of getting this information for debugging purposes, it places something similar to the removed code into ftdump, replacing the couple of header fields it currently prints with a complete header dump. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-12-05Print out the total size as part of ftdumpKumar Gala1-0/+2
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2007-09-27dtc: Use libfdt/fdt.h instead of flat_dt.hDavid Gibson1-10/+10
In the dtc tree, both flat_dt.h and libfdt/fdt.h have structures and constants relating to the flattened device tree format derived from asm-powerpc/prom.h in the kernel. The former is used in dtc, the latter in libfdt. libfdt/fdt.h is the more recent, revised version, so use that throughout, removing flat_dt.h. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-09-18dtc: Whitespace cleanupDavid Gibson1-1/+1
This large patch removes all trailing whitespace from dtc (including libfdt, the testsuite and documentation). It also removes a handful of redundant blank lines (at the end of functions, or when there are two blank lines together for no particular reason). As well as anything else, this means that quilt won't whinge when I go to convert the whole of libfdt into a patch to apply to the kernel. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-03-22ftdump missing be32_to_cpu() on size cell.Ed Swarthout1-1/+1
2007-03-14Add support for flat device tree format version 17David Gibson1-1/+1
libfdt defined a new version of the flattened device tree format, version 17. It is backwards compatible with version 16, just adding an extra header field giving the size of the blob's structure blob. This patch adds support to dtc allowing it to read and write version 17 blobs. It also makes version 17 the default output version for blobs. At the same time we change the code to consistently using decimal numbers for versions. Previously we sometimes used 16 and sometimes 0x10 to refer to version 16. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2005-08-29Add ftdump utility, contributed by Pantelis Antoniou.David Gibson1-0/+188