PowerPC OSX on Qemu 1.6.0 for OSX

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

PowerPC OSX on Qemu 1.6.0 for OSX

Post by Cat_7 »

Hi all,

EDIT: the guide referenced here was updated:

http://www.emaculation.com/doku.php/ppc ... mu-for-osx

Best,
Cat_7
Last edited by Cat_7 on Wed Jan 06, 2016 10:37 pm, edited 1 time in total.
Reason:  
superpete
Inquisitive Elf
Posts: 27
Joined: Sat Nov 26, 2011 3:08 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by superpete »

Good work Cat7!

There's a Win32 build too http://virtuallyfun.superglobalmegacorp.com/?p=3242

I'd imagine the same instructions (sans disk image creation) should work. It must be possible to get qemu-img to produce a working image...
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by Cat_7 »

Yes, I know.

Instructions are not quite the same, as a bunch of additional dll's needs to be downloaded. And the Windows version is a lot slower (even). But the colors are not off ;-)

Best,
Cat_7
PeterHolbrook
Apple Corer
Posts: 273
Joined: Fri Oct 26, 2007 7:56 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by PeterHolbrook »

Qemu 1.6.1 is out. Has anyone verified whether the colour bug has been solved when emulating OS X 10.2-10.4 or if Classic works any better?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by Cat_7 »

Hi,

I checked and the answer to both your questions is "no".

Best,
Cat_7
PeterHolbrook
Apple Corer
Posts: 273
Joined: Fri Oct 26, 2007 7:56 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by PeterHolbrook »

Cat_7 wrote:Hi,

I checked and the answer to both your questions is "no".

Best,
Cat_7
Does that mean nobody has checked? Does it mean somebody has, indeed, checked, but the color bug is still there and Classic still fails to run?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by Cat_7 »

Ah, interesting:

I veryfied, and both color and classic bugs are still there.

Best,
Cat_7
PeterHolbrook
Apple Corer
Posts: 273
Joined: Fri Oct 26, 2007 7:56 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by PeterHolbrook »

Cat_7 wrote:Ah, interesting:

I veryfied, and both color and classic bugs are still there.

Best,
Cat_7
Thank you! Let's hope they fix it some day.
PeterHolbrook
Apple Corer
Posts: 273
Joined: Fri Oct 26, 2007 7:56 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by PeterHolbrook »

Qemu 1.7.0 is out. Have any of the issues involving colour and/or Classic been fixed?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by Cat_7 »

Unless someone else tries to build a version, you'll have to wait for an answer a few more days...

Best,
Cat_7
PeterHolbrook
Apple Corer
Posts: 273
Joined: Fri Oct 26, 2007 7:56 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by PeterHolbrook »

That's fine with me. Thank you.
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by emendelson »

There's a prebuilt OS X version here:

http://virtuallyfun.superglobalmegacorp.com/?p=3671

I think I have a Jaguar disk somewhere, but it will take some time to find it, unfortunately.
PeterHolbrook
Apple Corer
Posts: 273
Joined: Fri Oct 26, 2007 7:56 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by PeterHolbrook »

Qemu 2.0 has been released. Does anyone know whether any improvements have been achieved in emulating OS X 10-2-10.4 or the Classic environment?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by Cat_7 »

Hi,

Not tried yet. I'll give it a go tomorrow.

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

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by Cat_7 »

Hi,

None of the issues we were having with qemu are fixed. I did read, however, that the inverted colour problem OSX users have might have something to do with the pixman library not having been built correctly for OSX. That is outside the control of qemu development.

Best,
Cat_7
PeterHolbrook
Apple Corer
Posts: 273
Joined: Fri Oct 26, 2007 7:56 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by PeterHolbrook »

Cat_7 wrote:Hi,

None of the issues we were having with qemu are fixed. I did read, however, that the inverted colour problem OSX users have might have something to do with the pixman library not having been built correctly for OSX. That is outside the control of qemu development.

Best,
Cat_7
Thanks for your research.
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by adespoton »

Neozeed's done a good summary of the changes on his blog:
http://virtuallyfun.superglobalmegacorp.com/
iMic
Space Cadet
Posts: 3
Joined: Sun Apr 27, 2014 8:55 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by iMic »

Hi everyone, I normally read the information here fairly often but don't often have much to contribute back. I've been messing around with Qemu 1.7.0 a little and thought I'd share what I've found so far.

