From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 24 Sep 2012 01:06:59 +0200 Subject: [U-Boot] [PATCH 6/6] fdt: Add a Linux tool for reading values from FDT files In-Reply-To: <201208202351.56466.vapier@gentoo.org> References: <1345235680-16419-1-git-send-email-joe.hershberger@ni.com> <201208202351.56466.vapier@gentoo.org> Message-ID: <201209240106.59734.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, > On Monday 20 August 2012 20:51:32 Joe Hershberger wrote: > > On Mon, Aug 20, 2012 at 7:24 PM, Mike Frysinger wrote: > > > On Monday 20 August 2012 19:40:45 Joe Hershberger wrote: > > >> On Fri, Aug 17, 2012 at 6:35 PM, Mike Frysinger wrote: > > >> > On Friday 17 August 2012 16:34:40 Joe Hershberger wrote: > > >> >> Designed to be able to access itb files on a filesystem or an mtd > > >> >> partition. > > >> >> > > >> >> Supports print and list (like the fdt command) and also offset for > > >> >> finding the offset and size of a given property in an FDT file. > > >> >> > > >> >> This is especially helpful when reading properties from an ITB > > >> >> file. > > >> > > > >> > doesn't the ftdump utility from the dtc package cover your needs ? > > >> > > >> No. The purpose is to use this utility e.g. in a Linux shell script > > >> to retrieve a property from the ITB. The two places I use it are to > > >> retrieve a version number from the ITB and to identify the offset and > > >> size of a data block (image) in the ITB. > > >> > > >> From what I can see the ftdump utility in the dtc component just dumps > > >> the ITB as a single blob with no options. I'm looking at the dtc > > >> 1.2.0 source. > > > > > > ... so wouldn't the logical thing be to extend ftdump to support your > > > needs and send a patch to the DTC authors rather than to write an > > > entire tool from scratch and commit it to a tree that is merely a user > > > of device trees ? > > > > Yes it probably would have been, if I had noticed that the ftdump > > utility existed, then that is the approach I would have taken. I > > think it is of specific use to u-boot users, but if you think it's > > better to extend ftdump, I guess I could take that approach. > > i think it has a better chance of being maintained and other people using > it if it were merged into the canonical DTC project. i can see a more > swiss army type tool being useful to people rather than having to pipe it > all through awk. > > git: git://git.jdl.com/software/dtc.git > e-mail: devicetree-discuss at lists.ozlabs.org > > they're friendly people :) Mostly :-) Best regards, Marek Vasut