qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenMPIC controller emulation in qemu ?


From: BALATON Zoltan
Subject: Re: OpenMPIC controller emulation in qemu ?
Date: Thu, 16 May 2024 23:09:50 +0200 (CEST)

On Thu, 16 May 2024, Mark Cave-Ayland wrote:
On 16/05/2024 14:51, Andrew Randrianasulu wrote:

     > and openfirmware starts ....
     >
     > bash-5.1$ build/qemu-system-ppc -M mac99 -smp 2 -nographic
     >
     >>> =============================================================
     >>> OpenBIOS 1.1 [Mar 7 2023 22:21]
     >>> Configuration device id QEMU version 1 machine id 1
     >>> CPUs: 2
     >>> Memory: 128M
     >>> UUID: 00000000-0000-0000-0000-000000000000
     >>> CPU type PowerPC,G4
     > milliseconds isn't unique.
     > Welcome to OpenBIOS v1.1 built on Mar 7 2023 22:21
     > Trying hd:,\\:tbxi...
     > Trying hd:,\ppc\bootinfo.txt...
     > Trying hd:,%BOOT...
     > No valid state has been set by load or init-program
     >
     > 0 >

You can check the device tree in OpenBIOS by using show-devs to see how many CPUs are present, and confirm that the properties are set correctly.

The reason that SMP hasn't been enabled for the Mac machines is mainly because no-one has been inclined to work on it yet ;)

     >
     >
     >
     > but boooting finnix fails:
     >
     > bash-5.1$ build/qemu-system-ppc -M mac99 -smp 2 -nographic -cdrom
     > ~/finnix-ppc-110.iso -boot d
     >
     >>> =============================================================
     >>> OpenBIOS 1.1 [Mar 7 2023 22:21]
     >>> Configuration device id QEMU version 1 machine id 1
     >>> CPUs: 2
     >>> Memory: 128M
     >>> UUID: 00000000-0000-0000-0000-000000000000
     >>> CPU type PowerPC,G4
     > milliseconds isn't unique.
     > Welcome to OpenBIOS v1.1 built on Mar 7 2023 22:21
     > Trying cd:,\\:tbxi...
     >>> switching to new context:
     >
     > я:interpret: exception -13 caught

    There's a comment in openbios/forth/system/ciface.fs that says it might
    not be an error and also a line:

    \ ." INTERPRETE: --- " 2dup type

    where you could remove the \ to get it print the Forth code that causes
    the error. (By the way is INTERPRETE a typo with extra E at the end?)



I tried this and get:

bash-5.1$ build/qemu-system-ppc -M mac99 -smp 4 -nographic -cdrom ~/finnix-ppc-110.iso -boot d -bios /dev/shm/openbios-qemu.elf

 >> =============================================================
 >> OpenBIOS 1.1 [May 16 2024 12:44]
 >> Configuration device id QEMU version 1 machine id 1
 >> CPUs: 4
 >> Memory: 128M
 >> UUID: 00000000-0000-0000-0000-000000000000
 >> CPU type PowerPC,G4
milliseconds isn't unique.
Welcome to OpenBIOS v1.1 built on May 16 2024 12:44
Trying cd:,\\:tbxi...
 >> switching to new context:

я:interpret: exception -13 caughte-int nip nip ;

This didn't seem to work. Only remove the \ not the ." or anythnig after that (or maybe this debug line has bitrotten?).

=====

Try rebuilding OpenBIOS with DEBUG_CIF enabled in libopenbios/client.c which will show the calls being used by the bootloader.

Yes that's what I've used before but forgot where is it. That would give more info on other client interface calls too. Also make sure you have -d unimp,guest_errors in yout QEMU command as that may give better errors when something goes wrong/.

Regards,
BALATON Zoltan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]