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

itux
Space Cadet
Posts: 5
Joined: Mon Jun 08, 2009 10:15 am

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

Post by itux »

Couldn't load PowerPC MacOS 10.2 on 10.10 OS X QEmu Host, error is :

com.apple.iokit.IOGraphicsFamily not loaded :((((
and hang, but install successful from jaguar_disk_1.iso
Jaguar.cdr create in DiskUtility, 4.2 Gb / none / CD-DVD / Master

Code: Select all

qemu-system-ppc -m 1024 -M g3beige -hda Jaguar/Jaguar.cdr -cpu 7448 -boot c -cdrom Jaguar/osxdisk1.iso -prom-env 'boot-args=-v' -serial stdio 
also try

Code: Select all

qemu-system-ppc -L pc-bios/ -m 256 -M g3beige -hda Jaguar/Jaguar.cdr -cpu G3

Code: Select all

mpPro:PowerPC itux$ ls /usr/local/Cellar/qemu/2.1.0/share/qemu/
QEMU,cgthree.bin          efi-virtio.rom            ppc_rom.bin               s390-zipl.rom
QEMU,tcx.bin              keymaps/                  pxe-e1000.rom             sgabios.bin
acpi-dsdt.aml             kvmvapic.bin              pxe-eepro100.rom          slof.bin
bamboo.dtb                linuxboot.bin             pxe-ne2k_pci.rom          spapr-rtas.bin
bios-256k.bin             multiboot.bin             pxe-pcnet.rom             u-boot.e500
bios.bin                  openbios-ppc              pxe-rtl8139.rom           vgabios-cirrus.bin
efi-e1000.rom             openbios-sparc32          pxe-virtio.rom            vgabios-qxl.bin
efi-eepro100.rom          openbios-sparc64          q35-acpi-dsdt.aml         vgabios-stdvga.bin
efi-ne2k_pci.rom          palcode-clipper           qemu-icon.bmp             vgabios-vmware.bin
efi-pcnet.rom             petalogix-ml605.dtb       qemu_logo_no_text.svg     vgabios.bin
efi-rtl8139.rom           petalogix-s3adsp1800.dtb  s390-ccw.img              
User avatar
UbuntuXP
Tinkerer
Posts: 67
Joined: Sat Feb 08, 2014 8:15 pm

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

Post by UbuntuXP »

First, are you trying to boot a cdrom (cdr) where a hard disk is suppose to be? Also, are you trying to boot from cdrom or hda?

Try this if I'm guessing correctly.

Code: Select all

qemu-system-ppc -m 1024 -M g3beige -hda Jaguar/Jauguar.img -cpu 7448 -boot d -cdrom Jaguar/osxdisk1.iso -prom-env 'boot-args=-v' -serial stdio
"Unix was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."

Doug Gwyn
itux
Space Cadet
Posts: 5
Joined: Mon Jun 08, 2009 10:15 am

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

Post by itux »

Hello,

Sorry, but not Jaguar/Jauguar.img and Jaguar/Jauguar.cdr (because image created in DiskUtility)
If you tell me how prepare good hdd image with qemu i'll be happy.
Also i reinstall my qemu with support sdl and vde and now, i see normal color for system... but can't boot from hdd, this error present, can't find video card.
Also try build qemu from git --HEAD, but not successful.

Code: Select all

mpPro:PowerPC itux$ qemu-system-ppc -M g3beige -cpu G3 -m 1024 -sdl -hda Jaguar/Jaguar.vmdk -cdrom Jaguar/osxdisk1.iso -boot d -serial stdio  -prom-env 'boot-args=-v'
This image i see :)
[img]
http://nas.idev.pro/storage/cache/image ... 790913.png
[/img]
[img]
http://nas.idev.pro/storage/cache/image ... 790920.png
[/img]
[img]
http://nas.idev.pro/storage/cache/image ... 790928.png
[/img]
[img]
http://nas.idev.pro/storage/cache/image ... 790936.png
[/img]
[img]
http://nas.idev.pro/storage/cache/image ... 790944.png
[/img]
[img]
http://nas.idev.pro/storage/cache/image ... 790952.png
[/img]
[img]
http://nas.idev.pro/storage/cache/image ... 790967.png
Error with vmdk image
[/img]

Today i'll try install with cdr image
User avatar
UbuntuXP
Tinkerer
Posts: 67
Joined: Sat Feb 08, 2014 8:15 pm

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

Post by UbuntuXP »

Qemu has a utility for creating disk images, try this.

Code: Select all

qemu-img create jaguar.img 4G
Then try again with the new disk image.
"Unix was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."

Doug Gwyn
itux
Space Cadet
Posts: 5
Joined: Mon Jun 08, 2009 10:15 am

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

Post by itux »

Thanks, UbuntuXP
Not need use -sdl option, sdl used by default now :)
itux
Space Cadet
Posts: 5
Joined: Mon Jun 08, 2009 10:15 am

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

Post by itux »

itux wrote:Thanks, UbuntuXP
Not need use -sdl option, sdl used by default now :)
Sorry for spent your time,
But now i see:
[img]
http://nas.idev.pro/storage/cache/image ... 985325.png
[/img]

[img]
http://nas.idev.pro/storage/cache/image ... 984834.png
[/img]
User avatar
Ronald P. Regensburg
Expert User
Posts: 6345
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

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

Post by Ronald P. Regensburg »

A MacOSX 10.2 kernel panic (system crash).

Maybe it is useful to repeat what you mentioned in your first post and what is again apparent form the appearance of the QEMU window in your images, that you run QEMU in OSX 10.10 (Yosemite) beta. Has anyone else had success running this in Yosemite beta?
kikyoulinux
Tinkerer
Posts: 83
Joined: Sun Sep 28, 2014 11:53 am
Location: China

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

Post by kikyoulinux »

Is that qemu OS9 emulation still under construction?
User avatar
Cat_7
Expert User
Posts: 5050
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 »

Is that qemu OS9 emulation still under construction?
I think development has stalled.

Best,
Cat_7
kikyoulinux
Tinkerer
Posts: 83
Joined: Sun Sep 28, 2014 11:53 am
Location: China

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

Post by kikyoulinux »

perhaps... it has been a long time since it was announced
kikyoulinux
Tinkerer
Posts: 83
Joined: Sun Sep 28, 2014 11:53 am
Location: China

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

Post by kikyoulinux »

So it seems that SheepShaver is the only choice to emulate OS 9 though it is not perfect now.
But I'm looking forward to the good news.
User avatar
adespoton
Forum All-Star
Posts: 3075
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 »

GSOC was years ago now; unless we have some sort of coding revival, I don't see this moving anywhere any time soon. I was planning to look into this myself a few years back, but ran out of time to get both the OpenBIOS and the PMMU stuff running smoothly in qemu. So, for now, the focus is on improving MacII emulation via Mini vMac and Shoebill -- next up after that is getting PPC emulation improved in MESS and qemu, and then rolling all the fixes for those back into BII and SS at some point in the distant future :)
User avatar
Madd the Sane
Student Driver
Posts: 11
Joined: Fri Aug 31, 2012 6:27 pm
Location: Utah

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

Post by Madd the Sane »

Oh yes…
The emulation code in SheepShaver is a bit too old: It won't compile on a Mac with Lion or later (GCC isn't included, and llvm-gcc won't compile it, and Clang doesn't like some ASM directives used by SheepShaver).
Get out of my mind, idea! I already have an idea in there!
neozeed
Apple Corer
Posts: 289
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

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

