How to get the value of properties in the openfirmware?

Tony Breeds tony at bakeyournoodle.com
Mon Oct 24 14:41:31 EST 2011


On Sun, Oct 23, 2011 at 09:26:12AM +0800, Ryan Wang wrote:
> Hi,
> 
> I know that we can use getprop to the get the value of some property.
> I wonder can we run some command in the cmdline to do that? E.g,
> if I want to get the value of bootargs, which command I can use?
> 
> I have tried printenv, but it didn't work for properties.

In OF you can do either either (or both) of:
dev /chosen .properties ; or
dev /options .properties

To see the properties you're looking for.  Obvisouly there are calls in
yaboot that do that.

Yours Tony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/yaboot-devel/attachments/20111024/38e7a2a6/attachment.pgp>


More information about the Yaboot-devel mailing list