Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
The first post of this thread is a WikiPost and can be edited by anyone with the appropiate permissions. Your edits will be public.
Just installed Debian Sid on a Dual Core 2.0 G5 and it's working great. The X1900 GT is of course cli only, but I was already expecting that, no biggie.

Does GRUB on PPC support chainloading OS X Tiger? The GRUB documentation states that "chain-loading is only supported on PC BIOS and EFI platforms." So probably not but I figured I'd ask anyways.

This:
Code:
menuentry "Mac OS X Tiger" {
    insmod hfsplus
    search --set=root --file /System/Library/CoreServices/BootX
    chainloader /System/Library/CoreServices/BootX
}
did not work.
(Based on this and this.)

To install yaboot during installation I had to jump through some hoops and alter the G3/G4 instructions a little bit:
Code:
press Alt + F2
chroot /target
mount -t sysfs none /sys
mount -t procfs none /proc

# Add sources
nano /etc/apt/sources.list
deb http://ftp.ports.debian.org/debian-ports/ unstable main
deb http://ftp.ports.debian.org/debian-ports/ unreleased main
deb http://incoming.ports.debian.org/buildd/ unstable main

apt update
apt install hfsutils
apt install yaboot
yabootconfig -b /dev/sda2
ybin

Also creating a 1 MB NewWorld partition in the installer wasn't big enough for yaboot. Specifying the partition size as 1024k did the trick.
Grub needed a 10 MB NewWorld partition (installed size was around 6 MB.).
 
  • Like
Reactions: G4fanboy
Hi all :).
Somebody tried installation on an external disk controller? I personally failed to achieve bootable system. GRUB requires more operations & yaboot just says "unsupported", when I've pointed it at /dev/sdd2 (this how Debian installer set drive). OF path is quite long for this drive (something like /ht/pci@6/LSILogic,sas@0/disk@1:1 ... and so on, can't remember it correctly). SAS controller is visible by OF, obviously :).
 
@Tratkazir_the_1st In the past, I have also been unable to get Yaboot to install onto an external device, in my case being a USB stick. Unless there is some kind of workaround, I don't believe external installations are supported.

I can't remember if I've tried GRUB or not, so that's up for debate.
 
@z970mp
Yaboot is dumb and wretched, compared with GRUB2. I've at last made it!!! (Yes, I'm stubborn donkey :D).
Most of time took determining of OFpath to drive + writing working command for boot in ofboot.b.

