Opened 14 years ago

Last modified 4 years ago

#6071 assigned bug

ppc: OpenFirmware boot loader hangs on QEMU

Reported by: andreasf Owned by: andreasf
Priority: normal Milestone: Unscheduled
Component: System/Boot Loader/Open Firmware Version: R1/Development
Keywords: Cc:
Blocked By: Blocking: #1048, #9817
Platform: PowerPC

Description

The PowerPC boot loader is broken under QEMU. After 0.9.1, QEMU switched from the unmaintained OpenHackWare firmware to OpenBIOS, a real OpenFirmware implementation. This may have introduced regressions on either side.

Both the default Old World machine (-M g3beige)

qemu-system-ppc -boot d -cdrom haiku-boot-cd-ppc.iso

and the New World machine

qemu-system-ppc -M mac99 -boot d -cdrom haiku-boot-cd-ppc.iso

result in:

Welcome to OpenBIOS v1.0 built on May 22 2010 12:55


checking for memory...
0: base = 0x00000000, size = 134217728
1: empty region
total physical memory = 128 MB
suggested page table size = 1048576
need new page table, size = 1048576!
new table at: 0x07f00000

Attachments (1)

powerpc-qemu-hrev51852.png (16.6 KB ) - added by kallisti5 6 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 by andreasf, 14 years ago

Milestone: R1Unscheduled
Owner: changed from nobody to andreasf
Status: newassigned

comment:2 by andreasf, 14 years ago

A few memory layout issues have been fixed in OpenBIOS r908. Haiku proceeds slightly further now:

checking for memory...
0: base = 0x00000000, size = 134217728
total physical memory = 128 MB
suggested page table size = 1048576
need new page table, size = 1048576!
new table at: 0x07a00000
MSR: 0x00003030
found 6 translations
found exception handlers!
found page table!

comment:4 by kallisti5, 12 years ago

http://pub.haikufire.com/extra/qemu-ppc/

Last I checked, the OpenBIOS was hanging due to lack of an Apple Openfirmware property... http://lists.openbios.org/pipermail/openbios/2011-July/006567.html

comment:5 by kallisti5, 11 years ago

Blocking: 9817 added

comment:6 by kallisti5, 11 years ago

http://permalink.gmane.org/gmane.comp.bios.openbios/4792 has more info on how to get around the bug.. not a valid solution but shows how to get further in the.

comment:7 by kallisti5, 6 years ago

As of hrev51852, PowerPC builds again. If you apply the "fix" (hack) in https://dev.haiku-os.org/ticket/6071#comment:6 , you get hung up at partition probing.

by kallisti5, 6 years ago

Attachment: powerpc-qemu-hrev51852.png added

comment:8 by waddlesplash, 5 years ago

Component: - GeneralSystem/Boot Loader

comment:9 by pulkomandy, 4 years ago

Component: System/Boot LoaderSystem/Boot Loader/Open Firmware
Note: See TracTickets for help on using tickets.