Ppc Linux For Mac

Linux on PowerPC Macs has 2,055 members. This is an English-language user-to-user support group. Linux and BSD Unix are free, open source operating systems that have long been available on Apple Macintosh hardware but not nearly as widely deployed as the Mac OS. Straight Installation vs. While there are some computers that come with Linux Mint. Ever considered Linux as an alternative to your aging OS X version? In this video, we will take a look at installing Linux Mint on a PowerBook G4.

April 11, 2020

New ISO images

Linux

The old batch was starting to show its age, so there are now some fresh ISOimages. There are also some significant improvements in them. They are marked20200411. Of course, fresh rootfs tarballs are also included.

As usual, they are available in ppc64le (POWER8+), ppc64 (G5+) and ppc(generic) variants, with glibc and musl both supported.

Let’s see:

Serial console support

There is now support for serial console integrated in the images, so you don’tnecessarily need a monitor and/or go through a bunch of hoops to manually setup the serial console. All you need to do is append some things on the kernelcommand line.

For example, on a Talos 2/Blackbird/qemu-system-ppc64:

The first will get you a monitor as usual, the second the serial console.Keep in mind that it has to be last! There is a special hook in the liveinitramfs that sets up the respective agetty services.

Dual kernels for big endian

Since some Macs have trouble booting on recent 5.x kernels, we’re now shippinga 4.4 LTS kernel as an alternative to the primary (currently 5.4) one. Youcan choose between them in the bootloader. So if you have one of thoseaffected machines, you can at least get the installer booted.

Keep in mind that with a network installation you’ll get the default kernelagain. The installer gives you an option to drop into the installed systembefore rebooting. You can install a kernel of your choice there.

Bootstrap partition validation in installer

Since a bunch of people complained about the installer booting fine but thefinal system not being bootable and the issue turned out to be swappedparameter order when creating the bootstrap partition on their Mac (andtherefore the partition having an incorrect type), the installer now checkswhether the partition is correct and tells you ahead if it’s not.

Ppc Linux For Mac

Yaboot shipped in the ISOs

If you’re one of those really unlucky people who can’t get GRUB to load andthere is no workaround (such one of those described in the FAQ), you can nowuse yaboot to boot the image. The default is obviously GRUB, but you canbring it up manually, e.g.:

Of course, that doesn’t mean yaboot is supported in the installer; it’s stillold and obsolete, and doesn’t play nice with the rest of the system (and thusrequires manual maintenance). However, it allows you to get the ISO booted,install the system without having it set up the bootloader, and set it upafterwards by hand.

Fewer graphical flavor images

Since generating all those graphical flavor images took way too long, neededa ton of space, and some of them didn’t even work for various reasons, we areno longer shipping graphical flavors with the exception of Xfce. Keep in mindthat this only applies to the live images! You can still install thedesktop environment of your choice in the final system, of course.

Other minor stuff

The graphical flavor images for 32-bit PowerPC now ship Xorg drivers forRage 128 (r128) and Rage Pro (mach64). This could help some G3s andso on, but do keep in mind that it won’t likely start up out of the box,as the drivers always needed manual configuration (Xorg modelines, etc.)

There have also been assorted fixes in the installer, such as simpler andmore robust code that takes care of setting up the NVRAM stuff to make Voidboot as the default OS. And obviously, the software stack is fresh and updated.

That’s it for now. Grab a copy from the Download page, and test it if you havethe hardware. Any issues go into the bug tracker as always, and we have an IRCchannel as well (#voidlinux-ppc on Freenode).

Next batch will come once enough crucial fixes have accumulated, or once itstarts getting dated again.

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:

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:

Linux

'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:

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?

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:

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:

Linux For Mac Ppc G4

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.

Linux For Ppc

Each of these snapshots can be used with the above command line as the -hda argument:

  • qemu-system-ppc ... -hda experiment-2.qcow2

Ppc Linux For Mac Windows 10

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?

Ppc Linux For Mac Os

combined.qcow2 now contains the changes from experiment-2.qcow2 and experiment-2B.qcow2.

Linux For G5 Mac Ppc

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: