NewsCrawler.org

Classic Mac OS reaches the desktop on Nintendo GameCube and Wii hardware

A guest post by Rairii reports a milestone in a project porting classic Mac OS to PowerPC systems with ArtX chipsets — the Nintendo GameCube, Wii and eventually Wii U — most likely the first time since the CHRP clone era that anyone outside Apple brought classic Mac OS up to the desktop on a new system. The GameCube's Flipper chipset was designed by ArtX and was effectively finished when ATI acquired the company; the Wii's Vegas (and its later revision Bollywood) and the Wii U's Latte are straight successors. Work began on 2025-06-22 as a fork of upstream OpenBIOS, with no coding agent or LLM used and all the reversing and debugging done by the author, who came to classic Mac OS after porting NT to PowerPC Mac laptops; the port is still nowhere near a public release.

'New World' classic Mac OS boots through a bootloader called the Trampoline[1], which runs in an Open Firmware[2] environment, so the author ported OpenBIOS and reused some drivers from Goldfish64's OpenBIOS port for his Mac OS X port to the Wii; patches are applied as close to run time as possible so that mostly untouched existing CD images can eventually be used. Initial disk support came from two drivers for devices on the EXI bus, Nintendo and Macronix's name for SPI: the SD Gecko, a pass-through adapter for a GameCube memory card slot that carries SD over SPI, and the EXI-IDE, whose driver matches the author's inaccurate emulation in a Dolphin fork rather than real hardware. For early testing the 'Mac OS ROM' TBXI[3] file was placed directly on a FAT filesystem as \ppc\bootinfo.txt for OpenBIOS to load at boot, since disk images on FAT32 are capped at 4GB and later versions of classic Mac OS need more.

The Trampoline assumes a physical address space layout that does not hold on these systems: it computes an invalid buffer address and treats physical addresses from 0x8000_0000 upward as memory-mapped I/O (MMIO), even though on the Wii U that range is RAM, with holes between RAM areas partially filled by MMIO. The author patched the mapping setup to map physical address 0x0100_0000 to virtual 0xE000_0000 with length 0x1000_0000, covering the whole MMIO area plus the end of one RAM area and the start of another. The device tree[4] was reshaped into a form the Trampoline accepts: the interrupt controller is faked as the recognized little-endian model closest at register level to the Flipper interrupt controller, the framebuffer address points to an uncached virtual address, and a fake Mac99-compatible power management device was added. In the kernel, one of the unused interrupt controller drivers was sacrificed for space and patched to match the Flipper controller, with its legacy mode — raising an interrupt whenever the interrupt state changes — worked around by masking raised interrupts in the kernel and unmasking them in drivers' interrupt handlers; further patches go into the 'SuperMario' m68k code and PowerPC native executables.

Read the original virtuallyfun.comDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page