Page 2 of 4

Re: Running MorphOS in Qemu

Posted: Tue May 18, 2021 9:13 pm
by xeno74
Roland wrote: Tue May 18, 2021 7:43 pm First I tested with MintPPC, and now with Feinix-Soar... It has the same problem. I forgot to check the version number but it is the one in the default Fienix depot.
I will also test it.

Re: Running MorphOS in Qemu

Posted: Mon May 24, 2021 11:57 am
by xeno74
Hi Roland,

I successfully tested MorphOS 3.15 in a virtual QEMU machine with network support on my X5000/40 today.

I tested it with QEMU 5.0.0 (Debian 1:5.0-5 default in the Fienix Soar repository) with the RC3 of kernel 5.13 on Fienix.

Screenshot:

Image

I don't know why it doesn't work on your X5000. Have you seen any error messages?

Cheers,
Christian

Re: Running MorphOS in Qemu

Posted: Mon May 24, 2021 2:47 pm
by Roland
xeno74 wrote: Mon May 24, 2021 11:57 am I successfully tested MorphOS 3.15 in a virtual QEMU machine with network support on my X5000/40 today.

I tested it with QEMU 5.0.0 (Debian 1:5.0-5 default in the Fienix Soar repository) with the RC3 of kernel 5.13 on Fienix.
In MintPPC the version is slighly newer (1:5.2....). I tested also with Fienix-Soar but it did not start, either.
I don't know why it doesn't work on your X5000. Have you seen any error messages?
This is what is listed in the terminal (does not tell me much):

Code: Select all

>> Cannot manage 'misc display controller' PCI device type 'display':
>>  126f 501 (3 80 0)
>> set_property: NULL phandle

>> =============================================================
>> OpenBIOS 1.1 [Jun 27 2018 13:46]
>> Configuration device id QEMU version 1 machine id 1
>> CPUs: 1
>> Memory: 512M
>> UUID: 00000000-0000-0000-0000-000000000000
>> CPU type PowerPC,G4
milliseconds isn't unique.
Output device screen not found.
Output device screen not found.
Trying cd:,/media/NTFS3/MOS/boot.img...
No valid state has been set by load or init-program

Re: Running MorphOS in Qemu

Posted: Mon May 24, 2021 2:54 pm
by xeno74
Do you use 'su -' or 'su' to change to the root user? QEMU with TUN/TAP support only works with 'su' on Fienix. With which user do you use QEMU?

Re: Running MorphOS in Qemu

Posted: Mon May 24, 2021 3:52 pm
by xeno74
Roland wrote: Mon May 17, 2021 3:45 pm When I tried to run MOS with the example found in the link above (very similar to the string in Christians first image), I got to the qemu window showing this text:

Guest has not initialized the display (yet)

What should be done next?
I get also a qemu window with the text "Guest has not initialized the display (yet)". I wait and then MorphOS initializes the display. Maybe you have to wait longer.

Re: Running MorphOS in Qemu

Posted: Mon May 24, 2021 3:58 pm
by xeno74

Code: Select all

Trying cd:,/media/NTFS3/MOS/boot.img...
Strange ... and maybe -boot d. Please check your QEMU command string. You can find this string in my screenshot.

Re: Running MorphOS in Qemu

Posted: Mon May 24, 2021 9:30 pm
by Roland
xeno74 wrote: Mon May 24, 2021 2:54 pm Do you use 'su -' or 'su' to change to the root user? QEMU with TUN/TAP support only works with 'su' on Fienix. With which user do you use QEMU?
I tested different options, also loging as 'root'... The same result with all of them.

Re: Running MorphOS in Qemu

Posted: Mon May 24, 2021 9:33 pm
by Roland
xeno74 wrote: Mon May 24, 2021 3:58 pm

Code: Select all

Trying cd:,/media/NTFS3/MOS/boot.img...
Strange ... and maybe -boot d. Please check your QEMU command string. You can find this string in my screenshot.
I also used -boot d... Here is the whole string:

Code: Select all

> qemu-system-ppc -machine mac99,via=pmu -m 512 \
  -vga none -device sm501 \
  -cdrom /media/NTFS3/MOS/morphos-3.15.iso -boot d \
  -prom-env "boot-device=cd:,/media/NTFS3/MOS/boot.img" \
  -bios /media/NTFS3/MOS/openbios-qemu.elf -serial stdio

Re: Running MorphOS in Qemu

Posted: Tue May 25, 2021 9:52 am
by xeno74
Please test it with prom-env "boot-device=cd:,\mac_ppc32\boot.img"

Thanks

Re: Running MorphOS in Qemu

Posted: Tue May 25, 2021 2:03 pm
by Roland
xeno74 wrote: Tue May 25, 2021 9:52 am Please test it with prom-env "boot-device=cd:,\mac_ppc32\boot.img"
Thanks, with that string I got it running !-) Is the "mac_ppc32/boot.img" some special internal bootimage of qemu?

But the emulation worked VERY slowly, especially the pointer... Is that normal, or is there still some problem?

Can you use qemu with a hd image of a USB stick which can boot mos 'natively' in X5000? Or do you need an installation made for some other machine? How should the string be formulated for that? HD installation within qemu is impossible because of the slowness...