OF properties access ?

Sven Luther sven.luther at wanadoo.fr
Thu Jan 15 18:44:39 EST 2004


On Thu, Jan 15, 2004 at 12:49:47PM +1100, Benjamin Herrenschmidt wrote:
>
> > But, the pmac OF (at least on the powerbook i got someone to check for
> > me), does have a l2cr property, not a l2cr-value one. The same goes on
> > for voltaire.debian.org, which is a dual G4 500MHz.
> >
> > Does this mean that the -value appended is for looking at the content of
> > l2cr, or something such ?
>
> No. The L2 is assumed to be set by the firmware. That "l2cr-value" is just
> an optional thing that BootX can set before booting the kernel to force
> a different L2 setup, typically used with G3 upgrade cards.

Ok.

But this doesn't reply me on why my attempts to read back integer values
from OF property only result in the machine hanging, and since it is
really early on, i don't even get serial console output to have an idea
why :/

in particular i cloned the code reading l2cr-value, and changed it to
l2cr and instead of reading the value, i got only kernel silently dying.

Friendly,

Sven Luther

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list