Installing Mac OS X DP1: Initialization failed

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

Post Reply
User avatar
CorporalPig22
Inquisitive Elf
Posts: 39
Joined: Sun Jun 10, 2018 1:37 am

Installing Mac OS X DP1: Initialization failed

Post by CorporalPig22 »

I'm trying to install Mac OS X DP1 in QEMU, but when I try to initialize the disk with a Mac OS X partition (Mac OS UFS), it works normally for a couple seconds, but then says that the initialization failed. Am I doing anything wrong?

(I'm using the Windows version of QEMU.)
User avatar
jonirob
Tinkerer
Posts: 76
Joined: Tue Jan 29, 2019 6:03 pm

Re: Installing Mac OS X DP1: Initialization failed

Post by jonirob »

As far as I know nobody has managed to install DP1 in QEMU on Windows. I've managed to install DP2, DP3 and DP4, but not DP1. Apparently someone managed to install it on Linux, the details are here somewhere in the forums.

EDIT: Here's the link.

viewtopic.php?f=34&t=10118
mcayland
Mac Mechanic
Posts: 152
Joined: Sun Nov 01, 2015 10:33 pm

Re: Installing Mac OS X DP1: Initialization failed

Post by mcayland »

CorporalPig22 wrote: Tue Mar 22, 2022 8:15 am I'm trying to install Mac OS X DP1 in QEMU, but when I try to initialize the disk with a Mac OS X partition (Mac OS UFS), it works normally for a couple seconds, but then says that the initialization failed. Am I doing anything wrong?

(I'm using the Windows version of QEMU.)
Some users have reported corruption with qcow2 images, but only on Windows - every other platform seems fine. If you are using a qcow2 image for your hard disk, can you try again but this time using a raw image instead?
User avatar
CorporalPig22
Inquisitive Elf
Posts: 39
Joined: Sun Jun 10, 2018 1:37 am

Re: Installing Mac OS X DP1: Initialization failed

Post by CorporalPig22 »

mcayland wrote: Tue Mar 22, 2022 8:12 pm
CorporalPig22 wrote: Tue Mar 22, 2022 8:15 am I'm trying to install Mac OS X DP1 in QEMU, but when I try to initialize the disk with a Mac OS X partition (Mac OS UFS), it works normally for a couple seconds, but then says that the initialization failed. Am I doing anything wrong?

(I'm using the Windows version of QEMU.)
Some users have reported corruption with qcow2 images, but only on Windows - every other platform seems fine. If you are using a qcow2 image for your hard disk, can you try again but this time using a raw image instead?
Tried that. Didn't work. Guess I'll just wait until someone actually gets it up and running.
mcayland
Mac Mechanic
Posts: 152
Joined: Sun Nov 01, 2015 10:33 pm

Re: Installing Mac OS X DP1: Initialization failed

Post by mcayland »

CorporalPig22 wrote: Tue Mar 22, 2022 8:21 pm
mcayland wrote: Tue Mar 22, 2022 8:12 pm
CorporalPig22 wrote: Tue Mar 22, 2022 8:15 am I'm trying to install Mac OS X DP1 in QEMU, but when I try to initialize the disk with a Mac OS X partition (Mac OS UFS), it works normally for a couple seconds, but then says that the initialization failed. Am I doing anything wrong?

(I'm using the Windows version of QEMU.)
Some users have reported corruption with qcow2 images, but only on Windows - every other platform seems fine. If you are using a qcow2 image for your hard disk, can you try again but this time using a raw image instead?
Tried that. Didn't work. Guess I'll just wait until someone actually gets it up and running.
Hmmm interesting. Can you share the exact command line, and the version of QEMU that you are using?
User avatar
CorporalPig22
Inquisitive Elf
Posts: 39
Joined: Sun Jun 10, 2018 1:37 am

Re: Installing Mac OS X DP1: Initialization failed

Post by CorporalPig22 »

mcayland wrote: Tue Mar 22, 2022 8:37 pm
CorporalPig22 wrote: Tue Mar 22, 2022 8:21 pm
mcayland wrote: Tue Mar 22, 2022 8:12 pm

Some users have reported corruption with qcow2 images, but only on Windows - every other platform seems fine. If you are using a qcow2 image for your hard disk, can you try again but this time using a raw image instead?
Tried that. Didn't work. Guess I'll just wait until someone actually gets it up and running.
Hmmm interesting. Can you share the exact command line, and the version of QEMU that you are using?

Code: Select all

qemu-system-ppc.exe ^
-L pc-bios ^
-cpu G3 ^
-M mac99 ^
-m 512 ^
-drive file=macosx_dp1.img,format=raw,index=0,media=disk ^
-drive file=macos92.iso,format=raw,index=2,media=cdrom ^
-drive file=macosx_dp1.iso,format=raw,index=3,media=cdrom ^
-boot d ^
-g 1360x768x32 ^
-device usb-kbd ^
-device usb-mouse ^
-rtc base=localtime ^
-display sdl
Latest screamer build for Windows
Last edited by CorporalPig22 on Tue Mar 22, 2022 9:33 pm, edited 1 time in total.
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Installing Mac OS X DP1: Initialization failed

Post by adespoton »

Ah... can you try again with an official build instead of a screamer build? I don't think DP1 supports screamer audio anyway, so you won't be losing anything by not having it.
mcayland
Mac Mechanic
Posts: 152
Joined: Sun Nov 01, 2015 10:33 pm

Re: Installing Mac OS X DP1: Initialization failed

Post by mcayland »

Okay I can see a few things there that could be an issue - firstly that combination of usb options is wrong, and like to cause problems with the mouse. And overriding the default CPU to a different one is going to cause a difference in behaviour compared with basic testing. As a starting point:

For the first boot into MacOS 9.2 to partition the disk:
qemu-system-ppc.exe ^
-L pc-bios ^
-M mac99,via=pmu-adb ^
-m 512 ^
-drive file=macos92.iso,format=raw,media=cdrom ^
-drive file=macosx_dp1.img,format=raw,media=disk ^
-boot d ^
-rtc base=localtime
Then to boot into DP1 with the initialised HD:
qemu-system-ppc.exe ^
-L pc-bios ^
-M mac99,via=pmu-adb ^
-m 512 ^
-drive file=macosx_dp1.iso,format=raw,media=cdrom ^
-drive file=macosx_dp1.img,format=raw,media=disk ^
-boot d ^
-rtc base=localtime
If you still see the hang when initialising the disk during the first boot, please try again with a vanilla non-screamer build. The reason the screamer patches aren't yet upstream is because they have been reported to cause problems for some users.
User avatar
CorporalPig22
Inquisitive Elf
Posts: 39
Joined: Sun Jun 10, 2018 1:37 am

Re: Installing Mac OS X DP1: Initialization failed

Post by CorporalPig22 »

Status update: it turns out I was formatting it the wrong way. I had it set to "1 Partition" instead of "Mac OS UFS", and that's what caused the initialization to fail.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Installing Mac OS X DP1: Initialization failed

Post by Cat_7 »

Hi,

This will get us to "this image is not for the platform"
The installation instructions say DP1 can run on a G3
But when using g3beige we still get "this image is not for the platform"

When setting auto-boot to false and setting
" PowerMac1,1" encode-string " model" property
" PowerMac1,1" encode-string " compatible" property
We get to Boot failure "/rtas" not found.

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

Re: Installing Mac OS X DP1: Initialization failed

Post by Cat_7 »

I still haven't been able to figure out how to run the installer from the dp1 iso the first time after formatting the disk when booted from a 9.04 iso. According to the installation instructions the target disk should be formatted as mac os extended.

However, the second step to get the installer going after that is this:

qemu-system-ppc.exe ^
-L pc-bios ^
-M g3beige -cpu G3 ^
-m 128 ^
-boot d ^
-usb ^
-device usb-kbd ^
-device usb-mouse ^
-prom-env "auto-boot?=false" ^
-prom-env "boot-device=cd:9,\\:tbxi" ^
-drive file=C:\Mac-disks-qemu\10DP1.img,format=raw,media=disk ^
-drive file=C:\Mac-images\10_DP1.iso,format=raw,media=cdrom,index=2 ^
-rtc base=localtime ^
-display sdl

When you get to the openbios prompt, enter:

dev /
" PowerMac1,1" encode-string " model" property
" PowerMac1,1" encode-string " compatible" property
boot

(In Windows I haven´t found a way to add those lines directly to command line due to Windows not interpreting a ' correctly.)
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Installing Mac OS X DP1: Initialization failed

Post by adespoton »

I haven't tried it yet, but do single quotes or escaped quotes work?
mcayland
Mac Mechanic
Posts: 152
Joined: Sun Nov 01, 2015 10:33 pm

Re: Installing Mac OS X DP1: Initialization failed

Post by mcayland »

Cat_7 wrote: Tue Mar 22, 2022 9:52 pm Hi,

This will get us to "this image is not for the platform"
The installation instructions say DP1 can run on a G3
But when using g3beige we still get "this image is not for the platform"

When setting auto-boot to false and setting
" PowerMac1,1" encode-string " model" property
" PowerMac1,1" encode-string " compatible" property
We get to Boot failure "/rtas" not found.

Best,
Cat_7
Oh so it should run on a G3? The QEMU g3beige machine is fairly good in this respect, so I presume it must be checking for specific pieces of hardware in the device tree.

From a bit of searching I can see the above changes seem to be borrowing from the g3 b&w device tree to try and fool the installer, which could likely be another reason why it still fails even if it does manage to get further. The real solution here is to figure out what DP1 is looking for and fix QEMU/OpenBIOS accordingly.

What exactly happens if you boot the DP1 in a freshly initialised disk on the g3beige machine? Are there any error messages or just hangs?
Post Reply