Skip to content

Releases

MKWii Switch builder v1

Choose a tag to compare

@Tobias103435 Tobias103435 released this 03 Nov 20:25

Everything on this page is tooling. No game data, no .nro, no keys, and none of
those will ever be added here — the built .nro contains translated Nintendo code.

The one-click builder

  • MKWii-Builder.cmd — Windows (303,449 B, sha256 9851d20a975663a75949c49e3ff041210af4f1fb3f25e825652dc98cb1d61d86)
  • MKWii-Builder.command — macOS / Linux (255,610 B, sha256 bd6270689050af2327a46545bf02b66908ef76d768a666b149bdf0ba077e1a87)

Put either file in any folder, double-click it, point it at your own PAL RMCP01
dump (.rvz / .iso / .wbfs). It unpacks itself into that folder (42 files: tooling, patches and the project mark,
zip sha256 a821536f4213917d9b29378aee1f16da938a8fa23e9e2dc2daf3d21f6ec11fbb), then opens a
window: pick the dump, press build, get a .nro and a drag-and-drop SD folder. No Docker
required; devkitA64 is fetched on demand. Needs ~12 GiB free.

The render stack, without the hours

mkw-render-deko3d-13abc3bc-f8c9eef0-20261105.tar.xz (76,026,648 B, sha256
8c883ca5080f21801e78ed8c08b1e256de4143131418483e09ee4431472d426e) is Dawn (Switch/Deko3D
backend) plus libuam as object code — 46 files, 620 MB unpacked, licence texts included.
That is the file tools/render-deps-pins.env pins now, so a first build downloads and
verifies it instead of cross-compiling for hours. Measured on a work tree that had never
seen it: install 13 s, full product build 16 m 6 s cold, 30 s one run later.
tools/render-deps.sh --verify asks devkitA64's nm whether dawn::native::deko3d
symbols are really inside, on the host, before anyone downloads it.

The …-20261102.tar.xz asset stays up so an older pin keeps resolving, but it is
superseded: it carries Dawn's bring-up diagnostics compiled in, and those cost a
visible hitch every five seconds. Nothing installed from it is broken otherwise.

What this round found

1. The pipeline caches could never be opened — so every boot recompiled every shader.
SQLite's Horizon build keeps SQLITE_DEFAULT_UNIX_VFS="unix-none", and that VFS answers
every open with SQLITE_CANTOPEN. Cache/dawn_cache.db and Cache/pipeline_cache.db
were not merely missing a seed; they were structurally impossible. That is where the
black vehicle silhouettes came from — a cold cache, not a GPU defect.
tools/patches/switch-cache-vfs.patch registers the SDL-backed VFS as the default before
aurora_initialize and clamps reads past the file's own known size, because Horizon
reports read-past-EOF as EIO while pager.c tolerates only
SQLITE_IOERR_SHORT_READ on its 16-byte change counter (so a correct-looking VFS still
produced a 0-byte database and disk I/O error). Two more traps are documented in the
patch: advertising SQLITE_IOCAP_IMMUTABLE makes SQLite force the pager read-only, and
xOpen must echo READWRITE|CREATE in outFlags.
Confirmed on hardware: caches written to 368,640 B and 561,152 B, reused on the next
boot; the black-silhouette start is gone except on a genuinely cold first boot.

2. The recurring ~5 s stutter was an instrument, not the game. Dawn's Deko3D backend
ships a bring-up flag (kDeko3dDiag = true, injected by the pinned upstream patch): every
300th presented frame it runs dkQueueWaitIdle and then walks ~4 million pixels on the
CPU to write one log line. It counts frames, not seconds — which is exactly why it also
happened in menus and while paused, and why "sometimes a bit more, sometimes a bit less".
Every FPS number measured before this is contaminated, so none is quoted anywhere here.

3. The quiet build had to become a property of the package, not of one machine.
Editing that flag in a Dawn work tree is refused by the pinned-patch audit (does not reverse cleanly), and swapping a hand-built archive is refused by the provenance receipt
(dawn_archive_sha256 differs). Both refusals were right. So
tools/build-quiet-dawn.sh applies one macro-driven line
(tools/patches/dawn-diagnostics-off.diff), rebuilds the archive with the same
aarch64-none-elf-g++ (devkitA64) 15.2.0 that made the original, restores the tree to the
pin afterwards (that cleanup ran on a trap and fired three times — three mid-script
failures, three clean trees), and records delta hash + archive hash + compiler in a marker
that --make puts inside the package and the receipt is recomputed against. The shipped
package therefore proves it is quiet, and --verify refuses a package that claims
otherwise.

