QEMU & Linux for PowerPC
A recent post (see Linux for PowerPC on QEMU (mac99) - System Information) looked at Linux on QEMU's 'mac99' machine, an emulation of an Apple PowerMac G4 (AGP Graphics). But what about QEMU's other Power Macintosh system?
QEMU
QEMU provides an emulation of the older, Apple Power Macintosh G3 ("beige").
Checking Apple Support, EveryMac.com, Wikipedia the hardware specification for the 'g3beige' would be:
System | Apple Power Macintosh G3 ("beige") |
---|---|
Mac Firmware | OldWorld |
CPU | PowerPC 750 @ 233, 266, 300, or 333 MHz; upgrade to G4 @ 350 or 400 MHz |
RAM | 32, 64 or 128 MiB (768 MiB max.) |
Bus | PCI |
Storage | built-in IDE controller; 128GB max. HD |
built-in SCSI controller | |
4GB SCSI, 2x 4GB SCSI or 8GB IDE hard disk(s) | |
24x ATAPI/IDE CD-ROM | |
Floppy | 3.5" 1.44MB |
Video | ATI 3D Rage II+, ATI 3D Rage Pro, or ATI 3D Rage Pro Turbo, 6 MiB VRAM |
Audio | Whisper or Wings personality card |
Network | built-in RTL-8029(AS) 10 Mb/s 10baseT ethernet |
Keyboard & Mouse | ADB |
Third-party processor upgrades offered higher spec. G3 and G4 options. Since the emulation will determine the processor speed, we'll go with the default processor.
Emulation Command
For reference the QEMU command used:
qemu-system-ppc \ --machine g3beige \ -hda hda_DebianLinux_g3beige.qcow2 \ -cdrom debian-8.11.0-powerpc-DVD-1.iso \ -g 1024x768x8 \ -net nic \ -net "user,guestfwd=:10.0.2.1:22-cmd:netcat 127.0.0.1 22,hostfwd=::2222-:22" \ -kernel vmlinux-3.16.0-6-powerpc \ -initrd initrd.img-3.16.0-6-powerpc \ -append 'root=/dev/sda3' \ -name 'Debian Linux 8 (jessie) on Power Macintosh G3 (Beige)'
Note that due to issues with the boot loader, a kernel and ramdisk extracted from the installed system are used to start the system.