In regards to the corrupted colours in Qemu, I decided to drop GTK entirely in favour of SDL which has been successful in working around the problem. I'm not sure what impact on functionality or performance this may have, but it seems to work rather nicely.

I had to install SDL first (I used Homebrew for this):
brew install sdl
and when I configured it for the build, I had to use a couple of extra flags:
./configure --target-list=ppc-softmmu --disable-gtk --enable-sdl
Which has allowed QEMU to run with correct colours when using an OS X guest. I've been using 1024x768x32 when launching QEMU, and this seems to work fine.
./qemu-system-ppc -L pc-bios/ -m 256 -M g3beige -cpu G3 -cdrom /Users/me/Desktop/Panther1.iso -g 1024x768x32 -hda /Users/me/Desktop/machd.img

Image



Something else that may be of use is that while the Mac99 emulation isn't perfect yet, limiting QEMU to running 10.2 or lower, it is possible to run Panther and possibly Tiger with the g3beige emulation (without modifying the install disc). When installing Panther, it checks for an incompatible machine identifier, such as that of a Beige G3 (AAPL,PowerMac G3). It is possible to hex edit the OpenBIOS files to have the system identify as a PowerMac1,1 instead, which allows the OS X installer to continue without any issues. Changing the identifier doesn't appear to have negative effects on the emulation.

I've posted a link below with instructions on how to do this. Simply search the page for "Patching OpenBIOS for Panther" and it should take you straight to it.


I've posted more detailed information on how to compile QEMU with SDL and how to patch the OpenBIOS file with a new machine identifier over at MacTalk Australia:

http://www.mactalk.com.au/62/117243-panther-macbook-air.html

I would cross-post it here but I'm typing this out rather quickly with a few spare minutes, so my apologies there.

Keep in mind that the information linked may not be complete. At the moment it's a summary of what I've been messing around with so far, I may have forgotten to list some packages that need to be installed first and so on. I'll keep correcting that page if I find any new information or anything I've missed.

However the information about forcing QEMU to compile with SDL and the information about editing OpenBIOS should be pretty much complete. I've also added a few more screenshots over there if anyone wants to take a look.

Feel free to mirror the information if you wish. Hopefully it's of use to someone here. :smile:


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

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by Cat_7 »

Hi,

Thanks for reporting your findings here!
When I have time, I will also update our guide and downloads.

Have you tried with Qemu 2.0.0

Best,
Cat_7
iMic
Space Cadet
Posts: 3
Joined: Sun Apr 27, 2014 8:55 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by iMic »

I haven't yet, however I've started compiling Qemu 2.0.0 i386 as of a couple of hours ago. I'll try building the PPC target as well and see what happens.


UPDATE: Colour issue still isn't fixed. If you use the --disable-gtk --enable-sdl trick I mentioned above, the colours appear fine. I'd test further but I don't have my OS X installer disc images on this machine at the moment.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by Cat_7 »

Hi,

I just built a Qemu 2.0.0 version. It runs, and indeed, with SDL the colour issues are gone.
I haven't tried to install anything, I had three images from PearPC available ;-)
-cpu G4 crashes OSX (Tiger at least).

I'll build a target ppc64-softmmu as well and see how that fares.

Best,
Cat_7
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by adespoton »

For those interested, it appears homebrew has the right configs set for qemu 2.0 out of the box. I'm getting a zlib error due to having macports installed too, but it looks promising.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by Cat_7 »

Yes,

The walk-through by iMic works perfectly.
I also tried to use an older build of SDL-1.2.15 I had on Mavericks, set the path to SDL, and build Qemu. Qemu does find that SDL build, but gives an error related to an SDL file not being able to find Xlib.h

Rebuilding SDL-1.2.15 resulted in failure. It seems that is a known bug with SDL-1.2.15 and Mavericks, due to calling a function no longer available.

Best,
Cat_7
PeterHolbrook
Apple Corer
Posts: 273
Joined: Fri Oct 26, 2007 7:56 am

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by PeterHolbrook »

Cat_7 wrote:I'll build a target ppc64-softmmu as well and see how that fares.
Do you foresee that will entail some improvement in the emulation of MMU or that it will be possible to launch Classic? That would be great.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Post by Cat_7 »

Hi,

No, the functionality will be the same, but a 64 bit version might be a bit faster and is capable of addressing more memory. However, addressing more memory (above 3.6Gb or thereabouts) is not an issue directly ;-) And I haven't seen speed improvements i could discern with the naked eye. Classic still doesn't run.

Best,
Cat_7
Post Reply