4. Naming, because a list of hashes on a TV is not a workflow. The delivered file is
MKWii.nro; deploying to the card rotates the previous build to archief-<sha>.nro.bak
instead of deleting anything; the NACP title is MKWii with a 256×256 icon embedded
(tools/patches/app-title-and-icon.diff), so hbmenu shows a name and a picture; and the
SD zip ships a short English README.txt that explains the cold first boot.

Relationship to upstream (measured 2026-11-05)

A maintainer landing here should not have to dig:

  • What this builds on: DriftDroid's android-port at 8b33d310 (2026-10-09),
    pinned by the builder. That branch is 21 commits ahead (top d912de32,
    2026-11-04); yashin-sh/WiiCompiled-Switch itself has not moved (b851db9).
    The pin is deliberate — a moving pin makes a provenance receipt meaningless.
  • They fixed the frame dumper themselves: ce83b2cf (2026-11-03), "Switch: turn off
    the deko3d bring-up diagnostics (periodic GPU stall every 300 frames)"
    , sets
    kDeko3dDiag = false in their Dawn patch (line 2920). Our
    tools/patches/dawn-diagnostics-off.diff achieves the same for the older pin this
    builder still uses and makes it a build-time macro; on their HEAD the effect is
    already upstream.
  • What is not upstream: a writable cache VFS. At their current HEAD
    sdl_vfs_open() (aurora-main/lib/gfx/pipeline_cache.cpp:230) returns
    SQLITE_CANTOPEN for any SQLITE_OPEN_READWRITE request, xWrite/xTruncate
    (157/159) and xDelete (246) return SQLITE_READONLY, and the seed is opened
    read-only (606) — so their caches can be read but never written. That is
    tools/patches/switch-cache-vfs.patch (16 hunks, 21.820 B), applied by
    tools/patch-workdir.sh.
  • The project mark ships in the payload (assets/app-icon/mkwii-mark.jpg, 20.899 B,
    sha256 82edfc5c9b077bde8bd02f62780dcbefc130358cf950e61d18973e3231aff4e8) and
    tools/patch-workdir.sh installs it as the app icon, so a fresh extraction gets the same
    icon instead of upstream's. Two binary traps closed to make that safe: * text eol=lf in
    .gitattributes would have normalised the JPEG in the index, and the publish guard used
    to sed every staged file - both now exclude binaries, and the zip is verified to carry
    the icon byte-identical.
  • Reported upstream: dorPXP/driftdroid#29
    (2026-11-05, "[Bug] Switch: shader caches can never be created every boot recompiles all
    shaders"
    ). No pull request is offered — the branch belongs to its maintainers; what
    this repository contributes to that thread is the measurement and the evidence.
  • Its honest port state against their HEAD (patch -p1 --dry-run --forward in a tree
    of exactly those three files): 15 of 16 hunks land, one fails — our export block
    expects aurora_get_queued_pipeline_count() to be last, and they added
    aurora_is_pipeline_prewarm_active() there; aurora/gfx.h and runtime/src/main.cpp
    each need fuzz 2. It does not apply cleanly yet, and this page says so.
  • Testing disclosure: everything "verified" here was verified on one Switch V2,
    HOS 21.1.0, with an overclocked CPU. That is exactly why no FPS number and no
    comparison appears anywhere in this release: on an OC'd device those figures would
    not be comparable to anyone else's.
  • Their CONTRIBUTING.md asks that issue and PR text be written by a human, not
    generated — so no canned issue body or suggested replies ship in this repository.

Honest limits

  • The from-source fallback (tools/nro-engine.sh --deps-build) is not proven on
    Windows
    : libuam's meson.build still uses import('python3') and
    distutils.version.StrictVersion, and distutils is gone in Python 3.12. Take the
    package — it is the default — and treat that flag as unproven there.
  • The builder has never run end-to-end on Linux or macOS: CI proves the tooling and the
    package install on both, not a finished .nro.
  • Still open on the console: [nand] NANDOpen: FAILED to open (present since the first
    logs, no name yet), and the seed initial_pipeline_cache.db is looked up relative to
    the working directory because resourcesPath is empty on Switch.
  • A rebuild is not byte-reproducible in the way people hope for: the guest sources are
    byte-identical between runs, but a full retranslation lands a few hundred bytes
    different in .text (measured: 544 B), so a rebuilt .nro is a new candidate that has
    to be played on the console again before it is trusted. An incremental relink is
    bit-identical. The published .nro sha256 is therefore a hardware result, not a
    reproducibility claim — see README-Switch-Port.md.

Credit

The port itself is other people's work: yashin-sh / WiiCompiled-Switch (the
Wii→Switch recompilation), Dawn/Tint (BSD-3) and libuam (averne), nod
(encounter), aurora, devkitPro/devkitA64, and DriftDroid's Dawn-on-console
work pinned as a reference commit. This repository is the glue, the verification and the
testing around it. Scripts, patches and CI: GPL-3.0-only, matching the upstream port.