Page 1 of 1
Installing Mac OS X DP1: Initialization failed
Posted: Tue Mar 22, 2022 8:15 am
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.)
Re: Installing Mac OS X DP1: Initialization failed
Posted: Tue Mar 22, 2022 12:54 pm
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
Re: Installing Mac OS X DP1: Initialization failed
Posted: Tue Mar 22, 2022 8:12 pm
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?
Re: Installing Mac OS X DP1: Initialization failed
Posted: Tue Mar 22, 2022 8:21 pm
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.
Re: Installing Mac OS X DP1: Initialization failed
Posted: Tue Mar 22, 2022 8:37 pm
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?
Re: Installing Mac OS X DP1: Initialization failed
Posted: Tue Mar 22, 2022 8:58 pm
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
Re: Installing Mac OS X DP1: Initialization failed
Posted: Tue Mar 22, 2022 9:20 pm
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.
Re: Installing Mac OS X DP1: Initialization failed
Posted: Tue Mar 22, 2022 9:25 pm
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.
Re: Installing Mac OS X DP1: Initialization failed
Posted: Tue Mar 22, 2022 9:38 pm
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.
Re: Installing Mac OS X DP1: Initialization failed
Posted: Tue Mar 22, 2022 9:52 pm
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
Re: Installing Mac OS X DP1: Initialization failed
Posted: Tue Mar 22, 2022 11:09 pm
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.)
Re: Installing Mac OS X DP1: Initialization failed
Posted: Wed Mar 23, 2022 4:16 pm
by adespoton
I haven't tried it yet, but do single quotes or escaped quotes work?
Re: Installing Mac OS X DP1: Initialization failed
Posted: Thu Mar 24, 2022 8:43 am
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?