[OpenBIOS] G3Beige OpenFirmware Tree?

Artyom Tarasenko atar4qemu at gmail.com
Fri Jan 25 22:50:25 CET 2013


On Fri, Jan 25, 2013 at 9:54 PM, Artyom Tarasenko <atar4qemu at gmail.com> wrote:
> Hi Mark,
>
> On Fri, Jan 25, 2013 at 5:20 PM, Mark Cave-Ayland
> <mark.cave-ayland at ilande.co.uk> wrote:
>> On 25/01/13 09:48, Mark Morgan Lloyd wrote:
>>
>>>> On 24/01/13 09:27, Mark Morgan Lloyd wrote:
>>>>
>>>>> I've got one of those machines, set up for OS and Linux (i.e. it's a bit
>>>>> fragile and I'd rather not try installing anything else on it). If that
>>>>> sounds useful tell me what to do.
>>>>
>>>>
>>>> Thanks! I think perhaps a tarball of /proc/device-tree from Linux is
>>>> what I need? There may be a utility to dump the tree from OS X too,
>>>> but I'm not exactly sure what it is.
>>>
>>>
>>> My OS is 9 (I think), I only use it for transferring control to Linux.
>>> You have off-list mail created as below, note error messages of the type
>>> indicated:
>>>
>>> 0 2>root at pye-dev-05:/# tar -czf proc_device-tree.tar.gz /proc/device-tree
>>> tar: Removing leading `/' from member names
>>> tar: /proc/device-tree/perch: file changed as we read it
>>> ..
>>>
>>> Let me know if there's anything else I can do to help.
>>
>>
>> Hi Mark,
>>
>> Thanks for doing this. So I've had a play with PearPC and I can make the
>> CMD646ATA fail during its start method similar to the way that QEMU does by
>> commenting out the IDE interface IRQ entry from the "interrupt-map"
>> property. This seems to support my theory that the problem is related to
>> interrupt mapping.
>
> Looks very similar to sparc64/sun4u problems I struggled ~ a half a year ago.
>
>> Now AIUI g3beige is an "Old World" Mac and so the interrupt information
>> should be held in the "AAPL,interrupts" property. I've verified that both
>> QEMU and OpenBIOS calculate the irq_line in the same way (based upon device
>> id), however I do see that some of the "AAPL,interrupts" values contain more
>> than one integer. I wonder what this is supposed to represent?
>
> Could it be that the irq line is wired to the interrupt controller not
> as a PCI irq line? Similarly to the sun4u machines?

A comment in FreeBSD ofw_pcibus.c says:

/*
* Any AAPL,interrupts property gets priority and is
* fully specified (i.e. does not need routing)
*/

https://github.com/oza/FreeBSD-8.0-dyntick/blob/master/sys/powerpc/ofw/ofw_pcibus.c#L303

Could it be that multiple entries in the AAPL,interrupts properties
mean that the corresponding device has multiple interrupt lines?

Artyom

-- 
Regards,
Artyom Tarasenko

http://tyom.blogspot.com/search/label/qemu



More information about the OpenBIOS mailing list