# The SMBus and its devices Evidence tags as in the methodology; xboxdevwiki pages by title and pinned revision. The SMBus page says it was "originally retrieved from and based on" the xbox-linux wiki by Michael Steil (2002). ## The controller (`SMBus` r7433) An SMBus/I²C master in the MCPX (PCI 00.01:1, device ID 01B4h), ports at C000h: status (abort, collision, protocol error, busy, cycle complete, timeout), control (cycle type, start, interrupt enable, abort), address, data, command. Byte and word reads and writes with an 8-bit command code; the kernel retries on collision, so a second master is tolerated. Completion can raise an interrupt. A transaction takes real time on a slow bus (HYPOTHESIS: about 100 kHz SMBus timing; the board models the cycle-complete time as FITTED until a judge exists). ## Devices (`SMBus` r7433) | Device | 7-bit address | Revisions | | --- | --- | --- | | System management controller (PIC16LC63A; Xyclops on 1.6) | 10h | all | | ADM1032 temperature monitor | 4Ch | not on 1.6 | | Serial EEPROM, 256 bytes | 54h | all | | Conexant CX25871 video encoder | 45h | 1.0-1.3 | | Focus FS454 video encoder | 6Ah | 1.4 (1.5) | | Microsoft Xcalibur video encoder | 70h | 1.6 | ## System management controller (`System Management Controller` r7399, `PIC` r5623) - A PIC16LC63A microcontroller at 10 MHz with internal ROM and RAM; always running, even with the console off. It handles power, reset, the eject and power buttons, tray state, the A/V pack (cable) type, the fan, the LED, and temperatures. Revisions are marked on the chip: P01 (1.0), P05 (1.1), P11 (1.2-1.4), P2L (1.6, inside Xyclops), D01/D05 (development, Chihiro). - Its register interface (`PIC`, from xbox-linux, 2002): version string read three characters in rotation, tray state, A/V pack, CPU and board temperatures, fan speed, interrupt reason, scratch registers; writes for reset/power-off, fan mode and speed, LED sequence, and others. - **The boot challenge**: after reset the PIC gives the CPU about 250 ms to answer a cryptographic challenge (registers 1Ch-21h), else it resets the console; on a debug kit the challenge registers read zero. The PIC's firmware is Microsoft's and, as far as we found, not publicly dumped; the challenge's algorithm is described on the page (xbox-linux), tier 3. - **Proposed model**: high level (registers and their effects, the tray and A/V pack as host inputs, the challenge answered or ignored by the model's choice, recorded), because no firmware exists to run (decision X5). ## EEPROM (`EEPROM` r6877) 256 bytes per console: an HMAC-SHA1 hash, an RC4-encrypted confounder, **the encrypted hard-disk key** and region code (factory section), the serial number, the Ethernet MAC (00:50:F2:xx:xx:xx), the online key, the video standard, then user settings (time zone, language, video and audio settings, parental controls, Xbox Live network settings, DVD region) with two checksums. The encrypted part uses a key held in the kernel (`Kernel/XboxEEPROMKey`). **Every byte of a console's EEPROM is personal or secret**: see firmware-and-secrets.md. The wiki's checksum code says it was "obtained from the XKUtils 0.2 source released by TeamAssembly under the GNU GPL" and rewritten; it is therefore **not** a source for this MIT repository (validation.md). The read-time section checksum on the same page is given without attribution (U-list). ## Video encoders (`Video Encoder` r6753, `AV Cables` r7429) Three parts, all on the SMBus, all fed by the NV2A's digital pixel output: the Conexant CX25871 (a Brooktree BT868/869 relative; its datasheet is public on datasheet sites), the Focus FS454 (datasheet listed on manual sites), and Microsoft's Xcalibur ("no official programming documentation available"). Outputs: composite, S-video, RGB SCART, component SD/HD, VGA-like RGB with sync on green. The A/V pack type, read from the PIC, tells the kernel which modes are allowed. **Proposed model**: the encoder's register file and mode tables at the level the kernel programs them, with the picture taken from the NV2A's scan-out; the analogue output is not modelled (host presentation). ## Temperature monitor ADM1032 at 4Ch (not on 1.6): the kernel and dashboard read CPU and board temperatures. Proposed model: fixed plausible temperatures.