linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: Printing device tree on running system
  2007-09-20 16:21   ` Jon Smirl
@ 2007-09-20  4:57     ` Josh Boyer
  0 siblings, 0 replies; 4+ messages in thread
From: Josh Boyer @ 2007-09-20  4:57 UTC (permalink / raw)
  To: Jon Smirl; +Cc: linuxppc-embedded

On Thu, 2007-09-20 at 12:21 -0400, Jon Smirl wrote:
> On 9/20/07, Scott Wood <scottwood@freescale.com> wrote:
> > On Thu, Sep 20, 2007 at 11:55:10AM -0400, Jon Smirl wrote:
> > > Is there a command for printing the device tree on a running system? I
> > > want to see what changes the various device drivers made to the DTC I
> > > started with.
> >
> > It's exported in /proc/device-tree, if support is built into the kernel.
> 
> That worked, didn't know the option existed.
> 
> >
> > It might be interesting to make dtc support turning that into a dts...

dtc does support that.  Pass /proc/device-tree/ to dtc like this:

dtc -I fs -o device-tree.dts -O dts /proc/device-tree

josh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Printing device tree on running system
@ 2007-09-20 15:55 Jon Smirl
  2007-09-20 16:08 ` Scott Wood
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Smirl @ 2007-09-20 15:55 UTC (permalink / raw)
  To: linuxppc-embedded

Is there a command for printing the device tree on a running system? I
want to see what changes the various device drivers made to the DTC I
started with.

-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Printing device tree on running system
  2007-09-20 15:55 Printing device tree on running system Jon Smirl
@ 2007-09-20 16:08 ` Scott Wood
  2007-09-20 16:21   ` Jon Smirl
  0 siblings, 1 reply; 4+ messages in thread
From: Scott Wood @ 2007-09-20 16:08 UTC (permalink / raw)
  To: Jon Smirl; +Cc: linuxppc-embedded

On Thu, Sep 20, 2007 at 11:55:10AM -0400, Jon Smirl wrote:
> Is there a command for printing the device tree on a running system? I
> want to see what changes the various device drivers made to the DTC I
> started with.

It's exported in /proc/device-tree, if support is built into the kernel.

It might be interesting to make dtc support turning that into a dts...

-Scott

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Printing device tree on running system
  2007-09-20 16:08 ` Scott Wood
@ 2007-09-20 16:21   ` Jon Smirl
  2007-09-20  4:57     ` Josh Boyer
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Smirl @ 2007-09-20 16:21 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-embedded

On 9/20/07, Scott Wood <scottwood@freescale.com> wrote:
> On Thu, Sep 20, 2007 at 11:55:10AM -0400, Jon Smirl wrote:
> > Is there a command for printing the device tree on a running system? I
> > want to see what changes the various device drivers made to the DTC I
> > started with.
>
> It's exported in /proc/device-tree, if support is built into the kernel.

That worked, didn't know the option existed.

>
> It might be interesting to make dtc support turning that into a dts...

That would be useful, you could do a diff and see how the tree was altered.

The case I just looked at was old code manually building entries for
i2c devices in the tree, but with an updated dts the devices are
already in the tree which explains the error I got about conflicting
device nodes.


>
> -Scott
>


-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-21  1:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-20 15:55 Printing device tree on running system Jon Smirl
2007-09-20 16:08 ` Scott Wood
2007-09-20 16:21   ` Jon Smirl
2007-09-20  4:57     ` Josh Boyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).