GSOC qemu Boot Mac OS >= 8.5 on PowerPC system

About QEMU, 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
adespoton
Forum All-Star
Posts: 3111
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 »

Thanks; I didn't think to try the 8 bit driver since I was getting a panic, but I now recall the reason we built that version... yeah; it should work. I'll check it out tonight.
User avatar
sidoh
Tinkerer
Posts: 50
Joined: Sun Aug 21, 2016 12:59 am
Location: Unknown

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

Post by sidoh »

I think I used 16 bits for that, actually. Try using that as well and see if both OS X and OS 8 work.
User avatar
adespoton
Forum All-Star
Posts: 3111
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 »

16 bit did the trick! Both 8.6 and Server are quite happy with it.
MVoloshin
Space Cadet
Posts: 2
Joined: Thu Jul 20, 2017 6:28 am

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

Post by MVoloshin »

Hello, is it possible to boot and install MacOS 8.6 in qemu-ppc now?
User avatar
sidoh
Tinkerer
Posts: 50
Joined: Sun Aug 21, 2016 12:59 am
Location: Unknown

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

Post by sidoh »

No, not natively. However, as said earlier, you can get 8.6 running via Blue Box (though it is very slow) when you install Mac OS X Server 1.2v3.
steventroughtonsmith
Student Driver
Posts: 20
Joined: Fri Jan 06, 2017 10:02 pm

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

Post by steventroughtonsmith »

Meow2004 wrote:I'm confused on when you install DP2, you need to partition the hard drive. What do you need to do? Do you need to install 9.2, then install from there?
I posted a script to pre-partition a disk image for OS X Server/DP2, but it's buried in the thread somewhere. With this, you can boot straight to the OS X installer and skip the OS 8/9 steps. Permalink: https://gist.github.com/steventroughton ... 0cfa9e5936

Btw awesome to see that OS X Server now responds to keyboard & mouse! :D

Code: Select all

#!/bin/sh

TARGET_IMAGE=Mac_OS_X_Server_1.0-4G.img

#1G
DISKSIZE_IN_BLOCKS=2097152

#2G
#DISKSIZE_IN_BLOCKS=4194304

#4G
#DISKSIZE_IN_BLOCKS=8388608

PRIMARY_PARTITIONSIZE_IN_BLOCKS=`expr $DISKSIZE_IN_BLOCKS - 512 - 16384 - 64`

echo $PRIMARY_PARTITIONSIZE_IN_BLOCKS

pdisk $TARGET_IMAGE -initialize
pdisk $TARGET_IMAGE -createPartition MOSX_OF3_Booter Apple_HFS 64 16384
pdisk $TARGET_IMAGE -createPartition SecondaryLoader Apple_Loader 16448 512
pdisk $TARGET_IMAGE -createPartition "0x000001FF 0x0008 0x00" Apple_Rhapsody_Inst 16960 $PRIMARY_PARTITIONSIZE_IN_BLOCKS
User avatar
Cat_7
Expert User
Posts: 5106
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 »

Now include in our guide for OSX hosts. Thanks,

Cat_7
Ross Darker
Space Cadet
Posts: 2
Joined: Sun May 27, 2018 4:47 pm

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

Post by Ross Darker »

@adespoton, can you send me your QEMU folder that you use for Server 1.2v3? You don't need to include any disk images/toast files as I have those already, I can only get it working in Windows, but never OS X, and it would be great to try this out.

EDIT: Don't worry got it working now on OS X with latest build.
Meow2004
Space Cadet
Posts: 9
Joined: Thu May 03, 2018 3:09 pm

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

Post by Meow2004 »

Thanks! But one more question, do i run the script through cmd? put it in my qemu command line? or run it in the openbios?
User avatar
adespoton
Forum All-Star
Posts: 3111
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 »

It's a shell script for Linux; if I have some spare time, I may make it OS X friendly and put a Platypus wrapper around it so it presents as a runnable application with prompts for disk size.

Linux uses pdisk much like we use diskutil on OS X. Of course, you can probably install pdisk with brew on OS X as well.
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 »

The script posted by Steven is for Mac OS X in fact. I used it a year ago to make disk partitioning for Server installation. Somehow pdisk was and is present in my system. I think it belongs to BSD subsystem as it exists in, say, NetBSD, too.
As for Meow, he uses Windows, as I recollect, so the only option for him is using the script in virtual Mac OS X.
Ross Darker
Space Cadet
Posts: 2
Joined: Sun May 27, 2018 4:47 pm

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

Post by Ross Darker »

We could upload an image, freshly formatted on Mac OS X with this script, for windows users.

You'd zip it, then it would be very quick to download because of how compressed it can go.

I have pdisk too on os x.
User avatar
adespoton
Forum All-Star
Posts: 3111
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 »

Weird; I somehow missed pdisk existing on the BSD subsystem :)

The disk images compress to almost nothing with lzma compression, so maybe we should just create a set of them and add them to the QEMU build zips hosted here.
User avatar
Cat_7
Expert User
Posts: 5106
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 »

