Page 1 of 2

PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Thu Sep 05, 2013 4:35 pm
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

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Mon Sep 09, 2013 11:02 pm
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...

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Tue Sep 10, 2013 4:39 am
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

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Mon Oct 14, 2013 6:26 pm
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?

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Tue Oct 15, 2013 7:34 am
by Cat_7
Hi,

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

Best,
Cat_7

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Tue Oct 15, 2013 10:02 am
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?

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Tue Oct 15, 2013 11:26 am
by Cat_7
Ah, interesting:

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

Best,
Cat_7

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Tue Oct 15, 2013 12:56 pm
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.

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Tue Dec 17, 2013 1:40 am
by PeterHolbrook
Qemu 1.7.0 is out. Have any of the issues involving colour and/or Classic been fixed?

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Tue Dec 17, 2013 7:20 pm
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

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Tue Dec 17, 2013 7:46 pm
by PeterHolbrook
That's fine with me. Thank you.

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Tue Dec 17, 2013 8:11 pm
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.

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Sun Apr 20, 2014 12:29 pm
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?

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Sun Apr 20, 2014 3:16 pm
by Cat_7
Hi,

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

Best,
Cat_7

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Mon Apr 21, 2014 4:07 pm
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

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Mon Apr 21, 2014 4:35 pm
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.

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Mon Apr 21, 2014 5:00 pm
by adespoton
Neozeed's done a good summary of the changes on his blog:
http://virtuallyfun.superglobalmegacorp.com/

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Sun Apr 27, 2014 9:15 am
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.

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Sun Apr 27, 2014 10:41 am
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

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Sun Apr 27, 2014 12:16 pm
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.

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Sun Apr 27, 2014 12:33 pm
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

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Mon Apr 28, 2014 12:57 am
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.

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Mon Apr 28, 2014 5:25 am
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

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Mon Apr 28, 2014 9:16 am
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.

Re: PowerPC OSX on Qemu 1.6.0 for OSX

Posted: Mon Apr 28, 2014 1:53 pm
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