Skip to content
altstrument

404Lab

Tool for SP-404MKII (Roland)

Python research base and workbench for SP-404MKII firmware mods. It holds evidence-labelled facts about the stock firmware and other mods and tools that build a mod onto your own image, check it and run it on an emulator.

by jjjadeRRR

ActiveSource: openMIT
Top-down view of the Roland SP-404MKII sampler with its display showing a tempo of 84
Photo: Roland, manufacturer product image, via roland.com
Distribution
Build from source yourself
Requires stock
Your own SP404MKII_APP1.bin; the build examples target stock 5.52 and DOOM OS 0.7.3
License notes
The LICENSE file is the MIT text and covers the project's own code and text only. It gives no rights to Roland firmware or to other people's mods; the README warns that a mod built on a DOOM OS image is a change to DOOM OS, whose licence restricts it. The repository stores only hashes of known images.
Source
github.com https://github.com/jjjadeRRR/404Lab

Description

Two parts in one repository. The knowledge base records hardware, stock firmware and other mods as facts, each marked as read from the bytes of a named image, seen on the emulator, reported from a unit, taken from a document or a hypothesis, and byte facts can be rechecked against your own image. The tools identify known firmware by hash (stock 3.02 to 5.52, DOOM OS 0.6 to 0.7.4 and Tampal builds), read, disassemble and search an image, build a C mod onto an identified base, tie the result to its base and sources, and refuse known loader-erasing routines and oversized images. An optional packaging route runs the firmware on the separate DM-404 emulator, and a native 2D desktop preview of that emulator (lab404 gui) shows the panel. Two small example mods are included. The README says no package built by these tools has been tested on a unit and that most hardware facts come from one unit. The project ships no firmware, so you supply your own SP404MKII_APP1.bin, and it does not flash the unit.

Install notes

Needs Python 3.10 or newer, with clang for building. Install requirements.txt in a virtual environment and run python -m lab404 doctor to see what is missing. The tools only prepare a file and instructions; flashing is left to you. docs/SAFETY.md lists known hazards, including that SP404MKII_APP1W.bin can overwrite the loader and that a recovery procedure for APP0 is not documented, and the tools refuse those file names.

Version history

404Lab version history
VersionDateNotes
main @ 76d14db2026-11-26
No tagged releases; this is the latest commit. Since the previous entry the commits add a native 2D desktop preview of the DM-404 emulator (lab404 gui) with a panel layout drawn from the SP-404MKII, document it in the Russian README and move its section below Quick start.
main @ b4920d32026-11-25
No tagged releases; this is the latest commit. The repository's history was rewritten into a single commit, so earlier commit links no longer resolve.
main @ 39f71fa2026-11-24
No tagged releases; this is the latest commit. Since the previous entry the commit fixes gaps in the reviewed build and evidence validation.
main @ 15f16672026-11-23
No tagged releases; this is the latest commit. Since the previous entry the commits add examples on DOOM OS 0.7.4, a first run of the tools on a unit, a way for a mod to switch off the four factory service routines that can erase the loader, and builder support for jumps, byte patches, copies of stock functions, fixed placement and per-source compiler options, with a README on going from APP1 to a new APP1.
main @ 70bb16a2026-11-19
No tagged releases; this is the latest commit.

Back to SP-404MKII