# The IPL, the other firmware, and how the board boots without reading any of it **Rule (charter, licences point 9; this repository's README):** Nintendo's IPL, the DSP's ROMs and the drive's firmware are identified by SHA-1 only. They are never copied, committed, traced, disassembled or read by anyone working on this repository. A player's own copy may be loaded at run time, found by SHA-1. ## What firmware the machine has | Firmware | Size | Where it runs | Census (census_bios.py, 2026-11-26) | | --- | --- | --- | --- | | IPL ("boot ROM", "BIOS"): the bootstrap, the Dolphin OS and the menu, scrambled, plus fonts, in the Macronix IPL/RTC chip on EXI channel 0 | 2 MB | the Gekko, from 0xFFF00100 at reset | 7 retail images (NTSC 1.0, 1.1, 1.2 in two board revisions, PAL 1.0 and 1.2, MPAL 1.1) and 4 development/NPDP images: all 11 present | | DSP instruction ROM | 8 KB | the DSP, from its reset vector | present (MAME's `gcjp` set) | | DSP coefficient ROM | 4 KB | the DSP's data space | present (MAME's `gcjp` set) | | DVD drive firmware | 128 KB | the drive's own controller | 5 images (four retail drive revisions, one NR reader): all present | SHA-1s and sources are in `scripts/census_bios.py` (the Redump BIOS datfile, 16 entries, 2021-09-18; `mame -listxml`, MAME 0.285) and the run's output in `tests/detectors/census-firmware-2026-11-26.txt`: **19 of 19 known images present**, every one seen in Redump's dumps, MAME's sets or both. MAME's `gcjp` names the NTSC 1.2 image `ipl_ntsc_v12.bin` with the SHA-1 Redump gives `gc-ntsc-12-101` (the DOL-101 board); the DOL-001 NTSC 1.2 image (`96f69a21`) is Redump's only. ## How the IPL is protected (YAGCD 2.8; Copetti "Boot process"; DOC, community) - The IPL is stored **XOR-scrambled** with a keystream, the same for every revision (YAGCD 2.8, 2.8.2). The IPL chip's own logic descrambles the first part (the bootstrap) as the CPU reads it at reset; Flipper's EXI descrambles the rest as the bootstrap copies it to RAM (Copetti). YAGCD 2.8.1 describes a bug in the descrambling logic that let the cleartext be read (how the IPL was first dumped and replaced). - **To run a player's real IPL, the board must implement the descrambler**: hardware behaviour (the cipher is a fact, YAGCD 2.8.2 and segher's descrambler credited in Copetti's sources), not firmware. The specification implements it from its description and checks it only against the player's image at run time (the descrambled bootstrap's known entry must decode; HYPOTHESIS on the check). ## Booting without the IPL (the default) The IPL's job for a game, at the level the game can see, is: initialise the hardware, set the Dolphin OS globals in low memory (YAGCD 4.2 marks each global "B" when the boot ROM or IPL sets it, "A" when the apploader does), read the disc's apploader (disc offset 0x2440; YAGCD 13), run it, and jump to the DOL entry point it returns. The board's **skip-IPL boot** does that directly: 1. hardware registers in their post-IPL state (the state is a list in the specification, each value with its evidence; most will be HYPOTHESIS until compared against a run of a real IPL, see below); 2. the low-memory globals YAGCD 4.2 marks "B" (memory size, console type, bus and CPU clocks, the arena bounds, the boot info), from YAGCD's table; 3. the disc's apploader loaded and run on the emulated CPU (it is disc code, run as the game would run it), then the DOL entry point. This is a **functional model of firmware** (charter, axis B: "firmware and BIOS ... functional"), not a concession, provided it is judged against a lower-level run where one exists: here, the board running the player's own IPL to the same point (the apploader's entry), comparing every register, every low-memory word and every hardware register. That comparison needs no one to read the IPL: it compares states. It is rung M3's exit test when the player's IPL is present (tests skip without it). The skip-IPL path also avoids the IPL's own boot animation and menu (several seconds of emulated time the Python specification cannot afford: domains-and-speed.md). ## Free replacements, and why none is used now | Replacement | Licence | Standing | | --- | --- | --- | | ogamespec/gc-ipl, "Open Source GAMECUBE IPL" (and redolution/gc-ipl, "kept for backup purposes") | **no licence** on GitHub (checked 2026-11-26) | closed box only; not fetched | | OffBroadway/cubeboot, "GameCube IPL components for FlippyDrive" | GPL-2.0 | closed box only; not fetched | | Dolphin's free DSP ROM ("Dolphin's free DSP rom", cited by Pokechu22's Ghidra spec) | GPL (Dolphin) | closed box only; could be built and loaded from emu-tools-gpl (open decision 5) | A clean-room DSP IROM and a clean-room IPL-equivalent (the skip-IPL boot above is already one, for games) are the family's routes, as Cult-of-GBA's BIOS was for the GBA.