Printing device tree on running system

Josh Boyer jwboyer at linux.vnet.ibm.com
Thu Sep 20 14:57:36 EST 2007


On Thu, 2007-09-20 at 12:21 -0400, Jon Smirl wrote:
> On 9/20/07, Scott Wood <scottwood at 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



More information about the Linuxppc-embedded mailing list