Printing device tree on running system

4 messages, 3 authors, 2007-09-21 · open the first message on its own page

Printing device tree on running system

From: Jon Smirl <hidden>
Date: 2007-09-20 15:55:11

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

Re: Printing device tree on running system

From: Scott Wood <hidden>
Date: 2007-09-20 16:08:41

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

Re: Printing device tree on running system

From: Jon Smirl <hidden>
Date: 2007-09-20 16:21:32

On 9/20/07, Scott Wood [off-list ref] wrote:
On Thu, Sep 20, 2007 at 11:55:10AM -0400, Jon Smirl wrote:
quoted
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

Re: Printing device tree on running system

From: Josh Boyer <hidden>
Date: 2007-09-21 01:18:44

On Thu, 2007-09-20 at 12:21 -0400, Jon Smirl wrote:
On 9/20/07, Scott Wood [off-list ref] wrote:
quoted
On Thu, Sep 20, 2007 at 11:55:10AM -0400, Jon Smirl wrote:
quoted
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.
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help