Subject: Re: OFW device tree dumps and dmesg needed
To: Ben Harris <bjh21@netbsd.org>
From: Michael Lorenz <macallan1888@gmail.com>
List: port-macppc
Date: 05/13/2007 11:47:29
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On May 13, 2007, at 08:47, Ben Harris wrote:

> In article <XFMail.20070513001137.root@garbled.net> you write:
>> I am in need of as many openfirmware device tree dumps as possible, 
>> and if the
>> machine is capable of running NetBSD, accompaning dmesg would be 
>> awesome.
>> (Please, only PowerPC machines, no sparc or arm boxes)
>>
>> I am primarily interested in the device trees of various machines, 
>> not so much
>> the various packages, memory, etc.  Of critical importance is 
>> anything that
>> interrupts, or has an interrupt controller as a child.
>>
>> Device trees can be grabbed manually from openfirmware by doing:
>
> Is there a convenient way to do this from a running NetBSD system?  I
> haven't got a convenient way to grab output from my serial consoles.

ofctl -p

you may have to build it by hand, it's in src/usr.sbin, should work on 
anything that has /dev/openfirm.
With -p it will include all properties, without it you'll just get the 
device tree.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRkczEcpnzkX8Yg2nAQIgPgf+LMj1Wbb7XD3OC5b9NcbFjMdc7xX/1Ct9
9vTM79WMJjJa8UlCQn+L6kUkLuCCf4obcNim1HXXGzER+CMamORyEMW6HgTtKWRK
OBktblBqpODozpg75tftT2cKfkPr2pKnQUpNTesDMgqQXpunaP/fV41EKCcjdmIS
gp7ciJQ4vjAganoUmrdb2fGfdhGYb/0ilSrMTasQpAKuLlrv6+eVzAOFPD4NqiUG
sZ9/f8Pp1wqMA4dSX/976aoSWNUVwl5PgDAqkjEGRNOCwVYYB9nkOwV1YFZWEY3m
hy4jIoC2Ygh3Am3Ya7QRbhNwJBXm8PVE+c4dhePD51/HR9mscGsnQw==
=L5Hs
-----END PGP SIGNATURE-----