GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

About Qemu-system-ppc, a PPC Mac emulator for Windows, macOS and Linux that can run Mac OS 9.0 up to Mac OS X 10.5

Moderators: Cat_7, Ronald P. Regensburg

User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by Cat_7 »

Do you have a link to that SDL Windows version?
We've got you covered ;-)
http://www.emaculation.com/forum/viewto ... =34&t=9028

Please remember to set program compatibility to windows 7.

Best,
Cat_7
User avatar
sentient06
Mac Mechanic
Posts: 188
Joined: Tue Mar 29, 2011 8:57 pm
Location: London, UK

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by sentient06 »

william341 wrote:The funny thing is that QEMU (which managed to develop this crap in less than a year) is more stable than a 9 year old emu (SheepShaver)
Well, if you consider SS has not been developed for some 8 years, that statement is a little bit unfair. Also, one could argue SS is older than that.

I guess SS was always the black sheep emulator, sort of an altered Basilisk nobody really cared to document and introduce steady improvements. Geddit!? SheepShaver! Black sheep! :mrgreen:

But seriously now, QEMU was already in a good shape, if we look back. All it needs is some fine-tuning and stuff will progressively get better. SS is less concerned about emulating and more about patching ROM, I believe, and I think that's why it is unstable.
User avatar
celebi23
Granny Smith
Posts: 101
Joined: Wed Jun 18, 2008 5:53 am

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by celebi23 »

Cat_7 wrote:
Do you have a link to that SDL Windows version?
We've got you covered ;-)
http://www.emaculation.com/forum/viewto ... =34&t=9028

Please remember to set program compatibility to windows 7.

Best,
Cat_7
Sweet! Thanks.
kataetheweirdo
Master Emulator
Posts: 313
Joined: Sun Feb 01, 2009 4:55 pm

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by kataetheweirdo »

sentient06 wrote: Well, if you consider SS has not been developed for some 8 years, that statement is a little bit unfair. Also, one could argue SS is older than that.

I guess SS was always the black sheep emulator, sort of an altered Basilisk nobody really cared to document and introduce steady improvements. Geddit!? SheepShaver! Black sheep! :mrgreen:

But seriously now, QEMU was already in a good shape, if we look back. All it needs is some fine-tuning and stuff will progressively get better. SS is less concerned about emulating and more about patching ROM, I believe, and I think that's why it is unstable.
Yeah, I considered making a whole topic on the Sheepshaver forum dedicated to dissecting its source code. However, considering how much time it takes and there doesn't seem to be a lot of popularity for it, I was hesitant. There are some notes scattered around, but I'm sure that's not the whole thing either.

It isn't just ROM patches, but RAM patches as well. I could try to rewrite it, but there's little motivation to do so. Given how scarce documentation on Apple's hardware is (like the sound chips), it's not surprising Sheepshaver doesn't have more development. The documentation is out there, but it took a lot of Google searching to find out some of the more obscure bits of the pre-Intel and G5, but post-Mac II Macintoshes.
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by adespoton »

sentient06 wrote:
william341 wrote:The funny thing is that QEMU (which managed to develop this crap in less than a year) is more stable than a 9 year old emu (SheepShaver)
Well, if you consider SS has not been developed for some 8 years, that statement is a little bit unfair. Also, one could argue SS is older than that.

I guess SS was always the black sheep emulator, sort of an altered Basilisk nobody really cared to document and introduce steady improvements. Geddit!? SheepShaver! Black sheep! :mrgreen:

But seriously now, QEMU was already in a good shape, if we look back. All it needs is some fine-tuning and stuff will progressively get better. SS is less concerned about emulating and more about patching ROM, I believe, and I think that's why it is unstable.
I'd like to add that qemu supporting OS 9 may have looked like an event of the past year, but the original GSOC where all of this really got started was in 2010 -- it just took until this year for enough of the basic parts to be in place for accelerated development to be possible. So that's 6 years to get to something stable and functional.
william341
Space Cadet
Posts: 3
Joined: Fri Oct 21, 2016 3:35 am

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by william341 »

Anyone know how to get audio semi-working?
User avatar
celebi23
Granny Smith
Posts: 101
Joined: Wed Jun 18, 2008 5:53 am

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by celebi23 »

Cat_7 wrote:
Do you have a link to that SDL Windows version?
We've got you covered ;-)
http://www.emaculation.com/forum/viewto ... =34&t=9028

Please remember to set program compatibility to windows 7.

Best,
Cat_7
So, I’ve tried SheepShaver, Basilisk II, Mini vMac & now Qemu (on Windows). The game always freezes when you get the key out of the Church door. Seems like a bug with the game itself. It's a pretty big problem because they key is an essential item to continue in the game.
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by adespoton »

william341 wrote:Anyone know how to get audio semi-working?
Search this thread for USB audio and you'll find the appropriate flags.
CharlesS
Granny Smith
Posts: 107
Joined: Thu Aug 14, 2008 9:05 am

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by CharlesS »

celebi23 wrote:
Cat_7 wrote:
Do you have a link to that SDL Windows version?
We've got you covered ;-)
http://www.emaculation.com/forum/viewto ... =34&t=9028

Please remember to set program compatibility to windows 7.

Best,
Cat_7
So, I’ve tried SheepShaver, Basilisk II, Mini vMac & now Qemu (on Windows). The game always freezes when you get the key out of the Church door. Seems like a bug with the game itself. It's a pretty big problem because they key is an essential item to continue in the game.
I hadn't heard of that game, so I googled it. It seems to be a Sierra SCI game, so I wonder if it would work in ScummVM.

If that doesn't work, you could try it in MAME (I posted a patched binary build that can boot 7.5.3 in another thread).
There's no earthly way of knowing, which direction we are going, for the rowers keep on rowing, and they're certainly not showing any signs that they are slowing.
User avatar
sentient06
Mac Mechanic
Posts: 188
Joined: Tue Mar 29, 2011 8:57 pm
Location: London, UK

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by sentient06 »

kataetheweirdo wrote: Yeah, I considered making a whole topic on the Sheepshaver forum dedicated to dissecting its source code. However, considering how much time it takes and there doesn't seem to be a lot of popularity for it, I was hesitant. There are some notes scattered around, but I'm sure that's not the whole thing either.

It isn't just ROM patches, but RAM patches as well. I could try to rewrite it, but there's little motivation to do so. Given how scarce documentation on Apple's hardware is (like the sound chips), it's not surprising Sheepshaver doesn't have more development. The documentation is out there, but it took a lot of Google searching to find out some of the more obscure bits of the pre-Intel and G5, but post-Mac II Macintoshes.
Risking going slightly off-topic here, and perhaps touching a subject I think was discussed elsewhere: can some QEMU code, as of today, be recycled as to improve SheepShaver? I was thinking MMU, but perhaps there are other components that could be used. It would be nice.

And I really like the idea of documenting SheepShaver. I remember I read some of the code to guess what kind of settings it is capable of using. I used a template from the Basilisk II docs and changed according to my findings. Still, I suppose there are many other interesting aspects of the program that could be documented.
User avatar
celebi23
Granny Smith
Posts: 101
Joined: Wed Jun 18, 2008 5:53 am

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by celebi23 »

CharlesS wrote: I hadn't heard of that game, so I googled it. It seems to be a Sierra SCI game, so I wonder if it would work in ScummVM.

If that doesn't work, you could try it in MAME (I posted a patched binary build that can boot 7.5.3 in another thread).
It works in ScummVM up to a point. ScummVM works great with the CD/Floppy Windows/DOS versions. It just doesn't work great with the Mac version yet. Going to try it on my old iMac G3 again to see if the issue happens there as well.
Programmingkid
Apple Corer
Posts: 243
Joined: Sun Jan 31, 2016 6:01 pm

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by Programmingkid »

sentient06 wrote:
kataetheweirdo wrote: Yeah, I considered making a whole topic on the Sheepshaver forum dedicated to dissecting its source code. However, considering how much time it takes and there doesn't seem to be a lot of popularity for it, I was hesitant. There are some notes scattered around, but I'm sure that's not the whole thing either.

It isn't just ROM patches, but RAM patches as well. I could try to rewrite it, but there's little motivation to do so. Given how scarce documentation on Apple's hardware is (like the sound chips), it's not surprising Sheepshaver doesn't have more development. The documentation is out there, but it took a lot of Google searching to find out some of the more obscure bits of the pre-Intel and G5, but post-Mac II Macintoshes.
Risking going slightly off-topic here, and perhaps touching a subject I think was discussed elsewhere: can some QEMU code, as of today, be recycled as to improve SheepShaver? I was thinking MMU, but perhaps there are other components that could be used. It would be nice.

And I really like the idea of documenting SheepShaver. I remember I read some of the code to guess what kind of settings it is capable of using. I used a template from the Basilisk II docs and changed according to my findings. Still, I suppose there are many other interesting aspects of the program that could be documented.
Your idea does sound interesting. Is the maker of Sheepshaver still accepting patches?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by Cat_7 »

Certainly, Alexei Svitkine currently maintains the code.

Best,
Cat_7
gtxaspec
Tinkerer
Posts: 62
Joined: Mon Oct 19, 2015 7:32 pm

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by gtxaspec »

Ultimately, I believe QEMU is a better path of progression, for it is closer to emulating actual Apple PowerPC hardware VS SheepShaver. I do believe though that many people don't understand what the current primary objective of the QEMU project is, an enterprise-grade hypervisor. So we ultimately are at the mercy of the overall project goal in regards to changes and modifications to the way QEMU works and is displayed. We are very grateful that Apple-PPC-Hardware god's like BenH ( Who did lots of early work getting Linux to run on old-world Apple PPC hardware via his Linux Kernel tree ) and Mark Cave-Ayland, and others who contribute to QEMU because IBM ( many of the contributors employer ) sponsors development due to their new Power.org PAPR initiative, have been involved and supportive of making MacOS bootable within QEMU. There has been tremendous work done recently in regards to PPC in QEMU. I think if some other folks experienced in classic MacOS realize that QEMU is booting classic MacOS, some more patches and work will get in. Great progress so far, the QEMU maintainers and everyone who has contributed so far, very much appreciated to everyone's hard work.

Also, wouldn't it be cool to boot m68k MacOS on qemu?
User avatar
sentient06
Mac Mechanic
Posts: 188
Joined: Tue Mar 29, 2011 8:57 pm
Location: London, UK

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by sentient06 »

gtxaspec wrote:Ultimately, I believe QEMU is a better path of progression, for it is closer to emulating actual Apple PowerPC hardware VS SheepShaver. I do believe though that many people don't understand what the current primary objective of the QEMU project is, an enterprise-grade hypervisor. So we ultimately are at the mercy of the overall project goal in regards to changes and modifications to the way QEMU works and is displayed. We are very grateful that Apple-PPC-Hardware god's like BenH ( Who did lots of early work getting Linux to run on old-world Apple PPC hardware via his Linux Kernel tree ) and Mark Cave-Ayland, and others who contribute to QEMU because IBM ( many of the contributors employer ) sponsors development due to their new Power.org PAPR initiative, have been involved and supportive of making MacOS bootable within QEMU. There has been tremendous work done recently in regards to PPC in QEMU. I think if some other folks experienced in classic MacOS realize that QEMU is booting classic MacOS, some more patches and work will get in. Great progress so far, the QEMU maintainers and everyone who has contributed so far, very much appreciated to everyone's hard work.

Also, wouldn't it be cool to boot m68k MacOS on qemu?
It would be very cool! Or should I say: it *will* be very cool!

I agree with your idea of QEMU and I like the prospects. But hey, SS is a faster track in some situations, I think. I see developers want to add their contribution to QEMU and see it evolve as a single, cohesive software. SheepShaver is more relaxed in a sense; people fork it, experiment with it, change it because there is no "official repo" (afaik) or anything of the sort. We end up with different flavours of SheepShaver and Basilisk, and that's messy, but that's okay. So I am all in favour of teaching them some new tricks. I see SS as an unsung hero of mac emulation and it would benefit from some attention before QEMU matures and becomes the best alternative.

Changing subjects: have anyone tested the disks from "Mac OS Anthology" in QEMU? If I recall correctly, SheepShaver can't recognise DVDs.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by Ronald P. Regensburg »

sentient06 wrote:SheepShaver is more relaxed in a sense; people fork it, experiment with it, change it because there is no "official repo" (afaik) or anything of the sort.
The "official repo" is still here: https://github.com/cebix/macemu
User avatar
24bit
Forum All-Star
Posts: 1424
Joined: Wed Nov 11, 2009 5:47 pm
Location: Germany

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by 24bit »

Changing subjects: have anyone tested the disks from "Mac OS Anthology" in QEMU? If I recall correctly, SheepShaver can't recognise DVDs.
Its possible to point the "Unix folder" to the DVD (image).
I did that occasionally with my 10.6.8 host, not sure about WIN/Linux.
Programmingkid
Apple Corer
Posts: 243
Joined: Sun Jan 31, 2016 6:01 pm

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by Programmingkid »

I updated the QEMU PowerPC wiki page here: http://wiki.qemu.org/Documentation/Platforms/PowerPC

