Running MorphOS in Qemu

AmigaOne X5000 platform specific issues related to Linux only.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Running MorphOS in Qemu

Post by xeno74 »

Roland wrote: Tue May 18, 2021 6: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.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Running MorphOS in Qemu

Post 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
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Roland
Posts: 824
Joined: Tue May 02, 2017 7:23 am

Re: Running MorphOS in Qemu

Post by Roland »

xeno74 wrote: Mon May 24, 2021 10: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
- Roland -
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Running MorphOS in Qemu

Post 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?
Last edited by xeno74 on Mon May 24, 2021 4:45 pm, edited 1 time in total.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Running MorphOS in Qemu

Post by xeno74 »

Roland wrote: Mon May 17, 2021 2: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.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Running MorphOS in Qemu

Post 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.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Roland
Posts: 824
Joined: Tue May 02, 2017 7:23 am

Re: Running MorphOS in Qemu

Post by Roland »

xeno74 wrote: Mon May 24, 2021 1: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.
- Roland -
Roland
Posts: 824
Joined: Tue May 02, 2017 7:23 am

Re: Running MorphOS in Qemu

Post by Roland »

xeno74 wrote: Mon May 24, 2021 2: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
- Roland -
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Running MorphOS in Qemu

Post by xeno74 »

Please test it with prom-env "boot-device=cd:,\mac_ppc32\boot.img"

Thanks
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Roland
Posts: 824
Joined: Tue May 02, 2017 7:23 am

Re: Running MorphOS in Qemu

Post by Roland »

xeno74 wrote: Tue May 25, 2021 8: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...
- Roland -
Post Reply