After my previous article on this installation on MacMini G4, I wanted to add information for comparison with a ppc64 image. This is also the opportunity to collect and share (even for myself) useful information. And also better understand behaviours about GPU acceleration.

With its form factor, the iMac G5 has a builtin graphics card, that is in my case Nvidia GeForce FX Go5200.

Download and installation

I downloaded the ppc64 image among a set of Debian images provided in June 2026 to test. Then I wrote it in a USB stick with sudo dd if=/home/mathias/Downloads/debian-13.0.0-ppc64-NETINST-1.iso of=/dev/sdb.

On the iMac, the USB stick initially plugged in the third USB port (from the top) was not recognized. I had to choose one of the upper ports. Then I powered the machine maintaining these 4 keys: Win + Alt + O + F. The early boot stops and I had to write an extra long path: /ht@0,f2000000/pci@2/usb@b,1/disk@1:,\boot\grub\powerpc.elf (use dev / ls to list the device tree), as there were no matching alias listed by devalias.

I chose the Default install, asking for the whole disk with all in the same partition. I installed LXDE that is the one that works correctly on PowerPC machines.

The installation itself went well. After the required reboot, I was able to log in and start using Linux 7.0.14. A quick check with dmesg reported that the nouveau driver and the b43 driver were not installed: more in their dedicated sections.

Upgrade and install packages

Like on MacMini, I tried to install all these packages:

apt install hfsprogs strace mesa-utils fastfetch meld linux-perf gedit curl

apt install caja

apt install git gcc g++ build-essential clang subversion automake make cmake \
  meson libsdl2-dev libsdl2-image-dev libopenal-dev cppcheck cppcheck-gui

apt install netsurf-gtk abiword ffmpeg-gui vlc gimp scummvm darkplaces

They all succeeded to install except two:

  • ffmpeg-gui: Package ffmpeg-gui is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
  • abiword: It has unsatisfied dependencies, including libgoffice-0.10-10

GPU support and acceleration

The main source of stress is about the graphical layers independently supported and working together.

Check that GLX module is loaded by Xorg

Looking at X.org log, I found:

(II) LoadModule: "nouveau"
(WW) Warning, couldn't open module nouveau
(EE) Failed to load module "nouveau" (module does not exist, 0)
(II) LoadModule: "nv"
(WW) Warning, couldn't open module nv
(EE) Failed to load module "nv" (module does not exist, 0)

So, nouveau was not installed by default, I had to run apt install xserver-xorg-video-nouveau.

The driver is there: /usr/lib/powerpc64-linux-gnu/dri/nouveau_dri.so. It contains (in this unique file) the Gallium drivers for NVIDIA GPUs, including nv30 for the GeForce FX. It is also listed within lsmod results.

Let’s check that GLX is loaded:

# grep -E "(glx|GLX)" /var/log/Xorg.0.log
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
(==) NOUVEAU(0): GLX sync to VBlank enabled.
(II) Initializing extension GLX
(II) AIGLX: Loaded and initialized nouveau
(II) GLX: Initialized DRI2 GL provider for screen 0
(II) AIGLX: Suspending AIGLX clients for VT switch
(II) AIGLX: Resuming AIGLX clients after VT switch

We see that DRI2 is used and DRI3 does not even appear …

Check which driver is used

We expect nouveau, and that’s hopefully it:

# grep -E "(nouveau|modesetting|fbdev|vesa)" /var/log/Xorg.0.log
(II) NOUVEAU(0): [DRI2]   DRI driver: nouveau
(II) NOUVEAU(0): [DRI2]   VDPAU driver: nouveau
(II) AIGLX: Loaded and initialized nouveau

We also see that the 2D acceleration method EXA is enabled.

Check the direct rendering

Let’s check that the DRM device exists:

# ls /dev/dri/
by-path  card0	renderD128

They exist so that’s another good point. We could also check with dmesg | grep -i nouveau that the kernel driver is loaded and initialized correctly.

Check the GLX libraries

Run dpkg -l | grep -E 'mesa|glx|libgl' and at least libgl1-mesa-dri, libglx-mesa0 and mesa-utils should be installed.

Check the X extensions

Run xdpyinfo | grep GLX. If it displays GLX, then X exposes the GLX extension. Again, it is good!

Let’s summarize

So it is very frustrating because there is no major defect … but even if MESA supports this GPU, it misses modern features that are used in recent MESA versions with DRI3. I built version 21.3.9 and with it, the acceleration was enabled but there were drawbacks and even crashes. I wanted to try version 24.3.4 but did not go beyond the first compilation error.

Let’s stay with this situation:

$ glxinfo -B 
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa (0xffffffff)
    Device: llvmpipe (LLVM 22.1.8, 128 bits) (0xffffffff)
    Version: 26.2.4
    Accelerated: no
    Video memory: 1921MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2

To keep more information about this model of iMac G5:

$ lspci -nnk | grep -A5 -Ei 'VGA|3D|Display'
0000:f0:10.0 VGA compatible controller [0300]: NVIDIA Corporation NV34M [GeForce FX Go5200] [10de:0329] (rev a1)
	Subsystem: NVIDIA Corporation Powerbook G4 [10de:0010]
	Kernel driver in use: nouveau
	Kernel modules: nouveau
0001:00:00.0 Host bridge [0600]: Apple Inc. U4 PCIe [106b:0056]
	Kernel modules: uninorth_agp, macio_asic

A last X fix as we are here

I gave up about 3D acceleration but I looked at how this annoying message about EDID polluted the system logs:

nouveau 0000:f0:10.0: drm: DDC responded, but no EDID for TV-1
EDID block 0 is all zeroes
nouveau 0000:f0:10.0: drm: DDC responded, but no EDID for TV-1
EDID block 0 is all zeroes
nouveau 0000:f0:10.0: drm: DDC responded, but no EDID for TV-1
EDID block 0 is all zeroes
nouveau 0000:f0:10.0: drm: DDC responded, but no EDID for TV-1
EDID block 0 is all zeroes
nouveau 0000:f0:10.0: drm: DDC responded, but no EDID for TV-1

After a search and a test modifying the boot command, I added it permanently:

sudo nano /etc/default/grub
Update the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet video=TV-1:d"
sudo update-grub

Wi-Fi

And it also reminds that the Wi-Fi driver is not installed:

b43 ssb0:0: Direct firmware load for b43/ucode5.fw failed with error -2
b43 ssb0:0: Direct firmware load for b43/ucode5.fw failed with error -2
b43 ssb0:0: Direct firmware load for b43-open/ucode5.fw failed with error -2
b43 ssb0:0: Direct firmware load for b43-open/ucode5.fw failed with error -2
b43-phy0 ERROR: Firmware file "b43/ucode5.fw" not found
b43-phy0 ERROR: Firmware file "b43-open/ucode5.fw" not found

So I followed these instructions:

apt install firmware-b43-installer

modprobe -r b43 ssb bcma
modprobe b43

dmesg | grep -i b43

After that, I had to go to the settings panel Advanced network preferences and create a new connection. After it was saved, the Wi-Fi connection worked perfectly even if it looked very slow (browsing, updating packages …).

Tests per category

This is below a report per category of the tested applications.

System

I had a better experience that on MacMini: USB stick mounted automatically (a bit surprisingly in /run/media/mathias/), no color corruption coming back to the session after a session lock screen, once in Wi-Fi the wired connection is activated when the cable is plugged in …

However, the fan is noisy and the cpufreq does work, unfortunately. In theory, it accepts 2 frequencies: 900000 and 1800000. It also has 2 governors: performance (default) and ` schedutil`. Even setting the second one, the frequency always stays at its maximum.

