# Firmware and secrets: what they are, and what "SHA-1 only" means here Evidence tags as in the methodology; xboxdevwiki pages by title and pinned revision. The Xbox was built around a chain of trust. Unlike the other consoles in this family, where firmware is just code the console maker owns, here **firmware and keys are one thing**: the code that boots the machine carries the keys that decrypt the next stage, and per-console data carries keys for the hard disk. That shapes what this repository may hold, what a player must supply, and what the board can do without them. ## The five items | Item | Size | Whose | What it contains | Where the board finds it | | --- | --- | --- | --- | --- | | **MCPX boot ROM** ("secret ROM") | 512 bytes, in the MCPX die | Microsoft (code), NVIDIA (silicon) | reset code, the x-code interpreter, and **the key** that decrypts (1.0: RC4) the second-stage loader, or (1.1) the TEA check of the flash boot loader whose 2BL key derives from a key in the MCPX (`Boot Process` r7377, `MCPX ROM` r5858) | `MAME_ROMPATH` (MAME's `xbox` set holds `mcpx_1_0.bin`, `mcpx_1_1.bin`) or `XBOX_FIRMWARE_DIR`; never in a repository | | **Flash BIOS** | 256 KB (1 MB images hold four copies) | Microsoft | x-code tables for the NV2A and MCPX, the encrypted second-stage loader (2BL, 24 KB), on 1.1+ the flash boot loader (FBL), the compressed and encrypted kernel `xboxkrnl.exe` with its data segment, the boot animation and sound, Microsoft's RSA public keys (`BIOS` r7355, `Boot Process`) | as above | | **Kernel** (inside the flash) | ~1 MB decompressed | Microsoft | the NT 5.0-derived kernel, HAL, file systems, drivers; 375 exports (`Kernel` r6596, nxdk's export list); the EEPROM key and other keys | decrypted at boot from the flash | | **EEPROM** | 256 bytes, per console | the console's owner (data) under Microsoft's format | serial number, Ethernet MAC, region, video standard, the **encrypted HDD key**, the online key, user settings (`EEPROM` r6877) | the player's own dump, by path in the host's settings; never in a repository or a log | | **HDD image** | 8 GB | Microsoft (dashboard, system files) and the player (saves) | the dashboard on C:, saves on E:, locked by a per-console password derived from the EEPROM's HDD key (`Hard Drive` r7037) | the player's own image, or one built with free tools (decision X4) | And the discs, Microsoft's or third parties' software under Microsoft's licence, with security sectors the drive reads outside the user data (storage.md). ## What "SHA-1 only" means here 1. **Identification, never content.** The census (census.md, `tests/detectors/census-firmware-2026-11-26.txt`) records each image's size and SHA-1 and the name MAME 0.285 gives it. No byte of any of them is copied, extracted to disk, committed, printed in a document, or quoted in a test. The script reads them into memory and hashes them. 2. **No derived content either.** A hex dump, a disassembly, a key, an x-code table, a decrypted 2BL or a decompressed kernel are the firmware in another form. MAME traces from reset are Microsoft's code executing: they stay in the git-ignored `tests/mame_traces/` of x86-p3-python, and the documents give only counts and the shape of a line (x86-p3-python mame-oracle.md). 3. **Keys are never written down**, not even ones published on the web: the MCPX keys, the EEPROM key, the kernel's RC4 keys, Microsoft's RSA keys. The wiki's `Boot Process` page describes the algorithms (RC4, TEA, SHA-1, RSA) and the addresses where keys live without the key bytes; this repository uses the same rule. Where the specification needs a key to function (it never should, see below), the board reads it from the player's firmware at run time. 4. **The EEPROM is personal data.** Its serial number, MAC address and keys identify a console and its owner. The board loads a player's EEPROM from a path, never logs its contents, and the census does not scan for EEPROM files at all (it would print SHA-1s of personal data). 5. **Tests that need firmware skip without it**, by environment variable, like the family's other boards (`MAME_ROMPATH`, `XBOX_FIRMWARE_DIR`, `REDUMP_DIR`). A CI run has none, so CI covers only firmware-free tests (nxdk-built test programs). ## What the board can do with no firmware at all - Run **nxdk-built test programs** (MIT/CC0/Unlicense code: abaire's suites and our own) **directly**: load an XBE's sections into RAM, set up the CPU and page tables as the kernel would, and start at its entry point, with kernel calls answered by a minimal high-level stub of the exports the program imports. That is an HLE of a *small* part of the kernel, enough for test programs that touch hardware directly (kernel-hle-lle.md). It is how most gate cases can run in CI. - Nothing commercial: a retail title imports the real kernel's behaviour widely and its XBE is signed. ## Third-party images seen on this machine (identification only) The census found, in a frontend BIOS pack, `Complex_4627.bin` (1 MiB) and `cerbios.bin` (256 KiB), neither of them in MAME's lists. "Complex 4627" is known in the community as a patched retail 4627 image (HYPOTHESIS: not checked); Cerbios's provenance was not checked tonight. Until shown otherwise they are treated as Microsoft's code with changes: SHA-1 only, never shipped. Cromwell (XboxDev/cromwell, GPL-2.0) is a free Linux loader BIOS; it boots no games (it has no Xbox kernel) and is a closed box for this repository.