MorphOS runs on QEmu
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Flash
    Posts: 105 from 2019/11/1
    Sadly in next version of QEMU will be not present the new Pegasos II board on which Zoltan Balaton is working on. Meanwhile there was a great fix for Sam460ex board to prevents random gurus and and improved emulation od via-ide chipset.
    For a complete Pegasos II usage there will be still needed ATI Radeon full emulation and some other stuff.
    Zoltan said me maybe it could be done in a 5.1 or 5.2 version of QEMU, so on 3th or 4th quarter of 2020. I tried to support him with debug logs from a real Pegasos II, but I hope there will other people interested on it who can support in any way the project.
    Remember a virtual board will be never broken and time after time it will be faster and faster with release of new cpus.. It can be considered also a good way to preserve from time our beloved Amigas and our history.
  • »05.04.20 - 13:06
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Flash
    Posts: 105 from 2019/11/1
    Yes I hope Balaton's patches will be reviewed and approved for main tree in next days.
    Meanwhile, as written in my other recent post, also Pegasos II board could be present in Qemu 6.0
    With this new addition, main goal should be to virtualize powerpc on powermacs, and run OS4 at full speed.

    Anyway this seems to be a great period for Amiga systems, there are happening a lot of nice things.
  • »04.01.21 - 18:02
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    analogkid
    Posts: 671 from 2004/11/3
    From: near myself
    Quote:

    Andreas_Wolf wrote:
    Update:

    > QEMU Sam460 emulation for running OS4 and [...]
    > QEMU mac99 emulation for running MorphOS

    It seems that QEMU v6.0 will come with a Sam460 emulation bug-fixed to be MorphOS-compatible:

    https://lists.gnu.org/archive/html/qemu-ppc/2021-01/msg00006.html


    Hmm, does this make any difference in the emulation over mac99? I mean, it wouldn't be faster, and the gfxchipset is still the emulated ST 502?
  • »04.01.21 - 21:45
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12199 from 2003/5/22
    From: Germany
    > does this make any difference in the emulation over mac99?

    I can't think of any advantage of running MorphOS inside Sam460 emulation to running it inside PowerMac3,1/mac99 emulation, if that's what you mean.

    > the gfxchipset is still the emulated ST 502?

    Of course, it's still the SM502 (or rather emulated SM501, but that's apparently similar enough for the OS drivers not to notice) because that's what happens to be on the real Sam460ex board after all. However, I can't see why the emulated Rage 128 Pro (see comment #151) wouldn't be usable with Sam460 emulation (or the upcoming Pegasos II emulation for that matter). As I understand, Radeon R100 emulation is still being worked on.
  • »04.01.21 - 22:14
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Flash
    Posts: 105 from 2019/11/1
    I wonder if some in MOS/OS4 developer team would help Zoltan to reach the goal and have a virtual NG platform ready for next Qemu 6.1 release.
    Zoltan could be also asked to be (at least partially) involved in x86 porting of MOS, because he has proved to be a very skilled lowlevel programmer.
    QEMU could really be a valid alternative to UAE for AmigaNG platforms.
    Next steps are about correctly emulating ATI radeon gfx cards.
  • »07.06.21 - 12:40
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12199 from 2003/5/22
    From: Germany
    > to reach the goal and have a virtual NG platform ready

    Isn't this already there in form of the Sam460 emulation? What's intended with the Pegasos II emulation is a common QEMU platform that can be virtualized with KVM-PR on Book III-S hardware. This cannot be done with the Book III-E platform that is the Sam460, as you correctly wrote 5 months back.

    > QEMU could really be a valid alternative to UAE
    > for AmigaNG platforms.

    UAE cannot run current MorphOS 2.0+ because there hasn't been released any MorphOS 2.0+ for PowerUP. So in terms of running MorphOS 2.0+, and thus also in terms of running both OS4 and MorphOS 2.0+ via the same software solution, QEMU isn't just a valid alternative to UAE but very much the only way to do it.
  • »07.06.21 - 17:02
    Profile
  • MorphOS Developer
    Piru
    Posts: 587 from 2003/2/24
    From: finland, the l...
    Quote:

    Flash wrote:
    I wonder if some in MOS/OS4 developer team would help Zoltan to reach the goal and have a virtual NG platform ready for next Qemu 6.1 release.

    I don't think he needs any help really, he seems to be doing just fine. Also, QEMU has been working fine for some time already. I've for example ran most of my MorphOS testing on QEMU for several years now (no need to carry multiple laptops around).

    QEMU Pegasos II emulation gives no benefit over Sam460 emulation, to be honest. At least I see no point in switching to it (note that I care about MorphOS emulation).

    QEMU has a very limited usability really: The performance is so limited it mainly is usable for quick testing. Compile and similar tasks are better suited for amd64 linux cross-compile environment.

    Please also note that QEMU isn't an officially supported platform for MorphOS and you cannot register MorphOS for QEMU.

    [ Edited by Piru 07.06.2021 - 22:15 ]
  • »07.06.21 - 19:07
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12199 from 2003/5/22
    From: Germany
    > I don't think he needs any help really

    If desired, I can compile a list of Zoltan's messages to mailing lists (including the MorphOS one) where he (told he) asked the MorphOS devs for help and reported that sadly he did not receive any answers from them to technical questions ;-) Fortunately, you are right that so far he was able to solve crucial problems without the help of the MorphOS team, even if it took him longer to finally figure out the solutions or workarounds himself to make MorphOS run.

    > QEMU Pegasos II emulation gives no benefit over Sam460 emulation

    Maybe not so much for MorphOS, yes.
  • »07.06.21 - 19:56
    Profile
  • MorphOS Developer
    Piru
    Posts: 587 from 2003/2/24
    From: finland, the l...
    @Andreas_Wolf

    At least me personally I have no desire to get involved.
  • »07.06.21 - 20:09
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Flash
    Posts: 105 from 2019/11/1
    Maybe could be sufficient give hits to some questions raised by Zoltan in qemu ml, as example about ide legacy implementation or firmware load. It’s not needed to code for qemu, Zoltan can do it for all us.
  • »07.06.21 - 23:24
    Profile Visit Website
  • Butterfly
    Butterfly
    waldiamiga
    Posts: 95 from 2007/7/25
    From: Krakow, Poland
    I'm using an emulated Pegasos with MorphOS 3.15 rc1 to rc4. It can even be used, although it lacks a good graphics card. Lack of support for Lan and sound cards bothers a bit. It is also impossible to save autostart from setenv. Time to try the full version 6.1

    MorphOS.pl
    PowerBook G4 1.67GHz|2GB DDR2|ATI Radeon 9700M 128MB|SSD 80GB|TFT 17"|MorphOS 3.1x
    Alienware 15 R3|WinUAE 5.x/AmigaOS4.1x & Icaros Desktop 2.x & QEmu 9.x.x
  • »26.08.21 - 13:35
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12199 from 2003/5/22
    From: Germany
    > I'm using an emulated Pegasos with MorphOS 3.15 rc1 to rc4.

    I guess you mean rc1 to rc4 of QEMU v6.1 ;-)

    > Lack of support for Lan

    Why not simply use an emulated RTL8139 like in comment #140?

    > It is also impossible to save autostart from setenv.

    As a workaround until NVRAM emulation is added, you can extract the boot.img from the ISO image and use '-kernel boot.img'.
  • »26.08.21 - 20:00
    Profile
  • Butterfly
    Butterfly
    waldiamiga
    Posts: 95 from 2007/7/25
    From: Krakow, Poland
    Quote:

    Andreas_Wolf wrote:

    I guess you mean rc1 to rc4 of QEMU v6.1 ;-)



    Yes, sorry, my mistake.:)

    Quote:

    Andreas_Wolf wrote:
    Why not simply use an emulated RTL8139 like in comment #140?



    Parameter which i used in Mac99 emulation, -net nic,model=rtl8139 -net user not work, dos console message: warning:requested NIC (#net033, model rtl8139) was not created.
    (not supported by this machine?)



    Quote:

    Andreas_Wolf wrote:
    As a workaround until NVRAM emulation is added, you can extract the boot.img from the ISO image and use '-kernel boot.img'.


    Will try it tomorrow. Thanks for the help!

    MorphOS.pl
    PowerBook G4 1.67GHz|2GB DDR2|ATI Radeon 9700M 128MB|SSD 80GB|TFT 17"|MorphOS 3.1x
    Alienware 15 R3|WinUAE 5.x/AmigaOS4.1x & Icaros Desktop 2.x & QEmu 9.x.x
  • »26.08.21 - 20:16
    Profile
  • MorphOS Developer
    Piru
    Posts: 587 from 2003/2/24
    From: finland, the l...
    Is there some reason why anyone would use Pegasos II instead of Mac99 or Sam460 system in QEmu when running MorphOS? At least I don't see any reason.

    [ Edited by Piru 28.08.2021 - 07:59 ]
  • »26.08.21 - 21:12
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    sailor
    Posts: 378 from 2019/5/9
    From: Central Bohemi...
    Maybe because Pegasos was first MorphOS computer?
    And what about Altivec - how is emulated/used in Qemu PPC ? I think there are no options such "cpu mode='host-passthrough" in PPC Qemu+KVM version ?..
    AmigaOS3: Amiga 1200
    AmigaOS4: Micro A1-C, AmigaOne XE, Pegasos II, Sam440ep, Sam440ep-flex, Sam460LE, AmigaOneX1000
    MorphOS: Efika 5200b, Pegasos I, Sam460LE, Pegasos II, Powerbook G4, Mac Mini, iMac G5, Powermac G5 Quad
  • »27.08.21 - 11:32
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Flash
    Posts: 105 from 2019/11/1
    Quote:

    Piru wrote:
    Is there some reason why anyone would use Pegasos II instead of Sam460 system in QEmu when running MorphOS? At least I don't see any reason.


    The goal was to use kvm-pr mode and use powerpc at full speed.
    With a Sam460ex it was not possible due it's book3e cpu.

    I repeat, any help is much appreciated and MOS Team could elaborate another way to release licences for these virtual boards.
  • »27.08.21 - 14:51
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 3118 from 2003/3/5
    From: Canada
    Quote:

    MOS Team could elaborate another way to release licences for these virtual boards


    Once again, there are no plans to allow registering emulators.
  • »27.08.21 - 16:03
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12199 from 2003/5/22
    From: Germany
    > what about Altivec - how is emulated/used in Qemu PPC ?

    On x86-64, which is what Piru runs QEMU on, AltiVec/VMX instructions are translated to AVX instructions (or to scalar instructions on old x86-64 CPUs that lack AVX).

    > I think there are no options such "cpu mode='host-passthrough"
    > in PPC Qemu+KVM version ?

    In theory this should be possible with Book III-S CPU virtualized on Book III-S CPU (see comment #161). Some years ago, there were reports on POWER9 virtualizing G4 at 2 GHz running Mac OS X. I'm not aware of anyone successfully running MorphOS or OS4 this way, though.
  • »27.08.21 - 18:11
    Profile
  • MorphOS Developer
    Piru
    Posts: 587 from 2003/2/24
    From: finland, the l...
    Quote:

    The goal was to use kvm-pr mode and use powerpc at full speed.
    With a Sam460ex it was not possible due it's book3e cpu.


    You can configure arbitrary CPU while using QEmu. I often use 750cxe and 7448 when testing (this is in combination with -machine mac99). I don't know how kvm-pr works exactly but it'd be mighty silly if it would somehow restrict the emulated CPU type.

    You can get some impossible system + CPU combinations but as long as you boot the correct MorphOS version (and the CPU is supported in the first place) it ought to just work. Naturally if the kvm-pr can't emulate a MorphOS compatible CPU it won't work. My point here is that Pegasos II machine emulation doesn't give you any better options regarding this.

    Granted, I don't use kvm-pr myself so I have no intimate knowledge about the limitations it poses. Yet, I see no way how Pegasos II machine emulation would improve the situation there.

    [ Edited by Piru 28.08.2021 - 08:07 ]
  • »28.08.21 - 04:41
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Georg
    Posts: 111 from 2004/4/7
    Quote:

    Piru wrote:
    Quote:

    The goal was to use kvm-pr mode and use powerpc at full speed.
    With a Sam460ex it was not possible due it's book3e cpu.


    You can configure arbitrary CPU while using QEmu. I often use 750cxe and 7448 when testing (this is in combination with -machine mac99). I don't know how kvm-pr works exactly but it'd be mighty silly if it would somehow restrict the emulated CPU type.



    There would not be any emulation of CPU as same (PowerPC) CPU which runs Qemu natively would run MorphOS natively (through Qemu). Like VirtualBox + co. in x86 world. Or AROS/hosted on Linux.
  • »28.08.21 - 06:26
    Profile