Announcing another Qemu milestone: the PMU is ready for prime time!
(should I find a job in advertising?)

Find the OSX build here: http://www.open.ou.nl/hsp/downloads3/Qe ... 062018.zip
Find the Windows build here: http://www.open.ou.nl/hsp/downloads3/Wi ... 062018.zip

And be sure to read the post for OSX here:
viewtopic.php?f=34&t=8848&p=52102#p52102

And for Windows here:
viewtopic.php?f=34&t=9028

The downloads include both qemu-system-ppc and qemu-system-ppc64 builds.
Other news is that these builds now allow installing various Linux PPC versions as well.

Happy testing and please report on your findings.

Best,
Cat_7
User avatar
adespoton
Forum All-Star
Posts: 3111
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 »

Thanks! I like how you can choose USB or ADB now to avoid the glitches we were experiencing in previous builds.
User avatar
Cat_7
Expert User
Posts: 5106
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 »

Two new OSX builds are available in the experimental OSX builds section:

One containing a fix for the cuda adb so the mouse will work again in 9.0 with -m mac99
One containing an up-to-date screamer-based build.

As always: do not mix both builds, as e.g., the bios file is specific for the screamer build.

Find the builds here:
viewtopic.php?f=34&t=8848#p52104

Best,
Cat_7
User avatar
Cat_7
Expert User
Posts: 5106
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 »

Two new Windows builds are available in the experimental builds section:

One containing a fix for the cuda adb so the mouse will work again in 9.0 with -m mac99
One containing an up-to-date screamer-based build.

As always: do not mix both builds, as e.g., the bios file is specific for the screamer build.

Find the builds here:

viewtopic.php?f=34&t=9028&p=53788#p53788

Best,
Cat_7
User avatar
Cat_7
Expert User
Posts: 5106
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 all,

Qemu 3.0.0 is out as successor to Qemu 2.12

Here are some new builds:
Windows: viewtopic.php?f=34&t=9028
OSX: viewtopic.php?f=34&t=8848

Best,
Cat_7
User avatar
adespoton
Forum All-Star
Posts: 3111
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 »

Ah; so it's basically 2.13 as far as PPC goes, still missing screamer integration?
User avatar
Cat_7
Expert User
Posts: 5106
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 »

I would say there is no mayor change that would justify that version jump. I believe it was more a feeling that now was as good a time as any. So I suspect some irrationality there, and perhaps that was the fear for 13?

As the screamer goes, there are still too many issues with it. Only yesterday I was running the latest screamer code with OSX 10.0 and the moment I clicked the Sound preference Qemu went into an "invalid key" loop....

Best,
Cat_7
J. Gryphon
Student Driver
Posts: 19
Joined: Mon Jun 16, 2014 12:52 pm

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

Post by J. Gryphon »

Do the IX3D, ATI or nVidia extensions available with 9.2.2 do anything noteworthy in QEMU or can they be deactivated without consequence? I'm not certain how QEMU handles virtualized video; I have an ATI Radeon HD 4870 in my real machine, but I doubt that OS 9 would know how to do anything productive with it even if it had access to it.
User avatar
Cat_7
Expert User
Posts: 5106
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,

Currently, they do nothing. Qemu running Mac OS doesn't know how to pass trough video to your card. There is some work being done to get it to pass video through, but I haven't seen activity on that front for some time now.

Best,
Cat_7
kataetheweirdo
Apple Corer
Posts: 289
Joined: Sun Feb 01, 2009 4:55 pm

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

Post by kataetheweirdo »

Even it knew how, I doubt the ATI driver in Mac OS 9 can support cards past the ATI Radeon R200. The progress I saw there largely amounted to setting which type of video card the driver would detect upon booting.
User avatar
SistemaRayoXP
Tinkerer
Posts: 82
Joined: Fri Oct 13, 2017 4:34 pm
Location: Mexico
Contact:

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

Post by SistemaRayoXP »

Maybe not so related, but wouldn't be better if QEMU would emulate a "generic card" and the QEMU part that deals with the video would be passed directly to the host video card? Just like with the ATI extensions, but a bit more generic, so that every one with a potent graphic card can get advantage of it
Hill radio station first attempt: Failure. Retrying...
darthnvader
Mac Mechanic
Posts: 168
Joined: Sun Feb 07, 2016 4:40 pm

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

Post by darthnvader »

As far as PCI passthrough, I was able to get a Geforce card working with IBM SLOF on the p-series machines in Qemu. However Openbios lacks some of the .words needed, I've been hoping someone with more programing knowledge would help in implementing the needed @config .words for Openbios.

I did test a PCI Firewire card, in a PCI-E to PCI adapter and that worked great in both OS 9 and OS X in Qemu. Tho my host system refused to boot with a PCI Radeon 9200, so I was unable to test that with Qemu.

Until we add the needed .words to Openbios, the only video option other than Qemu-VGA would be a Voodoo2 PCI 3D card. I'm still trying to find one at a reasonable price for testing, unfortunately the price on them keeps going up.

If anyone has one they'd like to donate, or sell cheaply, that would help the cause. :mrgreen:
Post Reply