Post by neozeed »

Madd the Sane wrote:Oh yes…
The emulation code in SheepShaver is a bit too old: It won't compile on a Mac with Lion or later (GCC isn't included, and llvm-gcc won't compile it, and Clang doesn't like some ASM directives used by SheepShaver).
And to make matters worse, you can tweek the build so it doesn't use the asm that the newer tools don't like, but it expects to be able to map to location 0x00000000 in memory which newer OS X forbades (well x64 mode now, but that could extend to 32bit in the future).
don't do today what you can put off until tomorrow.
User avatar
adespoton
Forum All-Star
Posts: 3075
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 seems to me that the 0-map issue should be something we can overcome with a shim -- just point to a virtual address of 0, and let the OS dynamically reassign to wherever. Is there some reason this can't be done other than that nobody's spent the time and grief to implement it?
User avatar
adespoton
Forum All-Star
Posts: 3075
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 »

bump... http://wiki.qemu.org/Google_Summer_of_C ... _9_in_QEMU

Time for another kick at the can, it seems :)

[edit] and according to https://www.google-melange.com/gsoc/eve ... e/gsoc2015 tomorrow's the deadline if you want to sign up to work on it as a student :)

Alexander Graf, if you get a student for this, let us know... and there are a number of people on here who would be happy to help either mentor or student find resources etc. :)
PeterHolbrook
Apple Corer
Posts: 247
Joined: Fri Oct 26, 2007 7:56 am

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

