Research and development project to establish a reproducible workflow for building, packaging, validating and booting custom software on Sega/Namco/Nintendo Triforce arcade hardware.
Current milestone: The gameplay TEST → Triforce SYSTEM MENU transition is confirmed. The user also confirmed that selecting ENTER GAME TEST launches VS2002's game-specific GAME TEST mode. The v12 DOL correctly detected JVS TEST (0x80), but its generic libogc SYS_ResetSystem call did not perform the Triforce GC-AM reboot hand-off; this failure is confirmed in Dolphin 2609b. The v13 DOL replaces that call with the read-only GC-AM DI sequence used by the known-good game path: set the wake marker and saved-region metadata, read the SegaBoot apploader header at 0x2440, load the aligned secondary-apploader trailer from 0x3CE0 to 0x81300000, then transfer execution to it. CI compilation, DOL validation and packager tests pass; the v13 functional Dolphin test is pending. Build: triforce-hello-v13 CI artifact. Static analysis now reconstructs the SegaBoot side of the round trip: ENTER GAME TEST produces CApp mode flag 0x2C4=1; post-loop handler 0x8000BB50 writes that flag into a 256-byte wake buffer; 0x8001365C copies it to 0x811FFF00, registers 0x811FFF00..0x81200000 through 0x80052C90, and enters the firmware reset/shutdown path 0x80052DEC. On startup, 0x80013754 retrieves the preserved-region bounds through 0x80052C9C and restores the 256-byte state into the CApp configuration, whose first word initializes the mode flag. This shares the VS2002 game's saved-region preservation contract, but SegaBoot does not directly call OSResetSystem here. Its 0x80052DEC shutdown path calls 0x80052950, which reads the 0x20-byte apploader header from DI byte offset 0x2440 into 0x800B2A00, reads the body directly to 0x81300000, invalidates the instruction cache, and branches to the loaded apploader through 0x80052934. This is the same 0x2440 firmware-map trigger exercised by the successful v08 probe. The game-side apploader loader 0x801CB72C publishes the saved-region bounds at 0x812FDFF0/0x812FDFEC and sets 0x800030E2=1; the next startup memory-clear routine 0x801C7DAC checks that flag and clears memory around the saved interval rather than erasing it. 0x801C7F08 is separate BI2/OS initialization. The game's own apploader loader uses the same DI offset, destination 0x81300000, cache invalidation and branch-to-apploader pattern. The DI request queue, DMA registers and completion path are traced. The 0x11568-byte secondary loader at GCM offset 0x3CE0 is also disassembled: it sends GC-AM Inquiry 0x12 to clear Dolphin's firmware map, then reads the selected game's apploader at DI offset 0x2440 and loads it at 0x81200000 for the standard init/main/close sequence. The VS2002 apploader is now decoded: it returns init/main/close callbacks and loads the DOL sections. The former external-callback lead was a false positive: the game entrypoint checks low-memory 0x800030E8 (copied from BI2 DebugMonitorSize) and, for values 2/3, calls DOL-local 0x801EABD0, a MetroTRK debug-monitor setup path. The supplied BI2 has DebugMonitorSize=0 and DebugFlag=0. IPL_TRI.bin is present beside segaboot.gcm in the private reference-assets release; its SHA-1/CRC32 match the known Triforce IPL. After Dolphin's IPL descrambler, 0x7FE0ACD0 is a separate IPL string/path helper, not the game callback. The saved-region marker's complete round trip is now traced: it triggers the media-board firmware remap, is restored by 0x80013754, and the CApp constructor 0x8000C4C4 reads its first word to set this+0x2C4=1. CApp initialization uses that flag to select the CTestMain child path (0x8000EE7C) instead of the normal child (0x8000DF68), restoring the test-mode state requested by ENTER GAME TEST. One final Dolphin menu observation is needed to confirm the visible GAME TEST MENU transition. Real Triforce hardware has not been tested.
| Stage | Status |
|---|---|
| devkitPPC in GitHub Actions | Passed |
| Versioned diagnostics | v07 JVS input probe; v08 firmware-map read probe passed in Dolphin; v12 TEST-to-System-Menu candidate built and validated |
| DOL structural validation | Passed (latest build workflow) |
| Ikaruga USA source-image inspection | Passed in earlier CI run |
| Candidate GCM | User-confirmed boot in Dolphin 2609b, Triforce Baseboard enabled |
| Known-good Virtua Striker 2002 reference | Passed structural checks in reference analysis run #9 |
| Reference PowerPC static analysis | Completed; report contains section map, immediate hits and selected strings only |
| Compact raw BIN packager | Unit tests passed; defaults now mirror reference Triforce boot metadata |
| Dolphin Triforce metadata recognition | Expected title ID GEYP6E; v07 JVS probe running under Triforce baseboard |
| NetDIMM transfer protocol | Legacy Triforce uploader inspected; hardware transfer not tested |
| Real Triforce boot | Not tested |
| JVS SI input transport | PASS in Dolphin v07; valid SwitchInput response and checksum |
| Test / Service controls | PASS in Dolphin v07; Test 0x80, Service 0x40 |
| SegaBoot availability in Dolphin | Confirmed indirectly by Test bit being exposed only when GetTestMenu() is true |
| Firmware-read source switch | PASS in Dolphin v08; offset 0x0000 returned valid SegaBoot image header |
| Gameplay TEST to Triforce SYSTEM MENU | User-confirmed in Dolphin 2609b |
| VS2002 wake-marker save-region registration | Static DOL analysis confirmed: 0x811FFF00..0x81200000 |
| SYSTEM MENU ENTER GAME TEST to VS2002 GAME TEST MENU | User-confirmed in Dolphin 2609b; game-specific settings visible |
| SegaBoot menu-selection PPC trace | ENTER GAME TEST dispatch and 256-byte saved-region reset hand-off statically traced; low-level reset and post-reset DIMM reload follow-up ongoing |
The reference analysis workflow downloads the supplied Virtua Striker 2002 archive to temporary GitHub runner storage, extracts it there, and uploads only small text reports. The game image and extracted game data are not committed or uploaded as workflow artifacts.
The supplied known-good image confirms these separate identifiers:
- Disc header ID:
GVSJ8P boot.idgame ID field:SBEY- Media-board type:
GCAM - Region flags:
0x0C(Export / PAL) - Manufacturer:
SEGA CORPORATION
Dolphin constructs its six-character Triforce title ID from the boot.id fields, not from the six-character disc header. For the reference metadata, the expected constructed ID is GEYP6E:
SBEYcontributesEY- region flag
0x0CcontributesP SEGA CORPORATIONcontributes maker code6E
The corrected packager uses these reference values by default. The disc header remains GVSJ8P; do not replace it with GEYP6E.
GitHub Actions uses the official devkitPro devkitPPC container. No local toolchain installation is required. The latest build artifact contains the versioned DOL, packaging script, build information and checksums.
To package a versioned DOL, explicitly pass that DOL to the packaging script. The source GCM supplies the boot header, BI2 and apploader; the --dol argument supplies the executable placed in the output BIN. Without --dol, the script falls back to the DOL embedded in the source GCM.
For the v08 firmware-map probe, use the artifact from build run #127, which includes the corrected MEM1 key-address reads. Put candidate-homebrew.iso, triforce-hello-v08.dol and package_triforce_netboot.py in the same folder, then run:
python package_triforce_netboot.py candidate-homebrew.iso triforce-hello-v08.bin --dol triforce-hello-v08.dol
The packager validates the replacement DOL's sections and entry point, recalculates the FST position, and enforces the 512 MiB DIMM size limit.
The Virtua Striker 2002 DOL contains its own test-menu implementation and strings such as VIRTUA STRIKER 2002 TEST MENU, SELECT WITH SERVICE BUTTON, and PRESS TEST BUTTON TO EXIT. It also contains explicit JVS I/O-board error messages.
The Hello World DOL does not poll JVS inputs or implement a game test menu. Therefore, pressing Test or Service while Hello World is running is not a valid test of whether the Triforce boot environment or SegaBoot was recognized. The known-good game's menu is game code, not a generic menu that every DOL automatically inherits.
- Keep Hello World self-contained: no DVD reads, filesystem, network, Joybus input or external assets.
- Keep the GCM candidate and experimental raw NetDIMM payload stages distinct; never describe emulator success as hardware confirmation.
- Never include copyrighted IPL, SegaBoot, apploader or game data in this repository.
- Record toolchain versions, build results, image hashes and test observations.
- Distinguish emulator observations from real hardware confirmation.
A DOL is an executable, not a complete disc image. The current Hello World packager takes the tested candidate GCM, validates its FST and file extents, then builds a compact image containing the boot header, BI2, apploader and DOL with an empty root-only FST (the program has no disc/file reads). It aligns the result to 32 bytes, writes a boot.id entry and enforces a 512 MiB DIMM limit. This remains an experimental raw payload: passing Dolphin tests does not prove real SegaBoot or real Triforce acceptance.
See docs/ for research, build instructions, packaging investigation and test logs.
- https://github.com/devkitPro/libogc
- https://github.com/OpenGP-dev/OpenGP/blob/main/docs/triforce.md
- https://dolphin-emu.org/blog/2026/02/16/rise-of-the-triforce/
- https://github.com/JoshuaMKW/pyisotools
The v07 DOL replaces the passive Hello World wait loop with a diagnostic that talks to the Triforce baseboard on SI channel 0. It sends a JVS broadcast SetAddress request, then repeatedly requests one player's switch inputs through the GC-AM JVS-IO command.
The display reports:
- JVS SwitchInput response validity
- JVS system-input byte, including the Test bit (0x80)
- Player 1 switch byte 0, including the Service bit (0x40)
- Player 1 switch byte 1
This follows Dolphin's current Triforce implementation: its AM-baseboard SI device forwards GC-AM command 0x40 to JVS-IO, and JVS command 0x20 returns the system-input byte followed by player switch bytes. Dolphin's Triforce I/O adapter maps Test to system-input bit 7 when SegaBoot is loaded, and Service to bit 6 of player 1 switch byte 0.
The probe does not call OSResetSystem, change the DIMM, or write firmware. A successful input read will establish that the emulated SI/JVS input path is working; it will not by itself launch SegaBoot or prove real Triforce hardware compatibility.
Build artifact: triforce-hello-v07. Use the explicit --dol triforce-hello-v07.dol argument when packaging; otherwise the older DOL embedded in the candidate GCM will be reused.
The user-tested v08 probe completed both encrypted Triforce DI reads in Dolphin 2609b with Triforce Baseboard enabled:
- Decoder keys read through the PowerPC MEM1 alias: A
4756534A, B38500000, C01000000. - SegaBoot signature address before mapping:
10801080(not the SegaBoot signature). - Reset flag:
0x00000001. - DI read at byte offset
0x2440: COMPLETE, status0x00000010. - DI read at byte offset
0x0000: COMPLETE, status0x00000010. - Returned ID:
RELSAB; title:SegaBoot; GameCube magic:0xC2339F3D(valid).
Conclusion: Dolphin's AM-Mediaboard firmware-read source switch is directly confirmed. The first read at 0x2440, with the reset flag set and SegaBoot signature absent, causes subsequent reads to return the SegaBoot GCM buffer rather than the game DIMM image. This is a stronger result than merely confirming firmware availability or JVS Test input.
The v08 probe itself did not reset the CPU or execute the SegaBoot apploader; it only confirmed the firmware source switch. Subsequent static analysis (2026-11-29) now traces the reset/apploader hand-off and CApp boot-config restoration end-to-end, matching the already-confirmed gameplay TEST → Triforce SYSTEM MENU transition. Real Triforce hardware boot remains untested.
After v08 directly confirmed that the DI read at 0x2440 maps subsequent reads to SegaBoot, v09 moves to the next question: whether a normal PPC cold reset causes Dolphin's boot path to perform that hand-off without the probe manually issuing DI reads.
The v09 DOL displays a warning and waits for the GameCube controller START button. On START it:
- Sets
0x811FFF00=1and flushes the flag to RAM. - Calls libogc
SYS_ResetSystem(SYS_RESTART, 0, TRUE)to request a cold PPC reset. - Does not issue a DI Write or Execute command and does not write firmware.
Dolphin 2609b / Triforce Baseboard only. Do not run v09 on real Triforce hardware. Ensure segaboot.gcm and IPL_TRI.bin are configured in Dolphin. A successful result should leave the probe screen and enter the SegaBoot boot/menu path. If it returns to the probe or errors, capture the Dolphin log and screen. The reset/handoff result is pending.
Build artifact triforce-hello-v09 is built and CI-validated (artifact ID 15237679896). Package the DOL explicitly with:
python package_triforce_netboot.py candidate-homebrew.iso triforce-hello-v09.bin --dol triforce-hello-v09.dol
The v12 DOL changes the v11 reset probe's trigger from Player 1 START to the JVS system TEST input (system_inputs & 0x80). When TEST is detected, it:
- Writes
1to the Triforce saved-region marker at0x811FFF00and flushes it to RAM. - Executes a PowerPC synchronization barrier.
- Calls libogc
SYS_ResetSystem(SYS_RESTART, 0, TRUE)to request a cold reset and let the Triforce IPL/SegaBoot path perform firmware re-entry.
The code does not issue DI commands or write firmware. The JVS TEST input and firmware-map marker are independently confirmed in Dolphin, and the cold-reset path is now wired to the TEST button. This is a candidate implementation, not yet a confirmed end-to-end System Menu launch: the v12 DOL must be packaged into the candidate image and tested in Dolphin 2609b with Triforce Baseboard enabled. Do not test this candidate on real Triforce hardware.
Final clean CI run #405 passed compilation, DOL structural validation, all four packager unit tests and artifact upload without compiler warnings. Artifact: triforce-hello-v12.