[OpenBIOS] Fail to boot a macosx 10.5 disk image

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sun Jun 12 17:38:32 CEST 2016


On 12/06/16 16:24, Cédric Le Goater wrote:

>>> FYI, I had to specify the path of BootX to get running. 
>>
>> Oh great! Is this something that could be added to the list of paths
>> OpenBIOS searches for an executable on boot? If you can suggest a
>> suitable place in the ordering, the patch to add it is fairly trivial.
>>
> 
> It is a pretty standard path :
> 
> 	-prom-env 'boot-device=hd:3,\System\Library\CoreServices\BootX'
> 
> Here are some traces below,
> 
> Cheers,
> 
> C.
> 
> 
>>> =============================================================
>>> OpenBIOS 1.1 [Jun 9 2016 11:48]
>>> Configuration device id QEMU version 1 machine id 1
>>> CPUs: 1
>>> Memory: 1024M
>>> UUID: 00000000-0000-0000-0000-000000000000
>>> CPU type PowerPC,G4
> milliseconds isn't unique.
> Welcome to OpenBIOS v1.1 built on Jun 9 2016 11:48
> Trying hd:,\\:tbxi...
>>> MAC-PARTS: macparts_probe 4552 ?= 4552
>>> MAC-PARTS: macparts_open ',\\:tbxi'
>>> MAC-PARTS: parstr: <NULL>  argstr: \\:tbxi  parnum: -1
>>> MAC-PARTS: want_bootcode 0
>>> MAC-PARTS: macparts_open -1
>>> MAC-PARTS: mac-parts: counted 4 partitions
>>> MAC-PARTS: found partition 1 type: Apple_partition_map with status 3
>>> MAC-PARTS: found partition 2 type: Apple_Free with status 0
>>> MAC-PARTS: found partition 3 type: Apple_HFS with status 40000033
>>> MAC-PARTS: Located Apple OF fallback partition 3
>>> MAC-PARTS: found partition 4 type: Apple_Free with status 0
>>> MAC-PARTS: Selected partition 3
>>> MAC-PARTS: mac-parts: about to probe for fs
>>> MAC-PARTS: mac-parts: done fs probe
>>> MAC-PARTS: mac-parts: filesystem found on partition 3 with ph fff51010 and args \\:tbxi
>>> MAC-PARTS: macparts_seek 400:
>>> MAC-PARTS: macparts_seek parent offset 8008400:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek 948a55c00:
>>> MAC-PARTS: macparts_seek parent offset 950a5dc00:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek d01000:
>>> MAC-PARTS: macparts_seek parent offset 8d09000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek ec9000:
>>> MAC-PARTS: macparts_seek parent offset 8ed1000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek eca000:
>>> MAC-PARTS: macparts_seek parent offset 8ed2000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek 14a87e000:
>>> MAC-PARTS: macparts_seek parent offset 152886000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek 14a87f000:
>>> MAC-PARTS: macparts_seek parent offset 152887000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek 14a826000:
>>> MAC-PARTS: macparts_seek parent offset 15282e000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek 14a827000:
>>> MAC-PARTS: macparts_seek parent offset 15282f000:
>>> MAC-PARTS: macparts_read
>>> search_files(): :tbxi
>>> MAC-PARTS: macparts_probe 4552 ?= 4552
>>> MAC-PARTS: macparts_open ',\\:tbxi'
>>> MAC-PARTS: parstr: <NULL>  argstr: \\:tbxi  parnum: -1
>>> MAC-PARTS: want_bootcode 0
>>> MAC-PARTS: macparts_open -1
>>> MAC-PARTS: mac-parts: counted 4 partitions
>>> MAC-PARTS: found partition 1 type: Apple_partition_map with status 3
>>> MAC-PARTS: found partition 2 type: Apple_Free with status 0
>>> MAC-PARTS: found partition 3 type: Apple_HFS with status 40000033
>>> MAC-PARTS: Located Apple OF fallback partition 3
>>> MAC-PARTS: found partition 4 type: Apple_Free with status 0
>>> MAC-PARTS: Selected partition 3
>>> MAC-PARTS: mac-parts: about to probe for fs
>>> MAC-PARTS: mac-parts: done fs probe
>>> MAC-PARTS: mac-parts: filesystem found on partition 3 with ph fff51010 and args \\:tbxi
>>> MAC-PARTS: macparts_seek 400:
>>> MAC-PARTS: macparts_seek parent offset 8008400:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek 948a55c00:
>>> MAC-PARTS: macparts_seek parent offset 950a5dc00:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek d01000:
>>> MAC-PARTS: macparts_seek parent offset 8d09000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek ec9000:
>>> MAC-PARTS: macparts_seek parent offset 8ed1000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek eca000:
>>> MAC-PARTS: macparts_seek parent offset 8ed2000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek 14a87e000:
>>> MAC-PARTS: macparts_seek parent offset 152886000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek 14a87f000:
>>> MAC-PARTS: macparts_seek parent offset 152887000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek 14a826000:
>>> MAC-PARTS: macparts_seek parent offset 15282e000:
>>> MAC-PARTS: macparts_read
>>> MAC-PARTS: macparts_seek 14a827000:

Does installation of BootX bless "\System\Library\CoreServices\BootX" as
the system folder at all? If not, then it won't be picked up by
OpenBIOS. Perhaps on a real Mac the boot command containing the full
path to BootX is updated in the NVRAM?

If BootX should always be used where it exists in preference to the
blessed system folder, then possibly it should be added to the head of
the boot list in arch/ppc/qemu/init.c line 980? Or would this break some
boot scenarios?


ATB,

Mark.




More information about the OpenBIOS mailing list