Subject: Re: OpenBOOT 2.x vs. OpenBOOT 3.x vs. OpenFirmware
To: Michael <macallan18@earthlink.net>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: port-sparc
Date: 03/07/2005 17:47:41
On Mon, Mar 07, 2005 at 08:13:54 -0500, Michael wrote:
> OBP 3.x and OpenFirmware seem very similar, in fact similar enough
> that macppc and sparc64 can share some drivers which need limited
> OF/OBP access, [...]
[...]
> The firmware itself ( OBP 2.something ) seems a little different
> too,
OBP2 is OpenBoot from before OFW. It's different. The only Sparc OFW
machines that I know of are Javastations.
> - how can I access device properties from the OBP 2.x prompt?
.attribites
> - for cgsix ( more hard-coded geometry, I've seen more than one
> cgsix running in something else than 1152x900 so we should probably
> get rid of this ) - which forth words/properties return display
> geometry information and exist on both OBP2 and 3?
You'd better get OBP2 docs from doc.sun.com.
> - what exactly is the difference between prom_getprop() and
> OF_getprop()? The latter works on sparc64 and macppc, the former
> apparently on sparc and sparc64 - is there something that works on
> all three?
prom_getprop can handle different prom versions. See
sys/arch/sparc/sparc/promlib.c
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen