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: 6172
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 »

Perhaps add "cpu" and "mac model" ?

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:Perhaps add "cpu" and "mac model" ?

Best,
Cat_7
Is this what you had in mind:

Code: Select all

Operating System     Status                                QEMU Build      OpenBIOS revision   CPU    Mac Model
Mac OS 8.5           Prints error about missing /rtas       2.5              1378              750     mac99
User avatar
adespoton
Forum All-Star
Posts: 4277
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 »

Programmingkid wrote:
adespoton wrote:That page is an excellent start -- I believe it is somewhat out of date with the latest custom test builds of openbios though.

Indicating the qemu/openbios builds and test dates would definitely help.
That sounds like a logical suggestion. How does this look:

Code: Select all

Operating System  	Status                                       QEMU Build      OpenBIOS revision
Mac OS 8.5           Prints error about missing /rtas               2.5              1378
Looks great to me! Beyond that, we'd have to move to a DB and do the Roaring Apps thing :)
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 »

Programmingkid wrote:I made documentation for the Macintosh emulator in QEMU here: http://wiki.qemu.org/PowerPC

It does have some of your suggestions already in it. Let me know what you think of it.
I agree with adespoton: it is an excellent start. And I also agree it might be slightly outdated.

A public spreadsheet would be easier to browse and duplicate similar items, though. But that's my own opinion.

A wiki would be a good alternative.
User avatar
Cat_7
Expert User
Posts: 6172
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 »

User avatar
mabam
Master Emulator
Posts: 497
Joined: Wed Apr 10, 2013 9:32 am

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

Post by mabam »

A LOT of things here are above me. But great progress!

Many thanks to everyone who works on this!
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:Something like this:
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Best,
Cat_7
This is great! Can I link to it in the PowerPC wiki page?

Also, maybe we could include other operating systems. Anyone have any experience running these OS's in QEMU's PowerPC Macintosh target?

- Debian Linux
- Ubuntu Linux
- FreeBSD
- NetBSD
- Haiku
- AmigaOS
- MorphOS
- Gentoo Linux
- MkLinux
- Yellow Dog Linux
- BeOS
User avatar
Cat_7
Expert User
Posts: 6172
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 »

Sure, it is a public spreadsheet.

Best,
Cat_7
djblastyfone
Space Cadet
Posts: 5
Joined: Tue Nov 17, 2015 11:53 pm

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

Post by djblastyfone »

Okay, so since I can't really help much on the coding/bugfixing front I decided to make a somewhat nicely formatted compatibility matrix for QEMU PPC based on the spreadsheet above and whatever else I could remember from the thread:

Image



Here's the mediawiki code for it since I can't edit the QEMU wiki myself.

I'm a big fan of colour-coded tables like this since they make it really easy to see where a project is at. I'm sure I've made some mistakes in stating where things are at and have left some "?"s where I had trouble finding the info, so please help correct and fill in the blanks if you can. :smile:
kikyoulinux
Tinkerer
Posts: 92
Joined: Sun Sep 28, 2014 11:53 am

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

Post by kikyoulinux »

OS 9.0.4 does not support Classic env. and I heard that Leopard works fine on G3Beige with G4 cpu.
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 »

Cat_7 wrote:Something like this:
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Best,
Cat_7

Beautiful!
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 »

kikyoulinux wrote:OS 9.0.4 does not support Classic env. and I heard that Leopard works fine on G3Beige with G4 cpu.
I think he meant it can be used as the guest classic environment for some Mac OS X emulated hosts. Ie. OSX > 10.3 > 9.2.
kikyoulinux
Tinkerer
Posts: 92
Joined: Sun Sep 28, 2014 11:53 am

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

Post by kikyoulinux »

sentient06 wrote:
I think he meant it can be used as the guest classic environment for some Mac OS X emulated hosts. Ie. OSX > 10.3 > 9.2.
Yes, Mac OS 9.0.x doesn't have "Classic" in its system folder, which is needed by Mac OS X's Classic environment.
kikyoulinux
Tinkerer
Posts: 92
Joined: Sun Sep 28, 2014 11:53 am

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

Post by kikyoulinux »

We would have fun if there was a PPC version of AppleAC97Audio.kext. I know, Qemu DOES emulates an AC97 card.

"qemu-system-ppc -soundhw help" said:

Valid sound card names (comma separated):
pcspk PC speaker
hda Intel HD Audio
cs4231a CS4231A
gus Gravis Ultrasound GF1
adlib Yamaha YM3812 (OPL2)
ac97 Intel 82801AA AC97 Audio
es1370 ENSONIQ AudioPCI ES1370
sb16 Creative Sound Blaster 16
User avatar
adespoton
Forum All-Star
Posts: 4277
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 »

Looks like we still need to test:
Mac OS(X):
Mac OS 8.5 HD image
Mac OS 8.6 HD image (it was an upgrade CD, so no fresh install)
OS X Public Beta (with twiddled timestamp) CD and HD image

Unix/Linux:
Arch Linux (CD and HD image)
Yellow Dog Linux (CD and HD image)
NetBSD (CD and HD image)
MintPPC (CD and HD image)

Other:
Haiku PowerPC (CD and HD image)

