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

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Thu Feb 4 22:40:13 CET 2016


On 03/02/16 22:56, Alyssa Milburn wrote:

> 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.)

Okay no worries. I just wanted to double-check as I didn't see any
reference to CONIFG_RTAS when I was looking at the patch.

> 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.)

Would calls to words in /rtas be given over the the client interface? If
so try enabling DEBUG_CIF in libopenbios/client.c which will dump all of
the CIF requests out to the serial port which could help here.


ATB,

Mark.




More information about the OpenBIOS mailing list