Linux For Ppc Mac Os
2021年1月30日Download here: http://gg.gg/o4e4n
Fedora Linux for PowerPC Macs. Low End Mac publishes an ongoing series of Compleat Guides to things like Mac OS 9 and different computer lines, but we can’t do that with Linux and BSD - they are moving targets. Debian GNU/Linux PowerPC PowerMac Page. Here are some highlights of the PowerMac installation of Debian. To dual boot your Debian PowerMac system with Mac OS and/or Mac OS X. If you are planning on doing a new installation of Mac OS X, though, do it before installing Debian. The Mac OS X installer is very unkind to existing systems when it.
*Linux For Ppc
*Linux For Powerpc
*Linux For Ppc Mac Os High Sierra
*Linux On Powerpc Mac
*Linux For Ppc Mac Os Versions
*1PowerPC Emulator (32-bit)
*1.4PowerMac G4 and G3 emulation
*2Debugging tips
*3Emulated hardware issuesPowerPC Emulator (32-bit)Description
This page is about qemu-system-ppc.Note: Information below true for qemu-system-ppc builds as of 14-03-2019
The following machines are emulated through qemu-system-ppc:Machine model selectorProvides-M g3beige Heathrow based PowerMAC (default)-M mac99 Mac99 based PowerMAC-M 40p IBM RS/6000 7020 (40p)-M bamboo Bamboo-M mpc8544ds Mpc8544ds-M none Empty machine-M ppce500 Generic paravirt e500 platform-M prep PowerPC PREP platform (deprecated in favour of the 40p machine )-M ref405ep Ref405ep-M sam460ex aCube Sam460ex-M taihu Taihu-M virtex-ml507 Xilinx Virtex ML507 reference designBuild directions
Due to mouse issues when using the default GTK GUI in Windows, it is advisable to use the SDL-based GUI when compiling on/for that platform:Pre-built binaries for Windows and OSX
Pre-built binaries for Windows can be found here: https://qemu.weilnetz.de/w64/Pre-built binaries for OSX are provided at the emaculation website: https://www.emaculation.com/forum/viewtopic.php?f=34&t=8848Experimental builds for Windows/OSX with e.g., sound support are provided at the emaculation website: https://www.emaculation.com/forum/viewtopic.php?f=34&t=8848&p=52102#p52104 and here: https://www.emaculation.com/forum/viewtopic.php?f=34&t=9028PowerMac G4 and G3 emulation
PowerPC Mac G4 (Mac Model PowerPC3,1) and PowerPC Mac G3 emulation
The PowerPC Mac G4 -m mac99 machine model selector has three options:Machine model selector optionsProvides-M mac99,via=pmu pmu power management, providing USB mouse and keyboard-M mac99,via=pmu-adb pmu power management with adb bus for older OSs not supporting USB-M mac99,via=cuda cuda power management with adb bus (this is the default)
Optional commands:Optional commandsDefaultProvides-prom-env ’auto-boot?=true’yesAutomatic boot at openbios prompt-prom-env ’boot-args=-v’ noVerbose start-up of OSX guests-prom-env ’vga-ndrv?=true’ yesOn the fly resolution/colour depth switching for Mac OS/OS X guests-device VGA,edid=on noProvides additional screen resolutions for Mac OS/OS X guestsMac OS/OSX and Linux guest compatibilityOperating systemStatusRemarksMac OS 8.0 to 8.6Not supportedMac OS 9.0Boots, installs, runsRequires 9.0.4 with rom version 5.2.1 and above (e.g., 9.0.4 for the Cube)Mac OS 9.1Boots, installs, runsMac OS 9.2Boots, installs, runsMac OS 10.0Boots, installs, runsMac OS 10.1Boots, installs, runsMac OS 10.2Boots, installs, runsMac OS 10.3Boots, installs, runsMac OS 10.4Boots, installs, runsMac OS 10.5Boots, installs, runsRequires -m mac99,via=pmu to runMac OSX Server 1.2v3Boots, installs, runsNo networking due to lack of gigabit ethernet supportLubuntu 14Boots, installs, runsRequires -g 1024x768x8 to see text while installingFedora 12Boots, installs, runsRequires -g 1024x768x8 to see text while installingDebian 10Boots, installs, runsRequires -g 1024x768x8 to see text while installingOpenSuse 11Boots, installs, runsRequires -device rtl8139 for networking, -g 1024x768x8 to see text while installingYellow Dog Linux 6.2Boots, installs, runsRequires -device rtl8139 for networking, -g 1024x768x8 to see text while installingGuest installation instructionsMac OS 9.x to Mac OS X 10.4
Command-line options to install Mac OS 9:Mac OS X 10.5
Command-line options to install Mac OS X 10.X:Mac OS X Server 1.2v3
Installation requires several steps: Step 1: boot from installation CD, use disk utility to partition disk as Apple Server, start the installation and let it fail. Quit Qemu and reboot with command line in step 2.
Step 2: initial installation (note machine and CPU, otherwise no desktop is shown).
At the boot prompt enter ’boot cd:9,:tbxi’ Initial installation starts. Quit Qemu after completion.
Step 3: Installation continued. Boot with the following command line to complete the installation.
Step 4: Boot the installed system: Lubuntu 14
Installation:
Running: Fedora 12
Installing:
Running: Debian 10 (Buster)
Note: To get a graphical desktop, at software selection, remove the default desktop environment and install only XfceInstalling:
Running:
At the Linux boot prompt enter ’Linux modprobe.blacklist=bochs_drm’
Pre-installed images of Debian 6 (Squeeze) and 7 (Wheezy) (both minimal and with desktop) can be found here: https://people.debian.org/~aurel32/qemu/powerpc/
These images boot with:OpenSuse 11
Installing:
Once the license screen appears, press Ctrl-Alt-Shift-X to open a terminal. Follow https://en.opensuse.org/SDB:Install_openSUSE_on_an_Apple_PPC_computer to create partitions with pdisk. Write the map after partitioning and continue with Yast. Once Yast arrives at partitioning, select Expert partitioning, select the Hard disk and click Rescan disk.Leave hda2 as it is.Edit hda3 to format as Ext2, mount at /boot and set fstab option to: Mount in /etc/fstab by to Device Path (instead of Device ID)Edit hda4 to format as Swap and set fstab option to: Mount in /etc/fstab by to Device Path (instead of Device ID)Edit hda5 to format as Ext3, mount at / and set fstab option to: Mount in /etc/fstab by to Device Path (instead of Device ID)
Accept the partitioning and continue with formatting. Continue installing. There will be an error while the boot manager is being installed. Ignore it, do not retry and wait for the installation to finish and the system reboots. Quit Qemu at the openbios screen and edit your command line:Yellow Dog Linux 6.2
Installing:
Running: IBM RS/6000 7020 (40p)
The 40p machine can be booted with the sandalfoot zImage from:http://www.juneau-lug.org/zImage.initrd.sandalfoot
Booting:
BambooMpc8544dsEmpty machineGeneric paravirt e500 platformPowerPC PREP platform (deprecated in favour of the 40p machine)Ref405epaCube Sam460ex
Booting:TaihuXilinx Virtex ML507 reference designDebugging tipsCommand line options
(logs unimplemented features and guest errors to stdout)
(logs all PMU accesses to stdout)
(logs all USB accesses to stdout)Macsbug
Macsbug can be used with Mac OS guest to tell you what exactly stopped booting. The link for it is below.Mac OS 9.2 comes with a built-in debugger. To use it, set the OpenBIOS variable “APPL,debug”:Via QEMU’s command-line options:
In OpenBIOS type:dev /2000000 encode-int *Note: the number can be replaced with the many options available“ AAPL,debug” property then to boot from a cd type:boot cd:,:tbxiTo boot from a hard drive image:boot hd:,:tbxiDebugging qemu-system-ppc with GDB on an x86 Linux host
To build gdb-powerpc-linux on Linux, you need the normal build tools such as GCC installed.Download the GDB source code. Version 7.9 is reported to work: http://ftp.gnu.org/gnu/gdb/gdb-7.9.tar.gzUnpack it and cd into the dir, then build and install with:
Launch qemu-system-ppc(64) with -s and -S. Qemu will pause and listen on port 1234 for GDB.Set -prom-env ’auto-boot?=false’ --nographic on the command line for the Qemu instance to be debugged.
Open another terminal and launch the GDB you just built:
You can set a breakpoint in GDB, like this:
Type ’boot’ in the terminal running Qemu.Emulated hardware issuesMac OS
-Only Mac OS 9.x support sound well. Use an experimental build.-Mac OS 9.x will not boot with 64 Mb or less memory. They will also not boot with more than 1024 Mb.Links
Installation images: Lubuntu 14.04 PPC releaseOpenSuse 11 PPC releaseFedora 12 PPC releaseUbuntu Mate 16.04 PPC releaseDebian 10 PPC releaseYellow Dog Linux 6.2
Google Summer of Code Discussion for Mac OS 9Macsbug 6.6.3 - debugger for Mac OS 9Darwin OS installation iso fileJQEMU - graphical manager for QEMU (requires Java)PowerPC Assembly Language TutorialQEMU PowerPC mailing listBeige Power Mac G3 infoSawtooth Power Mac G4 infoLinux For PpcPictures
How do I help
QEMU has many systems that can always be improved. Here is a brief list of possible areas you may want to work on:
*Documentation
*Testing
*Fixing operating system compatibility issues
*PowerPC emulation
*User interface
*Implement a 3D video card
*Improve various hardware (via-cuda, ata controller, etc..)
Knowledge in these areas could help:
*PowerPC Assembly
*68K Assembly
*Embedded ProgrammingContacts
Maintainer: David Gibson david@gibson.dropbear.id.auIf there are any issues with this page, please contact meRetrieved from ’https://wiki.qemu.org/index.php?title=Documentation/Platforms/PowerPC&oldid=9438’
Blog 2020/5/7
<- previous |index |next ->
Here are some notes on how I set up an installation of OS X Tiger (10.4)on an emulated PowerPC G4 using QEMU,on a modern x86_64 Mac.
This setup was performed using QEMU 5.0.0 (obtained via brew install qemu).
Note: at some point during this process -cdrom /dev/cdrom seems to have stopped working, but -cdrom /dev/disk2 works.Step 1: Initial installation
In this step we will format the disk and perform the initial OS X installation.
Download a copy of the2Z691-5305-A OS X Tiger installation DVDand burn it to a physical DVD.
Note: for some reason qemu does not seem to be able to boot .iso files of the OS X installation DVD (using -cdrom tiger.iso),but if you burn that .iso to a physical DVD and then use -cdrom /dev/disk2, it works.
Boot the DVD to verify it works:Linux For Powerpc
If you see the grey Apple logo, the DVD is working correctly with QEMU:
Quit QEMU and create a 127GB QEMU disk:
Boot the install DVD with the disk attached and being the installation. QEMU will exit when the installer reboots.
When the installer reaches the disk selection screen, there will be no disks to choose from, because the disk has not been partitioned yet:
Start up Disk Utility:
’Erase’ the disk to partition and format it:
Quit Disk Utility and the installer should now see the newly formatted partition:
The install will take quite some time (over an hour). When it completes, it will reboot, which will cause QEMU to exit (due to the -no-reboot flag).
At this point you may (physically) eject the installation DVD (from your host Mac).
Mark the disk as read-only to prevent any accidental writes to it (which would cause any snapshots based on this disk to become corrupt):Step 2: User account creation, system updates
In this step we will create a user account and install all of the system updates.
Create a snapshot of the disk (think of this as forking the hard drive):
The system updates can either be installed using the Software Update utility (iteratively repeated across many reboots),or you can download and install them manually.
The manual route is quicker because some of the updates are bundled, and you don’t have to wait on Software Update to detect which updates have / haven’t been installed yet.
To install the updates manually,download (on your host Mac) item #29 (Tiger_Updates.dmg_.zip)from the ’Mac OS X for PPC’ pageof macintoshgarden.org.
Unzip that file and convert the dmg to a DVD image:
We can now use tiger-updates.cdr as a virtual DVD with QEMU.
Boot the G4 and create a user account:
Note: if you plan on using Software Update rather than tiger-updates.cdr, you man omit the -cdrom tiger-updates.cdr line from the above command.
Note: this boot may take several minutes to get started.
This install was set up with user macuser and password macuser:
This installation was set up with the Central timezone:
Disable the screen saver and power-saving features:
Open up System Preferences and:
*Display & Screen Saver -> Screensaver -> Start screen saver -> Never
*Energy Saver
*Put the computer to sleep when it is inactive for -> Never
*Put the display to sleep when the computer is inactive for -> Never
If you did not use Software Update, open up the Tiger_Updates ’DVD’ and install all of the updates:
If you go with the updates DVD route, make sure you run Software Update at the end just to be sure you’ve covered everything.
Mark the snapshot read-only to prevent accidental writes to it:Step 3: Web browser, video player, text editor
In this step we will install TenFourFox, VLC and TextWrangler.
Create a snapshot of the disk:Linux For Ppc Mac Os High Sierra
TenFourFox is a fork of the Firefox web browser which is currently supported on Tiger/PPC.Their website links to the latest version,FPR22.
The latest version of VLCfor Tiger/PPC is 0.9.10,which is still available from their downloads page.
The latest version of TextWranglerfor Tiger/PPC is 3.1,available via Bare Bonesor macintoshgarden.org.
Strangely, no combination of using Disk Utility and hdiutil to create .dmg or .cdr images of TenFourFox.app seemed to work with Tiger:
Note: in retrospect, perhaps this was an APFS vs. HFS+ issue?Linux On Powerpc Mac
I resorted to burning TenFourFox, VLC, and TextWrangler to a physical DVD and passing it through to QEMU.
Note: even burning to a physical CD-ROM didn’t work -- it had to be a DVD.
Drag the applications into /Applications.
Shutdown the G4 and mark the disk read-only:Step 4: Xcode, Tigerbrew
In this step we will set up a development environment for building modern Unix software.
Create a snapshot of the disk:Linux For Ppc Mac Os Versions
The latest version of Xcode Tools for Tiger/PPC is 2.5,which is still available via Apple (search for ’xcode 2.5’ at https://developer.apple.com/download/more/, requires login),or via macintoshgarden.orgfrom their Xcode page.
Again, I had to burn this to a physical DVD in order to use it with QEMU.
Boot the G4 and install the Xcode Tools:
Tigerbrewis a fork of Homebrewfor PowerPC Macs running Tiger or Leopard.
Open up a terminal on the emulated G4 and use the following commands to install Tigerbrew:
Also, change Terminal.app to spawn a ’login’ bash shell:
*Terminal -> Preferences -> Execute this command -> /bin/bash -l
Don’t forget to mark the disk image read-only:Using these QEMU hard drive images
At this point we’ve created a series of four chained hard drive images:
We can squash these images into a single, combined, stand-alone hard drive image:
We can then boot using that combined image directly, without the use of any snapshots.This is analogous to having a real Mac with a physical hard drive:
Or, we could treat combined.qcow2 as a ’golden master’and create snapshots based off of it, perhaps to try out some experimental tigerbrew packages:
Perhaps in experiment-1.qcow2 we try out gcc-7, and in experiment-2.qcow2 we try out llvm, etc.
Each of these snapshots can be used with the above command line as the -hda argument:
*qemu-system-ppc ... -hda experiment-2.qcow2
We could even create further branches off of e.g. experiment-2.qcow2:
Perhaps we decide that experiment-2B.qcow2 was the keeper and the rest can be gotten rid of?
combined.qcow2 now contains the changes from experiment-2.qcow2 and experiment-2B.qcow2.
Thus far we’ve been branching off of the ’tip’,but we could just as easily branch off several points in the snapshot tree.For example, if we hadn’t merged the images into combined.qcow2,we could make a ’daily driver’ snapshot for web browsing based off of 3-browser.qcow2,and a ’dev box’ for doing development work based off of 4-tigerbrew.qcow2:
Let’s say we accidentally hosed our dev box with a careless rm -rf /. Starting over with a new dev box is trivial:
Etc :)Resources:
Download here: http://gg.gg/o4e4n
https://diarynote.indered.space
Fedora Linux for PowerPC Macs. Low End Mac publishes an ongoing series of Compleat Guides to things like Mac OS 9 and different computer lines, but we can’t do that with Linux and BSD - they are moving targets. Debian GNU/Linux PowerPC PowerMac Page. Here are some highlights of the PowerMac installation of Debian. To dual boot your Debian PowerMac system with Mac OS and/or Mac OS X. If you are planning on doing a new installation of Mac OS X, though, do it before installing Debian. The Mac OS X installer is very unkind to existing systems when it.
*Linux For Ppc
*Linux For Powerpc
*Linux For Ppc Mac Os High Sierra
*Linux On Powerpc Mac
*Linux For Ppc Mac Os Versions
*1PowerPC Emulator (32-bit)
*1.4PowerMac G4 and G3 emulation
*2Debugging tips
*3Emulated hardware issuesPowerPC Emulator (32-bit)Description
This page is about qemu-system-ppc.Note: Information below true for qemu-system-ppc builds as of 14-03-2019
The following machines are emulated through qemu-system-ppc:Machine model selectorProvides-M g3beige Heathrow based PowerMAC (default)-M mac99 Mac99 based PowerMAC-M 40p IBM RS/6000 7020 (40p)-M bamboo Bamboo-M mpc8544ds Mpc8544ds-M none Empty machine-M ppce500 Generic paravirt e500 platform-M prep PowerPC PREP platform (deprecated in favour of the 40p machine )-M ref405ep Ref405ep-M sam460ex aCube Sam460ex-M taihu Taihu-M virtex-ml507 Xilinx Virtex ML507 reference designBuild directions
Due to mouse issues when using the default GTK GUI in Windows, it is advisable to use the SDL-based GUI when compiling on/for that platform:Pre-built binaries for Windows and OSX
Pre-built binaries for Windows can be found here: https://qemu.weilnetz.de/w64/Pre-built binaries for OSX are provided at the emaculation website: https://www.emaculation.com/forum/viewtopic.php?f=34&t=8848Experimental builds for Windows/OSX with e.g., sound support are provided at the emaculation website: https://www.emaculation.com/forum/viewtopic.php?f=34&t=8848&p=52102#p52104 and here: https://www.emaculation.com/forum/viewtopic.php?f=34&t=9028PowerMac G4 and G3 emulation
PowerPC Mac G4 (Mac Model PowerPC3,1) and PowerPC Mac G3 emulation
The PowerPC Mac G4 -m mac99 machine model selector has three options:Machine model selector optionsProvides-M mac99,via=pmu pmu power management, providing USB mouse and keyboard-M mac99,via=pmu-adb pmu power management with adb bus for older OSs not supporting USB-M mac99,via=cuda cuda power management with adb bus (this is the default)
Optional commands:Optional commandsDefaultProvides-prom-env ’auto-boot?=true’yesAutomatic boot at openbios prompt-prom-env ’boot-args=-v’ noVerbose start-up of OSX guests-prom-env ’vga-ndrv?=true’ yesOn the fly resolution/colour depth switching for Mac OS/OS X guests-device VGA,edid=on noProvides additional screen resolutions for Mac OS/OS X guestsMac OS/OSX and Linux guest compatibilityOperating systemStatusRemarksMac OS 8.0 to 8.6Not supportedMac OS 9.0Boots, installs, runsRequires 9.0.4 with rom version 5.2.1 and above (e.g., 9.0.4 for the Cube)Mac OS 9.1Boots, installs, runsMac OS 9.2Boots, installs, runsMac OS 10.0Boots, installs, runsMac OS 10.1Boots, installs, runsMac OS 10.2Boots, installs, runsMac OS 10.3Boots, installs, runsMac OS 10.4Boots, installs, runsMac OS 10.5Boots, installs, runsRequires -m mac99,via=pmu to runMac OSX Server 1.2v3Boots, installs, runsNo networking due to lack of gigabit ethernet supportLubuntu 14Boots, installs, runsRequires -g 1024x768x8 to see text while installingFedora 12Boots, installs, runsRequires -g 1024x768x8 to see text while installingDebian 10Boots, installs, runsRequires -g 1024x768x8 to see text while installingOpenSuse 11Boots, installs, runsRequires -device rtl8139 for networking, -g 1024x768x8 to see text while installingYellow Dog Linux 6.2Boots, installs, runsRequires -device rtl8139 for networking, -g 1024x768x8 to see text while installingGuest installation instructionsMac OS 9.x to Mac OS X 10.4
Command-line options to install Mac OS 9:Mac OS X 10.5
Command-line options to install Mac OS X 10.X:Mac OS X Server 1.2v3
Installation requires several steps: Step 1: boot from installation CD, use disk utility to partition disk as Apple Server, start the installation and let it fail. Quit Qemu and reboot with command line in step 2.
Step 2: initial installation (note machine and CPU, otherwise no desktop is shown).
At the boot prompt enter ’boot cd:9,:tbxi’ Initial installation starts. Quit Qemu after completion.
Step 3: Installation continued. Boot with the following command line to complete the installation.
Step 4: Boot the installed system: Lubuntu 14
Installation:
Running: Fedora 12
Installing:
Running: Debian 10 (Buster)
Note: To get a graphical desktop, at software selection, remove the default desktop environment and install only XfceInstalling:
Running:
At the Linux boot prompt enter ’Linux modprobe.blacklist=bochs_drm’
Pre-installed images of Debian 6 (Squeeze) and 7 (Wheezy) (both minimal and with desktop) can be found here: https://people.debian.org/~aurel32/qemu/powerpc/
These images boot with:OpenSuse 11
Installing:
Once the license screen appears, press Ctrl-Alt-Shift-X to open a terminal. Follow https://en.opensuse.org/SDB:Install_openSUSE_on_an_Apple_PPC_computer to create partitions with pdisk. Write the map after partitioning and continue with Yast. Once Yast arrives at partitioning, select Expert partitioning, select the Hard disk and click Rescan disk.Leave hda2 as it is.Edit hda3 to format as Ext2, mount at /boot and set fstab option to: Mount in /etc/fstab by to Device Path (instead of Device ID)Edit hda4 to format as Swap and set fstab option to: Mount in /etc/fstab by to Device Path (instead of Device ID)Edit hda5 to format as Ext3, mount at / and set fstab option to: Mount in /etc/fstab by to Device Path (instead of Device ID)
Accept the partitioning and continue with formatting. Continue installing. There will be an error while the boot manager is being installed. Ignore it, do not retry and wait for the installation to finish and the system reboots. Quit Qemu at the openbios screen and edit your command line:Yellow Dog Linux 6.2
Installing:
Running: IBM RS/6000 7020 (40p)
The 40p machine can be booted with the sandalfoot zImage from:http://www.juneau-lug.org/zImage.initrd.sandalfoot
Booting:
BambooMpc8544dsEmpty machineGeneric paravirt e500 platformPowerPC PREP platform (deprecated in favour of the 40p machine)Ref405epaCube Sam460ex
Booting:TaihuXilinx Virtex ML507 reference designDebugging tipsCommand line options
(logs unimplemented features and guest errors to stdout)
(logs all PMU accesses to stdout)
(logs all USB accesses to stdout)Macsbug
Macsbug can be used with Mac OS guest to tell you what exactly stopped booting. The link for it is below.Mac OS 9.2 comes with a built-in debugger. To use it, set the OpenBIOS variable “APPL,debug”:Via QEMU’s command-line options:
In OpenBIOS type:dev /2000000 encode-int *Note: the number can be replaced with the many options available“ AAPL,debug” property then to boot from a cd type:boot cd:,:tbxiTo boot from a hard drive image:boot hd:,:tbxiDebugging qemu-system-ppc with GDB on an x86 Linux host
To build gdb-powerpc-linux on Linux, you need the normal build tools such as GCC installed.Download the GDB source code. Version 7.9 is reported to work: http://ftp.gnu.org/gnu/gdb/gdb-7.9.tar.gzUnpack it and cd into the dir, then build and install with:
Launch qemu-system-ppc(64) with -s and -S. Qemu will pause and listen on port 1234 for GDB.Set -prom-env ’auto-boot?=false’ --nographic on the command line for the Qemu instance to be debugged.
Open another terminal and launch the GDB you just built:
You can set a breakpoint in GDB, like this:
Type ’boot’ in the terminal running Qemu.Emulated hardware issuesMac OS
-Only Mac OS 9.x support sound well. Use an experimental build.-Mac OS 9.x will not boot with 64 Mb or less memory. They will also not boot with more than 1024 Mb.Links
Installation images: Lubuntu 14.04 PPC releaseOpenSuse 11 PPC releaseFedora 12 PPC releaseUbuntu Mate 16.04 PPC releaseDebian 10 PPC releaseYellow Dog Linux 6.2
Google Summer of Code Discussion for Mac OS 9Macsbug 6.6.3 - debugger for Mac OS 9Darwin OS installation iso fileJQEMU - graphical manager for QEMU (requires Java)PowerPC Assembly Language TutorialQEMU PowerPC mailing listBeige Power Mac G3 infoSawtooth Power Mac G4 infoLinux For PpcPictures
How do I help
QEMU has many systems that can always be improved. Here is a brief list of possible areas you may want to work on:
*Documentation
*Testing
*Fixing operating system compatibility issues
*PowerPC emulation
*User interface
*Implement a 3D video card
*Improve various hardware (via-cuda, ata controller, etc..)
Knowledge in these areas could help:
*PowerPC Assembly
*68K Assembly
*Embedded ProgrammingContacts
Maintainer: David Gibson david@gibson.dropbear.id.auIf there are any issues with this page, please contact meRetrieved from ’https://wiki.qemu.org/index.php?title=Documentation/Platforms/PowerPC&oldid=9438’
Blog 2020/5/7
<- previous |index |next ->
Here are some notes on how I set up an installation of OS X Tiger (10.4)on an emulated PowerPC G4 using QEMU,on a modern x86_64 Mac.
This setup was performed using QEMU 5.0.0 (obtained via brew install qemu).
Note: at some point during this process -cdrom /dev/cdrom seems to have stopped working, but -cdrom /dev/disk2 works.Step 1: Initial installation
In this step we will format the disk and perform the initial OS X installation.
Download a copy of the2Z691-5305-A OS X Tiger installation DVDand burn it to a physical DVD.
Note: for some reason qemu does not seem to be able to boot .iso files of the OS X installation DVD (using -cdrom tiger.iso),but if you burn that .iso to a physical DVD and then use -cdrom /dev/disk2, it works.
Boot the DVD to verify it works:Linux For Powerpc
If you see the grey Apple logo, the DVD is working correctly with QEMU:
Quit QEMU and create a 127GB QEMU disk:
Boot the install DVD with the disk attached and being the installation. QEMU will exit when the installer reboots.
When the installer reaches the disk selection screen, there will be no disks to choose from, because the disk has not been partitioned yet:
Start up Disk Utility:
’Erase’ the disk to partition and format it:
Quit Disk Utility and the installer should now see the newly formatted partition:
The install will take quite some time (over an hour). When it completes, it will reboot, which will cause QEMU to exit (due to the -no-reboot flag).
At this point you may (physically) eject the installation DVD (from your host Mac).
Mark the disk as read-only to prevent any accidental writes to it (which would cause any snapshots based on this disk to become corrupt):Step 2: User account creation, system updates
In this step we will create a user account and install all of the system updates.
Create a snapshot of the disk (think of this as forking the hard drive):
The system updates can either be installed using the Software Update utility (iteratively repeated across many reboots),or you can download and install them manually.
The manual route is quicker because some of the updates are bundled, and you don’t have to wait on Software Update to detect which updates have / haven’t been installed yet.
To install the updates manually,download (on your host Mac) item #29 (Tiger_Updates.dmg_.zip)from the ’Mac OS X for PPC’ pageof macintoshgarden.org.
Unzip that file and convert the dmg to a DVD image:
We can now use tiger-updates.cdr as a virtual DVD with QEMU.
Boot the G4 and create a user account:
Note: if you plan on using Software Update rather than tiger-updates.cdr, you man omit the -cdrom tiger-updates.cdr line from the above command.
Note: this boot may take several minutes to get started.
This install was set up with user macuser and password macuser:
This installation was set up with the Central timezone:
Disable the screen saver and power-saving features:
Open up System Preferences and:
*Display & Screen Saver -> Screensaver -> Start screen saver -> Never
*Energy Saver
*Put the computer to sleep when it is inactive for -> Never
*Put the display to sleep when the computer is inactive for -> Never
If you did not use Software Update, open up the Tiger_Updates ’DVD’ and install all of the updates:
If you go with the updates DVD route, make sure you run Software Update at the end just to be sure you’ve covered everything.
Mark the snapshot read-only to prevent accidental writes to it:Step 3: Web browser, video player, text editor
In this step we will install TenFourFox, VLC and TextWrangler.
Create a snapshot of the disk:Linux For Ppc Mac Os High Sierra
TenFourFox is a fork of the Firefox web browser which is currently supported on Tiger/PPC.Their website links to the latest version,FPR22.
The latest version of VLCfor Tiger/PPC is 0.9.10,which is still available from their downloads page.
The latest version of TextWranglerfor Tiger/PPC is 3.1,available via Bare Bonesor macintoshgarden.org.
Strangely, no combination of using Disk Utility and hdiutil to create .dmg or .cdr images of TenFourFox.app seemed to work with Tiger:
Note: in retrospect, perhaps this was an APFS vs. HFS+ issue?Linux On Powerpc Mac
I resorted to burning TenFourFox, VLC, and TextWrangler to a physical DVD and passing it through to QEMU.
Note: even burning to a physical CD-ROM didn’t work -- it had to be a DVD.
Drag the applications into /Applications.
Shutdown the G4 and mark the disk read-only:Step 4: Xcode, Tigerbrew
In this step we will set up a development environment for building modern Unix software.
Create a snapshot of the disk:Linux For Ppc Mac Os Versions
The latest version of Xcode Tools for Tiger/PPC is 2.5,which is still available via Apple (search for ’xcode 2.5’ at https://developer.apple.com/download/more/, requires login),or via macintoshgarden.orgfrom their Xcode page.
Again, I had to burn this to a physical DVD in order to use it with QEMU.
Boot the G4 and install the Xcode Tools:
Tigerbrewis a fork of Homebrewfor PowerPC Macs running Tiger or Leopard.
Open up a terminal on the emulated G4 and use the following commands to install Tigerbrew:
Also, change Terminal.app to spawn a ’login’ bash shell:
*Terminal -> Preferences -> Execute this command -> /bin/bash -l
Don’t forget to mark the disk image read-only:Using these QEMU hard drive images
At this point we’ve created a series of four chained hard drive images:
We can squash these images into a single, combined, stand-alone hard drive image:
We can then boot using that combined image directly, without the use of any snapshots.This is analogous to having a real Mac with a physical hard drive:
Or, we could treat combined.qcow2 as a ’golden master’and create snapshots based off of it, perhaps to try out some experimental tigerbrew packages:
Perhaps in experiment-1.qcow2 we try out gcc-7, and in experiment-2.qcow2 we try out llvm, etc.
Each of these snapshots can be used with the above command line as the -hda argument:
*qemu-system-ppc ... -hda experiment-2.qcow2
We could even create further branches off of e.g. experiment-2.qcow2:
Perhaps we decide that experiment-2B.qcow2 was the keeper and the rest can be gotten rid of?
combined.qcow2 now contains the changes from experiment-2.qcow2 and experiment-2B.qcow2.
Thus far we’ve been branching off of the ’tip’,but we could just as easily branch off several points in the snapshot tree.For example, if we hadn’t merged the images into combined.qcow2,we could make a ’daily driver’ snapshot for web browsing based off of 3-browser.qcow2,and a ’dev box’ for doing development work based off of 4-tigerbrew.qcow2:
Let’s say we accidentally hosed our dev box with a careless rm -rf /. Starting over with a new dev box is trivial:
Etc :)Resources:
Download here: http://gg.gg/o4e4n
https://diarynote.indered.space
コメント