On apt update, I had the message Skipping acquire of configured file 'main/source/Sources' as repository 'http://deb.debian.org/debian-ports sid InRelease" does not seem to provide it (sources.list entry misspelt?). In /etc/apt/sources.list.d/debian-ports.sources, I had to remove deb-src in the line Types: deb deb-src. To be able to use sources packages, and because they are at the Debian level and not Debian ports, I created a new dedicated file /etc/apt/sources.list.d/debian-sources.sources with this content:

Types: deb-src
URIs: http://deb.debian.org/debian/
Suites: sid
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Development

After few months and several runs of apt upgrade, the system comes with gcc 16.2 and clang 21.1. I wanted to test more development tools and build few projects but there is no reason to have big surprises in this area. Tried a simple perf stat command: looks quite good except the 177 % of branch miss rate. If I remember well, it has been the case for a long time.

One of the interests on this system is the possibility to contribute to packages. I started to read information about that and one of the first thing is to access the sources of each package, what I did in the previous section. I started to investigate but it is not straightforward so it will deserve a specific article.

OpenGL

With DRI3 forced and so NV34 renderer activated, vblank_mode=0 glxgears runs at 522 FPS. I switch back to the default version and settings due to many drawbacks in real applications.

Games

I tried several games like ScummVM (with Broken Sword 2 and Flight Of The Amazon Queen) and SDLPoP that work well. I In the other sides, 3D games are not playable, like Darkplaces and even Chocolate Doom or Crispy Doom … due to the software rendering.

Video

I should have prepared better some videos of different formats and resolutions. But basically, I can say that mplayer and VLC and mpv work even if the display has some drops on 720p videos. It was better when I had the opportunity to test mesa-21.3.9 … that had other drawbacks.

Audio

It works playing mp3 files with the very basic LXMusic.

Internet

A word about several candidates for this touchy topic:

  • Netsurf: It works but with its own limitations.
  • ArcticFox: I downloaded and installed the latest G3 version (Note that the G4 version crashes). It works but it may be so slow that it is for example not really usable with GitHub.
  • Firefox: It has packages firefox-esr (version 128.4) and firefox (version 146.0) but they fail to be installed due to dependencies that can’t be installed: libevent-2.1-7t64 and libvpx9 …

Conclusion

The experience on the iMac G5 was rather good even if they are few big missing things: GPU acceleration and a good Internet browser. It could have been a nice solution with its 2 GB RAM and its compact and pretty form factor. But let’s provide more details:

  • Installation works with no problem and this is the same with system upgrades and kernel updates (except a GRUB update).
  • The system is stable and more reactive than the MacMini G4, no problem on package updates … powerful enough to play some ScummVM games or some videos.
  • The fan is noisy and the cpufreq feature does not work.
  • Firefox not available, no ArcticFox for ppc64 so I had to use the powerpc version, installing manually the required libraries.
  • Still no 3D acceleration, even with much effort, with the GeForce 5200, we are in an in-between situation.
  • There were annoying EDID errors in system logs, but easy to fix (with an option in the kernel boot command).
  • There is some room for investigation on firefox and mesa, quite hard though.
  • MATE installation went well but the desktop is completely corrupted (not possible to open the desktop).

Annexes

Data below provides information that I want to keep easily accessible from the website, even if it contains many details that are not directly useful for the overview.

perf stat

$ sudo perf stat -a sleep 10
 Performance counter stats for 'system wide':

               934      context-switches                 #     92,9 cs/sec  cs_per_second     
         10 052,46 msec cpu-clock                        #      1,0 CPUs  CPUs_utilized       
                 0      cpu-migrations                   #      0,0 migrations/sec  migrations_per_second
               517      page-faults                      #     51,4 faults/sec  page_faults_per_second
       154 075 304      branch-misses                    #    117,5 %  branch_miss_rate
       131 077 227      branches                         #     13,0 M/sec  branch_frequency
     1 850 882 439      cpu-cycles                       #      0,2 GHz  cycles_frequency
       654 976 145      instructions                     #      0,4 instructions  insn_per_cycle

      10,051933704 seconds time elapsed