First screen - drive wwith GNU & small SCSI icon is Debian drive. Second - obviously GRUB2 itself (Suse & Gentoo wouldn't boot this way, side effect of os-prober package autoinstalled, but let it be for now). Third screen is a bit of side effect, too. It's display, connected to second videocard in Quad, Radeon R7 360, which I installed for tests (want to try fireup amdgpu, my primary PC & gentoo works with that really well). When Mac starts, it's main display is Apple Cinema 20" at his native GeForce6600LE :).

Main part of job to make it boot from OF for the beginning was made from Debian Rescure Shell, booted from NetInstall USB (Now I'm always remappnig alias of cd tousb flash or firewire DVD to make it boot without dinding config for yaboot or similar troubles). What been used for this to make it work: MorphOS wiki (https://library.morph.zone/Open_Firmware), Gentoo wiki for Grub2 at PowerPC (https://wiki.gentoo.org/wiki/GRUB_on_Open_Firmware_(PowerPC)), my own stubborness ( :D ) & some time :).

boot /ht/pci@6/LSILogic,sas@0/disk@7:,\grub\grub.img - this what makes it boot from ofboot.b, from gentoo article.

Next stop - OpenSUSE! :D
 

Attachments

  • IMG_20201015_204557.jpg
    IMG_20201015_204557.jpg
    371.7 KB · Views: 291
  • IMG_20201015_203647.jpg
    IMG_20201015_203647.jpg
    675.2 KB · Views: 232
  • IMG_20201015_221209.jpg
    IMG_20201015_221209.jpg
    681.8 KB · Views: 295
Add-on (after packages upgrade). It is HIGHLY RECOMMENDED to set grub2 packages on hold (aptitude hold ~igrub) BEFORE issuing "aptitude upgrade" (or apt/at-get). Got unbootable Debian, when grub packages upgraded from 2.02 to 2.04. Just recovered system.
 
Through various conversations and attempts, I am starting to wonder if I should go back to installing Debian SID with the grub installer. I loaded Debian SID using yaboot and once I attached a DVI Montor to the Radeon 9600 card I was able to see that it loaded and works properly. I had been relying on an Apple Cinema Display (my go to monitor for the G5) but never made it to the login screen when I used the grub bootloader. I may trying installing Debian Sid using grub and the DVI monitor throughout the process to see if it loads. I would do this assuming it would make my 20" ACD work (as well as the wifi. Debian is the first distro I have installed where the packages for wifi loaded and worked. (apple extreme card BCM 4306 Rev3).

Based on your previous posts to me, I'm hoping to load the firmware-amd-graphics package as part of the install and hope it makes the 20" ACD work.
 
After you install the updates there is no difference except the bootloader. Yaboot let's you boot multiple OS's while grub for powerpc does not.

Cheers
 
ya, I figure I'll need to use the option/alt key to select a startup drive but that's the least of my concerns. I do like the Yaboot choices at startup. I'm just trying to figure out why the 20" Apple Cinema Display won't/isn't working when the DVI port from the same card does. It's worked with other Linux distros but for some reason Debian doesn't like it (the ACD).
 
Here's a potential fix, a long shot but when dealing with GPUs there always seems to be a nuance. At the end of the swamprock/wicknix Debian install text, there is a final step where you get to install a desktop. I used the example " apt install lxdm lxde gdebi synaptic" and then rebooted, that's when the G5 crashed and burned (ok, the display went black but the DVI monitor worked fine). Should I use a different command for a desktop the ACD might like? What would that look like? apt install xfce lightdm gdebi synaptic?
 
I went back and looked at the Install.txt instructions and I had made a note on the instructions that the firmware-linux-nonfree package wasn't available, no candidate. I'm at that step right now, waiting on the previous step to complete. It finished while I was drafting this, so here it goes...well that's encouraging, it's loading packages. Will keep you posted.
 
Epic fail! 😟

Could never get out of Grub tty1 (unless I wanted to go to tty2-#) Going to try to install Debian Remix again using yaboot loader.
I'll stop trying when I get the ACD working or when it's time to plant my garden!!!
 
I was able to do a better install of Debian Remix onto the G5. No issues with any of the additional sources, all package loads appeared to go well. Rebooted with the DVI monitor attached and desktop appeared as expected. Disconnected the DVI and attached the Apple Cinema Dispay, it started to boot up, no failures appeared during the process, then screen went black and unresponsive.

Is there some sort of command I can place at the yaboot prompt after "Linux" that would coerce the display to work? Like "radeon agpmode=-1" or something similar?
 
1. Download the newest netinstall CD image from:

(http://cdimage.debian.org/cdimage/ports/)


------------------------------------------------------------------------------------------

6. When you're prompted to choose an archive mirror, scroll all the way up to the top of the list, choose 'enter information manually', then enter 'ftp.ports.debian.org' for the mirror, and '/debian-ports/' for the directory.

I don't have permission to update the WikiPost, so I'm just commenting on the above 2 steps: #1 and #6

1. This URL should really be https://cdimage.debian.org/cdimage/ports/snapshots, as the original link will give you an image that has all the original problems, like the broken repo setup and the lack of gpg keys to make ftp.ports.debian.org work.

6. The connection to ftp.ports.debian.org will fail if you're using the original install CD because the gpg keys are not present. To fix it you have to do this:

Code:
1. Alt + F2
2. chroot /target
3. echo "deb [arch=all] http://ftp.debian.org/debian/ unstable main contrib non-free" >> /etc/apt/sources.list
4. apt update
5. apt install debian-ports-archive-keyring
6. Alt + F1
 
Thanks, hope this helps. But how do I turn all of theses files/folders into a CD. Which files do I burn to the CD. I have an "installer" folder full of files. Which one(s) do I burn to the CD to make the installer? There are more tar.gz files inside of other folders. Totally lost here but thank you for the updated files because I did run into the very problems you mentioned in your post!!!!
 
Thanks, hope this helps. But how do I turn all of theses files/folders into a CD. Which files do I burn to the CD. I have an "installer" folder full of files. Which one(s) do I burn to the CD to make the installer? There are more tar.gz files inside of other folders. Totally lost here but thank you for the updated files because I did run into the very problems you mentioned in your post!!!!
I'm not sure who you're replying to. I don't know how to use those "installer" files. I would download and write this file to a CD: https://cdimage.debian.org/cdimage/ports/snapshots/2021-02-02/debian-10.0.0-powerpc-NETINST-1.iso. It appears to be the most recent one.
 
Son of a BIOS!!! Thanks to all who have helped this computer hack (not a hacker, I'd have to learn a lot more than I know right now to do that) in helping me breathe new life into my old Newworld Macs. The debian link provided by Bill.Chatfield (https://forums.macrumors.com/members/bill-chatfield.1262989/) loaded onto my Quicksilver G4 very cleanly and booted first time up!!!
Next experiment will be to get the wireless card (airport) to work. Note that I never got it to work in OSX. I'm currently hard wired so it's not a big deal but it would say something about Linux being more functional than OSX. Driving dual monitors (an HP and a Dell left over from my wife's older Windoz machines) off a Radeon GPU.

This G4 now has Linux 16.04 Remix, Debian, OSX Tiger and OSX Panther spread out over 4 separate HDs. More later but THANK YOU, wicknix, Bill.C and swamprock and many others!!!!!

MacMav855

aawwwh, update: screens went to sleep now they have a pink hue to them, not a show stopper, just an update.
 
Last edited:
  • Like
Reactions: Raging Dufus
I report here my installation experience of Debian on a PowerMac G5 dual-core (model : 11.2 with Nvidia GeForce 6600 LE).

I wanted a distribution with an installer and a recent system. I wanted to try MintPPC but the article pointed to the Debian netinstall ISO so I started with that.

So the ISO file is « bullseye/sid – kernel 5.10.0 » from « 2021-02-02 » subdirectory.

I booted in from USB key and chose « default » installation.

Then I had to choose between « lightddm » and « ssdm ». I chose the former. Here first question : is there a recommended choice ?

Installation went well but I had an error when rebooting : « Timed out waiting for device /dev/sdb2 ». I edited /etc/fstab and replaced « /dev/sdb2 /boot/grub hfs defaults 0 2 » by « /dev/sda2 /boot/grub hfs defaults 0 2 »

After a new reboot, that booted but had wrong colors, and had to enter my login and password several times.

I found somewhere (after I started to look for compatible PCIe Radeon cards!) that I had to install :
apt install xserver-xorg-video-nouveau

That seemed to fix bad colors (even saw transparency in the console windows) but after that came back from the screen blanker, I had many artifacts.

I switched to Mate and it seemed good. I had to disable xscreen-saver-de in … System/Preferences/Internet and Network !

I wanted to check hardware acceleration, so to run glxinfo, not installed by default (done with « apt install mesa-utils »). Acceleration is confirmed.

From an application perspective, I tried Firefox and it crashes.
It seems I have no audio. I didn’t check video even if I was able to install mplayer and vlc.
I was able to compile and run ScummVM (OpenGL games like Escape From Monkey Island or Grim Fandango have broken colors).

So, at the end, I expected to face a worst situation (except some interface freeze after login).

Few questions though :

1. Is there a better choice between lightddm and ssdm (the installer asks for a choice)

2. If there a Desktop environment that works better ? Mate is good for me, but I am open to others (maybe not xfce that is really basic)

3. Do you think the « GeForce 6600 LE » will cause problems ?

4. Should I disable compositing in the window manager ?

Other advices are welcome. I would like to group information.
 
#1) Personal preference really. I use lightdm or lxdm the most.
#2) Again, personal preference. I tend to go more minimal like LXDE or IceWM. Anything light to keep ram use down.
#3) Nvidia cards are a crap shoot in PPC Linux. Some work, some don't, and some kind of work. The artifacts you see are more than likely a kernel 5.x issue. Try installing one of the 4.x kernels and see if that helps. 4.x kernels solved numerous issues on my G5 with both Debian and Void.
#4) If compositing is enabled and window dragging / resizing is slow, then yes. Otherwise it should be fine. I don't use a compositor on powerpc linux because its a waste of resources and cpu cycles on already hampered old machines.

On a side note firefox 52 is very crash prone. Use something like Arctic Fox instead. For sound install qasmixer and select your card from the devices menu and unmuting PCM should give you sound.

Cheers
 
Thanks wicknix for the feedback!

1. Ok, keeping the default choice (lightdm) is good for me
2. My question was not about personal preference but about stability (saying that, lxqt crashes opening), graphical issues
3. Ok. After further tests, it seems that the card does not cause specific problems. I thought that I had a problem with mate which menus disappeared but in fact, that was solved by "mate-panel --reset". I want to keep recent kernel because I also want to test and report with the hope to contribute getting a better support in Debian or Void (not tried again to install). Severe artifacts went away when I disabled the screen blanker.
4. I disabled mate compositing because I had light artifacts at the top left corner, moving the mouse pointer over the menu labels
5. Thanks, I downloaded it and it works well so far.
6. Sound was in fact working, but disabled by default.
7. Also tested video with VLC and plays a 480p video at less than 50% of CPU

So it seems this machine should do the job for a development machine with recent Linux and expansion capabilities.
 
So it seems this machine should do the job for a development machine
Sure. There are very few things you cant do with Linux. It again really just comes down to what the user wants. I still run ubuntu 12 on my dual G5 and my powerbook G4 because its fast and stable. On the powerbook the 3.x kernels still had proper working suspend / resume, and proper working keyboard backlight / volume controls. I gave up on newer (more unstable) distros for something that just works. I do have Void and Ubuntu 12/16 on my other G5, but those are just used for compiling arcticfox, interweb, faded orb, etc browsers.

Cheers
 
That's true, we can do almost everything with Linux ... except that it may become very complicated on PPC, depending on models, graphic cards, required features (suspend / resume, multiboot with the question of Grub, etc.). As you say, there are advantages to use polished distributions like Ubuntu Remix (thanks for that, I installed it last year on an iMac G5 and unfortunately not tested and used much).

The Debian installation has made me diving again into this topic on Linux PPC (I also has Ubuntu 16 on my X1000 with some constraints) and that helped me to clarify what I need and what I want to do. I did read all Linux topics on this site and collected much information! I have to say I wonder what should be the strategy for the future (on which machines and distributions should we concentrate the effort?) but that's another topic.

For now, I think I will focus on Debian and Void (last year, I thought it was too expert oriented but I see it now as a good challenger, with dynamic support, innovative ideas, ...). Even if I face some issues, I hope I will be able to contribute.
 
  • Like
Reactions: wicknix
DISCLAIMER: This guide is provided with the hope that it will prove useful and has been tested for a handful of G3s, several G4s, and most G5s. Overall, your millage may vary.

This is a WikiPost, so if anyone has any contributions, feel free to contribute. @z970mp deserves all of the credit for keeping this information up to date. I'll continue to eye the thread and help out as much as I can.

NOTICE: As Sid = unstable, the installer may at times prove to be unpredictable and may fail for any reason at any point along the way. These instructions are not guaranteed to make your installation a success, and remember to always back up your data before making any changes to your hard disk and its partitions.


Thank you.

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Installing Debian Sid on PowerPC Macs - Updated: July 30, 2019

1. Download the newest netinstall CD image from:

(http://cdimage.debian.org/cdimage/ports/)

1a. Note: The 'powerpc' ISOs will work across G3s, G4s, and G5s. The 'ppc64' ISOs will only work on G5s, and will take the most advantage of the G5 hardware, making both the kernel and userspace fully 64-bit, as opposed to the 32-bit userspace powerpc variants. The catch is that as of May 2019 (last checked), the ppc64 environments are fairly buggier than their powerpc counterparts, so you'll need to be prepared to file a couple simple bug reports with the 'reportbug' package. Otherwise, choose the powerpc ISO.


------------------------------------------------------------------------------------------

2 (On A Linux System). Open a terminal and copy / paste the following text, then edit according to how many HDs you have installed:

sudo dd if=~/Downloads/debian-10.0-powerpc-NETINST-1.iso of=/dev/sdx

(use sdb if one HD is installed, use sdc if two HDs installed, etc.)

Once sdx has been correctly edited, hit Enter, and wait for it to finish, which should usually take around 5 minutes.

2a. Alternatively, you may boot from a CD, but this method can be wasteful, and installation will be slower.


------------------------------------------------------------------------------------------

3. Reboot, and hold Cmd + Opt + O + F at the chime (or Caps Lock light). Usually, you're going to be giving Open Firmware the same command:

boot usb0/disk@1:,\\grub.elf

If 'usb0' doesn't work, try 'usb1', then 'usb2', 'usb3', etc.

------------------------------------------------------------------------------------------

4. The GRUB bootloader will come up. Hit Enter for a default install.

------------------------------------------------------------------------------------------

5. Connect your Mac to your network via Ethernet, then follow the very straightforward prompts. For partitioning, use 'Guided - use entire disk' and 'All files in one partition' for easiest installation. Note that this will destroy any previous system installs on the selected disk, so be sure that you want to do this before proceeding.

------------------------------------------------------------------------------------------

6. When you're prompted to choose an archive mirror, scroll all the way up to the top of the list, choose 'enter information manually', then enter 'ftp.ports.debian.org' for the mirror, and '/debian-ports/' for the directory. When manual package selection comes up, install 'Standard System Utilities' and 'SSH server' when prompted (An asterisk will be present next to the Standard System Utilities choice. If it isn't, press the Space Bar to select it, then Tab to move to the Continue prompt), and make sure nothing else is selected for now. Choose 'yes' when you are asked if you want to install Popularity Contest, because we want the developers to know that the powerpc / ppc64 port is actively used.

6a. If you are on a G3 / G4, there is a chance that GRUB installation may fail. If this is the case, press Esc after you are told GRUB installation has failed. Choose 'Continue without bootloader', confirm, and once you are given the dialog to remove your install medium and reboot, do not hit Enter. Instead, press Alt + F2 (Alt + Fn + F2 on some keyboards), and input the following commands in order:

Code:
1. chroot /target
2. mount -t sysfs none /sys
3. apt install hfsutils
4. yabootconfig -b /dev/sda2
5. ybin
6. Alt + F1

------------------------------------------------------------------------------------------

7. Once installation is complete, your disc (if you used one) will eject, and you will be told to remove your installation medium. Do so, and select 'continue' to reboot your system.

------------------------------------------------------------------------------------------

8. Once your system reboots, log in with your credentials.

------------------------------------------------------------------------------------------

9. Type sudo apt edit-sources and press Return. Enter your password if necessary.

------------------------------------------------------------------------------------------

10. Delete the CD line (hold Ctrl +K). Now add the Ports repositories:

Code:
# Sources
deb http://ftp.ports.debian.org/debian-ports/ unstable main
deb http://ftp.ports.debian.org/debian-ports/ unreleased main
deb http://incoming.ports.debian.org/buildd/ unstable main

# Non-Free (add this if you have an ATI GPU)
deb [arch=all] http://ftp.debian.org/debian/ unstable main contrib non-free

------------------------------------------------------------------------------------------

11. Press Control-X, answer Y, and press Return.

------------------------------------------------------------------------------------------

12. Type 'sudo apt update' and let the repos update.

------------------------------------------------------------------------------------------

13. If you've got an ATI GPU, install the non-free firmware by typing 'sudo apt install firmware-linux-nonfree'. If you have an Nvidia GPU, you are now finished with installation.


------------------------------------------------------------------------------------------

14. Type 'sudo reboot' and let your machine reboot to be sure everything is stable with the non-free video firmware. You'll find yourself back at your login prompt. Log in with your username and password.

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Congratulations! This covers the installation of a base system with most everything needed.

You can now drop by The PowerPC Linux Wiki to grab a desktop environment, enable Wi-Fi, get some awesome speed tweaks, and follow easy configuration pointers so you can get settled in to your new system.

Hi @swamprock and thank you for this awesome tutorial... I'll admit I have been a bit lazy in these last weeks... With this I would be finally able to get Debian Ports on my iBook G4. I don't have a modern Mac, so I was wondering, Step 11: it is possible to do it with a PowerPC Mac or with a Windows PC?
I wish Step 13 was true. I have a G4 with an Nvidia Geforce4 MX 420 Rev a3. My install used Yaboot and went very well. Rebooting with nomodeset got me to a terminal screen where I was able to edit the source repos (using [trusted=yes] on all of them), DID NOT use the source for ATI GPUs per instructions you provided. Once the update/upgrade was completed, I rebooted, no boot parameters entered, and it booted to a black screen with no access to terminals (or anything for that matter). I am having a devil of a time trying to figure out what's needed to get to a functional GUI.

Are there boot parameters I can enter to trigger the required frame buffer?

I've tried video=ofonly, video=offb:eek:ff with a fb such as nouveau, riva, nvidia and working toward using nv next. I have had other distros run on this machine successfully, granted they were older and not as functional as Debian. There has to be some sort of clue to that being the case.

Can a GUI be launched from a terminal screen?

I figure if this is true, I can get to a terminal and launch the GUI from there. Not the worst workaround I've ever encountered. One of the reasons I need access to the GUI desktop is to see if it can be manipulated (if necessary) to be as sharp as possible.

Understand the Nvidia card is driving an Apple cinema display and does have a DVI port I have not tried since this most recent install. I will try that later today, this may be a viable option but not the one I'd prefer.

Any ideas?
MacMav855
(yes, you and wicknix have been helping me A LOT)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.