Let me know what you think. If something should be added or changed, I will do it.
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by adespoton »

The mac99pre configuration is needed for booting 10.5. That was post-2.7 though. Is there any word on if it is going to make it into 2.8 final?

[edit] Also, doesn't sungem post-date the official 2.7 OpenBIOS release? In order to use it, you need to specify a more recent OpenBIOS. So while your information is accurate, people might get confused attempting to enable sungem on a default 2.7 build.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by Cat_7 »

Hi,

Official source:
Mac OS 9 can network with the realtek drivers after the realtek pci problems were solved in openbios. Sungem cannot be used (see below).

Work post 2.7 outside the main tree:
Leopard can boot and install (also to hd image) when using the 28pre build from benh's sources with pmu support, working mouse/keyboard, the custom openbios and machine model mac99p. Only in that build networking with the sungem device is available. VGA enhancements are also not yet available generally.

@adespoton: I contacted benh a few days ago and asked whether sungem, pmu, vga driver would make it into 2.8, but he has no time to work on it now. He will get back to it, however.

Best,
Cat_7
gtxaspec
Tinkerer
Posts: 62
Joined: Mon Oct 19, 2015 7:32 pm

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by gtxaspec »

Someone is working on m68k QEMU patches, emulating a quadra 800...


:cool:
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by Cat_7 »

Yes,

But probably not to run Mac OS. It would need the rom.
I updated the QEMU PowerPC wiki page here: http://wiki.qemu.org/Documentation/Platforms/PowerPC
Let me know what you think. If something should be added or changed, I will do it.
About the wikipage: you mention model type "beigeg3". That should be "g3beige". And the screen shot showing the monitors panel could only have been made using a build from benh's fork. So it is misleading as to what users can expect from a build form the official source.

Best,
Cat_7
Programmingkid
Apple Corer
Posts: 243
Joined: Sun Jan 31, 2016 6:01 pm

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by Programmingkid »

Cat_7 wrote:Yes,

But probably not to run Mac OS. It would need the rom.
I updated the QEMU PowerPC wiki page here: http://wiki.qemu.org/Documentation/Platforms/PowerPC
Let me know what you think. If something should be added or changed, I will do it.
About the wikipage: you mention model type "beigeg3". That should be "g3beige". And the screen shot showing the monitors panel could only have been made using a build from benh's fork. So it is misleading as to what users can expect from a build form the official source.

Best,
Cat_7
You are right. Thank you for letting me know.

As for the 68k target, never say never. The maintainer is really hard working on it. Maybe one day he will allow for an optional ROM file to be used with the emulator.
alex195812
Mac Mechanic
Posts: 169
Joined: Mon Aug 29, 2016 3:44 am

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by alex195812 »

Isn't it that?:
A new virtual device "loader" in qemu 2.8.0-rc2.As documrnted at http://git.qemu-project.org/?p=qemu.git ... xt;hb=HEAD it lets loading data and/or images(ELF or raw images) into memory.Images may be loaded via option "-device loader,file=<file name>,addr=<addr>,cpu-num=<cpu-num>".I have successfully loaded Ben's WIP openbios this way,but no luck with Old or New World ROMS.While ELF images need no "addr" parameter,raw images require "addr" assigned.As I don't know where Mac ROMS should be loaded at,I tried 0x0000 and 0x8000 with no luck.Does anybody know where to try?
Programmingkid
Apple Corer
Posts: 243
Joined: Sun Jan 31, 2016 6:01 pm

Re: GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

Post by Programmingkid »

alex195812 wrote:Isn't it that?:
A new virtual device "loader" in qemu 2.8.0-rc2.As documrnted at http://git.qemu-project.org/?p=qemu.git ... xt;hb=HEAD it lets loading data and/or images(ELF or raw images) into memory.Images may be loaded via option "-device loader,file=<file name>,addr=<addr>,cpu-num=<cpu-num>".I have successfully loaded Ben's WIP openbios this way,but no luck with Old or New World ROMS.While ELF images need no "addr" parameter,raw images require "addr" assigned.As I don't know where Mac ROMS should be loaded at,I tried 0x0000 and 0x8000 with no luck.Does anybody know where to try?
I found this table of memory addresses and what they are used for. It might be of use to you.
https://books.google.com/books?id=K8vUk ... ap&f=false

I am betting that the MAC OS ROM file would need to be reversed engineered to find out exactly what it does. I'm thinking that even if you loaded it correctly, some assumption would be missing in QEMU that would cause it to fail.
Post Reply