[CDG5] Getting old world ROM boot on QEMU g3beige
Howard Spoelstra
hsp.cat7 at gmail.com
Tue Jul 7 14:05:52 AWST 2020
On Tue, Jul 7, 2020 at 3:21 AM Max Poliakovski <
maximumspatium at googlemail.com> wrote:
> Hello guys,
>
>
>> The firmware ROM seems to expect the GPU to be at PCI address 0x12 and
>> does not seem to touch other devices. I wonder how does a plug-in PCI
>> graphics card wotks on real hardware because that's probably a different
>> PCI address?
>
>
> The Mac ROM does indeed expect the soldered onboard ATI card to be at
> address 0x12. That card doesn't come with an expansion ROM required for
> pluggable cards - the FCode driver is supplied with the OpenFirmware/MacOS
> instead.
>
> Another PCI video card would need an expansion ROM to be recognizable by
> the Apple OpenFirmware implementation. Pluggable ATI Rage 128 cards do
> include such an expansion ROM. It can be flushed to contain either a PC x86
> bios code or FCode.
>
> I have the original ATI dumps for Mac on my HD. They contain a FCODE
> program, very similar to that found in the Beige ROM, that will initialize
> the video chip as well as the MacOS driver encoded as Forth strings.
>
> An attempt to emulate the expansion ROM with the corresponding FCODE
> program might work.
>
> Best regards
> Max
>
Hi Max,
Qemu can run openbios and boot MacOS (Not OSX) with an ATI rom.
The required patches to Qemu are in master. You would however need a
patched openbios. The one I attached does the trick.
The rom needed is the 136 version of the ATY Rage 128 Pd rom. Also
attached. You can put the rom on a Mac OS 9.2 hard disk image which has all
ATI extensions disabled and load it from the openbios prompt.
Run qemu with:
./qemu-system-ppc \
-bios openbios-qemu-activedevice-v3-pci-map-in_rage128pd.elf \
-prom-env "vga-ndrv?=false" \
-prom-env "auto-boot?=false" \
-device ati-vga,guest_hwcursor=true \
-hda Macos9.2.img
At the openbios prompt enter:
" /pci/@f" select-dev
load hd:,\rom\136.rom
4000040 1 byte-load
At the garbled openbios screen blindly type:
boot
Best,
Howard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ucc.gu.uwa.edu.au/pipermail/cdg5/attachments/20200707/85532a41/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openbios-qemu-activedevice-v3-pci-map-in_rage128pd.elf
Type: application/octet-stream
Size: 664752 bytes
Desc: not available
URL: <https://lists.ucc.gu.uwa.edu.au/pipermail/cdg5/attachments/20200707/85532a41/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ati_oem_rage128pro_136_agp_full.rom
Type: application/octet-stream
Size: 131072 bytes
Desc: not available
URL: <https://lists.ucc.gu.uwa.edu.au/pipermail/cdg5/attachments/20200707/85532a41/attachment-0001.obj>
More information about the cdg5
mailing list