Opened 9 years ago

Last modified 3 months 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 Version: R1/Development
Keywords: Cc:
Blocked By: Blocking: #1048, #9817
Has a Patch: no 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 18 months ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 9 years ago by andreasf

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

comment:2 Changed 9 years ago by andreasf

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 Changed 7 years ago by kallisti5

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 Changed 6 years ago by kallisti5

Blocking: 9817 added

comment:6 Changed 6 years ago by kallisti5

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 Changed 18 months ago by kallisti5

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.

Changed 18 months ago by kallisti5

Attachment: powerpc-qemu-hrev51852.png added

comment:8 Changed 3 months ago by waddlesplash

Component: - GeneralSystem/Boot Loader
Note: See TracTickets for help on using tickets.