glxinfo with DRI3

With option DRI3 enabled, we get:

$ glxinfo -B
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa (0x10de)
    Device: NV34 (0x329)
    Version: 26.2.4
    Accelerated: yes
    Video memory: 57MB
    Unified memory: no
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 1.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 0.0
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 46 MB, largest block: 46 MB
    VBO free aux. memory - total: 102 MB, largest block: 102 MB
    Texture free memory - total: 46 MB, largest block: 46 MB
    Texture free aux. memory - total: 102 MB, largest block: 102 MB
    Renderbuffer free memory - total: 46 MB, largest block: 46 MB
    Renderbuffer free aux. memory - total: 102 MB, largest block: 102 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 57 MB
    Total available memory: 185 MB
    Currently available dedicated video memory: 46 MB
OpenGL vendor string: Mesa
OpenGL renderer string: NV34
OpenGL version string: 1.5 Mesa 26.2.4-1

MESA build

This is not the topic but at least, let’s keep some information:

sudo apt install git meson ninja-build pkg-config flex bison python3-mako libdrm-dev
sudo apt install libexpat1-dev libx11-dev libxext-dev libxdamage-dev libxfixes-dev
sudo apt install libxrandr-dev libxcb-glx0-dev libxcb-dri2-0-dev libxcb-dri3-dev
sudo apt install xcb-present-dev libxshmfence-dev libxxf86vm-dev zlib1g-dev
sudo apt install libxcb-present-dev libxshmfence-dev libxxf86vm-dev zlib1g-dev
sudo apt install libglvnd-dev libegl-dev libgles-dev libxcb-shm0-dev

wget https://archive.mesa3d.org/older-versions/21.x/mesa-21.3.9.tar.xz
tar xvf mesa-21.3.9.tar.xz

meson setup build \
    --prefix=/usr/local \
    -Dbuildtype=debug \
    -Dgallium-drivers=nouveau \
    -Ddri-drivers= \
    -Dvulkan-drivers= \
    -Dplatforms=x11 \
    -Dglx=dri \
    -Degl=enabled \
    -Dllvm=false

ninja -C build -j1

sudo ninja -C build install
sudo ldconfig

GRUB update

Running hooks in /etc/ca-certificates/update.d...
done.
Traitement des actions différées (« triggers ») pour libc-bin (2.43-6) ...
Des erreurs ont été rencontrées pendant l'exécution :
 grub-ieee1275
Erreur : Sub-process /usr/bin/dpkg returned an error code (1)


Paramétrage de grub-ieee1275 (2.14-4) ...
Installation pour la plate-forme powerpc-ieee1275.
grub-install : erreur : impossible d'ouvrir « /boot/grub/locale/hu.mo » : Le fichier existe.
Failed: grub-install --target=powerpc-ieee1275 
WARNING: Bootloader is not properly installed, system may not be bootable
/usr/sbin/grub-mkconfig: 275: cannot create /boot/grub/grub.cfg.new: File exists
dpkg: erreur de traitement du paquet grub-ieee1275 (--configure) :
 old grub-ieee1275 package postinst maintainer script subprocess failed with exit status 2

On a second run of `apt upgrade`:

Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 2
  1 not fully installed or removed.
  Space needed: 0 B / 219 GB available

Continue? [Y/n] 
Setting up grub-ieee1275 (2.14-4) ...
Installing for powerpc-ieee1275 platform.
Installation finished. No error reported.
Generating grub configuration file ...
Found background image: .background_cache.png
Found linux image: /boot/vmlinux-7.2.8+deb14-powerpc64
Found initrd image: /boot/initrd.img-7.2.8+deb14-powerpc64
Found linux image: /boot/vmlinux-7.1.4+deb14-powerpc64
Found initrd image: /boot/initrd.img-7.1.4+deb14-powerpc64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done