It would also be good to have links on that spreadsheet to extra sheets outlining the contents of the kernel panics, workarounds, etc. Anyone up for adding that detail?
User avatar
Cat_7
Expert User
Posts: 6172
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 »

We would have fun if there was a PPC version of AppleAC97Audio.kext.
Actually there are, at least in both 10.3 and 10.4. But starting Qemu with AC97 sound card support amounts to some errors in the command window. The device is not recognised in the OSX system profiler and therefore most probably not present in the device tree of OpenBios.

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 »

I would like to add that Debian Linux 5 does boot and install in QEMU. I use it to test my patches. Sound, networking, and USB all work.

http://cdimage.debian.org/cdimage/archi ... pc/iso-cd/
This is where you can download an iso.
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 think it is time we ported a QEMU manager to Mac OS X. A QEMU manager is software that can make QEMU actually easy to use. It would allow the user to changes settings with QEMU very easily. Right now all the Mac OS X users are probably using the cocoa interface. It is ok, but the maintainer of this interface is not interesting it making it very robust. He believes manager software should be the UI to QEMU.

Q is an example of such software. It does run on Mac OS X but is very buggy and hasn't been updated in over 8 years. After trying to talk with one of the authors of the software about updating it, I decided to just give up on it.

What I propose is we port Virt-Manager over to Mac OS X. It is an up-to-date QEMU manager with some pretty impressive features. I think porting it over to Mac OS X might be possible. It uses GTK3 and python. Two technologies that are available on Mac OS X.

Do you have another suggestion or comment?

Image
mathieudel
Inquisitive Elf
Posts: 36
Joined: Sat Oct 03, 2009 12:51 am
Location: France

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

Post by mathieudel »

Something like this ?

https://github.com/jeffreywildman/homebrew-virt-manager

Edit -> screenshot :

Image
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 »

mathieudel wrote:Something like this ?

https://github.com/jeffreywildman/homebrew-virt-manager

Edit -> screenshot :
WOW! You did it. Great.

What version of Mac OS X are you using? I tried installing it on Mac OS 10.6.8, but this error showed up for me:

sha1-x86_64.s:1243:missing or invalid immediate expression `0b00011011' taken as 0
sha1-x86_64.s:1243:suffix or operands invalid for `pshufd'
sha1-x86_64.s:1245:missing or invalid immediate expression `0b00011011' taken as 0
sha1-x86_64.s:1245:suffix or operands invalid for `pshufd'
sha1-x86_64.s:1395:missing or invalid immediate expression `0b00011011' taken as 0
sha1-x86_64.s:1395:suffix or operands invalid for `pshufd'
sha1-x86_64.s:1396:missing or invalid immediate expression `0b00011011' taken as 0
sha1-x86_64.s:1396:suffix or operands invalid for `pshufd'
make[2]: *** [sha1-x86_64.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [build_crypto] Error 1

So how is it? Is it actually useful? Buggy? A miracle?
mathieudel
Inquisitive Elf
Posts: 36
Joined: Sat Oct 03, 2009 12:51 am
Location: France

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

Post by mathieudel »

Actually I did nothing but searching google for 'virt-manager mac', and following install instructions (since I already had homebrew, it was easy :)).

I'm using latest El Capitan and everything worked immediately.
As for usefulness... I don't know. I just opened the built application and stopped there since I don't really now how it works.
I don't even have qemu installed :p.

My idea was that, based on your informations, there should be no major issue to build the tool, and before trying by myself I just searched to see if anyone did already tried... bingo :D !

Now about your build issue, it seems related to a recent regression of OpenSSL (depency : virt-manager -> spice-gtk -> openssl) on old MacOS versions : http://comments.gmane.org/gmane.comp.en ... evel/33380
Fixing that would require modifying spice-gtk's formulae to require either an older or a newer (fixed) openssl.
User avatar
adespoton
Forum All-Star
Posts: 4277
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 »

Is there a manager that uses Qt instead of GTK? Qt widgets function in a much more Mac-like way than GTK widgets, and with much less overhead.

Or how about something just using WxPython?
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 »

adespoton wrote:Is there a manager that uses Qt instead of GTK? Qt widgets function in a much more Mac-like way than GTK widgets, and with much less overhead.

Or how about something just using WxPython?
AQEMU uses Qt. So does qt-virt-manager.

I do like how AQEMU looks.

Image

I don't know about WxPython.
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 »

Programmingkid wrote:I think it is time we ported a QEMU manager to Mac OS X. A QEMU manager is software that can make QEMU actually easy to use. It would allow the user to changes settings with QEMU very easily. Right now all the Mac OS X users are probably using the cocoa interface. It is ok, but the maintainer of this interface is not interesting it making it very robust. He believes manager software should be the UI to QEMU.

Q is an example of such software. It does run on Mac OS X but is very buggy and hasn't been updated in over 8 years. After trying to talk with one of the authors of the software about updating it, I decided to just give up on it.
A silver lining is that Q appears to be open-source, meaning that someone could conceivably fork the project and update it themselves if they had the time (ay, there's the rub).
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.
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 »

A silver lining is that Q appears to be open-source, meaning that someone could conceivably fork the project and update it themselves if they had the time (ay, there's the rub).
OMG! You are right. I didn't think about that. That would enable us to completely by-pass all the original maintainers who gave up on that project years ago.
Post Reply