[OpenBIOS] [PATCH] ppc: [HACK] add some RTAS properties to make Mac OS 8.5 try to boot

Alyssa Milburn fuzzie at fuzzie.org
Wed Feb 3 23:56:24 CET 2016


On Wed, Feb 03, 2016 at 10:23:19PM +0000, Mark Cave-Ayland wrote:
> Ha cool - this is based on MOL's device tree, right? :)  There is

I actually copied it from real hardware, but now that you mention it, I
wonder if it's useful to go through the MOL tree and check for differences
(the escc-legacy properties seem correct in mol, for example)..

> actually some RTAS code in OpenBIOS but it is disabled by default -
> check out config/examples/ppc_config.xml and CONFIG_RTAS. I've no idea
> if it was ever finished or is any good though.
> 
> Note that as this is a CONFIG option in order to test you'll need to
> blow away your build tree, i.e.
> 
> rm -rf obj-ppc/
> ...
> (enable CONFIG_RTAS in ppc_config.xml)
> ...
> ./config/scripts/switch-arch ppc
> make

Right, the above patch assumes you already did that. (You also have to run
Adler32 before booting because you need the copyright word, as discussed in
the emaculation thread.)

If I grep for spapr_rtas_register calls in qemu, then it seems to add most
of these properties to the OF tree as it initialises the hardware, so I
guess the correct patch would be to do something similar on the qemu side?
(The IBM rtas code seems very overcomplicated compared to qemu's trivial
implementaton, so I guess trying to reuse it would be more trouble than it's
worth.)

- Alyssa



More information about the OpenBIOS mailing list