Post by PeterHolbrook »

adespoton wrote:Time for another kick at the can, it seems :)
That's very good news. Thank you for letting us know.
Mominul
Student Driver
Posts: 22
Joined: Mon Jan 06, 2014 11:16 am
Location: Bangladesh

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

Post by Mominul »

What is the frequently used QEmu Disk format? QED or QCOW?

Thanks
User avatar
adespoton
Forum All-Star
Posts: 3075
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 »

QCOW is severely deprecated; QCOW2 is the standard. It's the "QEMU copy-on-write format with a range of special features, including the ability to take multiple snapshots, smaller images on filesystems that don't support sparse files, optional AES encryption, and optional zlib compression."

Compared to this, QED is more lightweight, and runs at almost RAW performance levels, so is better when you want faster throughput. It contains support for backing files and sparse files, but doesn't have the extended feature set of QCOW2.

I still use VMDK for some stuff too, as it'll run under pretty much any virtual machine out there. However, while compatible with VMWare and VirtualBox, these are slow, and can introduce data errors over time. Plus, they don't snapshot well.

That said,

http://wiki.qemu.org/Features/Qcow3

One COW to rule them all :)
Mominul
Student Driver
Posts: 22
Joined: Mon Jan 06, 2014 11:16 am
Location: Bangladesh

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

Post by Mominul »

Thanks adespoton for yours clarification! Maybe I will try to implement VMDK into PearPC. So PearPC will able to read QEmu's ppc VMDK images.
QED and QCow2 (and QCow3) is a geeky stuff. It will be hard to implement them on PearPC.

Thanks!
User avatar
adespoton
Forum All-Star
Posts: 3075
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 »

Having vmdk support in ppc would be wonderful... that's the "transport image" of choice with all the stuff I do for work and play. PearPC currently has some interesting restrictions on disk image sizes though, due to how its virtual controller is written. So not all vmdk images would work in PearPC, but a PearPC vmdk should work anywhere else, including qemu.
User avatar
Cat_7
Expert User
Posts: 5050
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 »

It seems we get a new shot at running OS 9 in Qemu:

https://www.google-melange.com/gsoc/pro ... 2298738688

Best,
Cat_7
Last edited by Cat_7 on Sun Jun 21, 2015 7:35 am, edited 1 time in total.
Reason:  
PeterHolbrook
Apple Corer
Posts: 247
Joined: Fri Oct 26, 2007 7:56 am

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

Post by PeterHolbrook »

Cat_7 wrote:It seems we get a new shot at running OS 9 in Qemu
Great. Thank you for the piece of news.
User avatar
Cat_7
Expert User
Posts: 5050
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 »

DANADAX
Student Driver
Posts: 14
Joined: Tue Jun 23, 2015 5:37 am

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

Post by DANADAX »

Good news!

This year's (2015) GSOC has a nice little approved project, specifically for OS 9.

http://www.google-melange.com/gsoc/proj ... 2298738688
Post Reply