Cmdline FDT query tool

John Williams john.williams at petalogix.com
Mon Jun 21 11:50:49 EST 2010


On Thu, May 27, 2010 at 4:23 PM, David Gibson
<david at gibson.dropbear.id.au> wrote:
> On Thu, May 27, 2010 at 03:35:15PM +1000, John Williams wrote:
>> On Thu, May 27, 2010 at 3:17 PM, David Gibson
>> <david at gibson.dropbear.id.au> wrote:
>> > On Thu, May 27, 2010 at 11:40:51AM +1000, John Williams wrote:
>> >> On Sat, May 22, 2010 at 10:17 AM, David Gibson
>> >> <david at gibson.dropbear.id.au> wrote:
>> >> > On Tue, May 18, 2010 at 12:20:05PM -0600, Grant Likely wrote:
>> >> >> On Mon, May 17, 2010 at 8:03 PM, John Williams
>> >> >> <john.williams at petalogix.com> wrote:
>> >> >> > Hi Grant,
>> >> >> >
>> >> >> > At ELC I mentioned a tool I'd written that basically hacked u-boot's
>> >> >> > "fdt" command into a commandline util for querying DTBs.  You can do
>> >> >> > stuff like this:
>> >> >> >
>> >> >> > $ fdt-tool system.dtp print
>> >> >> >
>> >> >> > <dump entire DTB in text format>
>> >> >> >
>> >> >> > $ fdt-tool system.dtb list /cpus/cpu at 0 xlnx,use-dcache
>> >> >> > xlnx,use-dcache = <0x1>
>> >> >> >
>> >> >> > and so on.
>> >> >>
>> >> >> Cool.  Thanks John.
>> >> >>
>> >> >> I agree with David.  It would probably be useful to include in the
>> >> >> libfdt (which U-Boot fdt support makes use of too) source repo.  Seems
>> >> >> like a useful tool.
>> >> >
>> >> > Of course, to incorporate it with libfdt, it would need to be BSD
>> >> > dual-licensed, like the rest of libfdt, and we'd need sign-offs from
>> >> > all authors to that effect.
>> >>
>> >> I have no problem with that, but since I ripped the guts of it
>> >> directly from u-boot there'll be a conversation to be had there.
>> >
>> > Ok.  Do you have the means to track down the people with whom this
>> > conversation needs to happen?
>>
>> >From the header comments:
>>
>>  * Gerald Van Baren, Custom IDEAS, vanbaren at cideas.com
>>  * Based on code written by:
>>  *   Pantelis Antoniou <pantelis.antoniou at gmail.com> and
>>  *   Matthew McClintock <msm at freescale.com>
>
> Hrm.  People frequently fail to update header comments.  I'd much
> rather go off the revision control history, if it's available.

Better late than never:

$ git-log --pretty=format:%ae fdt_support.c cmd_fdt.c | sort | uniq

afleming at freescale.com
agust at denx.de
andrew at cesa.opbu.xerox.com
avorontsov at ru.mvista.com
dzu at denx.de
galak at kernel.crashing.org
grant.likely at secretlab.ca
gvb.uboot at gmail.com
hs at denx.de
jacmet at sunsite.dk
ken at bitsko.slc.ut.us
kim.phillips at freescale.com
plagnioj at jcrosoft.com
ptyser at xes-inc.com
sr at denx.de
timur at freescale.com
vanbaren at cideas.com
wd at denx.de

Cheers,

John
-- 
John Williams, PhD, B.Eng, B.IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663


More information about the devicetree-discuss mailing list