Claude Code 编写 Xbox 360 原生手柄驱动
开发者 /u/Hot-Ad2974 称,其使用 Claude Code 逆向工程 Xbox 360 内核,并为微软 Xbox Wireless Adapter 编写了原生驱动。该 GPL-3.0 项目据称可让运行 17559 内核的改装 Xbox 360 无线连接最多四个 Series X|S 手柄,并支持震动和可用的 Guide 键。开发者已公开源代码,但相关能力目前主要来自单方陈述。
该项目展示了 Claude Code 在底层内核逆向、驱动开发和硬件调试中的应用潜力,但报告中的技术能力尚未得到独立验证。
Microsoft's Xbox Wireless Adapter (the USB dongle for Series X|S controllers) has never worked on an Xbox 360. It's a MediaTek Wi-Fi chip that relies on the host for everything: firmware upload, radio setup, pairing, an ECDH security handshake and Microsoft's GIP controller protocol. On PC that's Microsoft's driver, on Linux it's xone. The 360 had nothing.
I wanted it on my modded 360 (kernel 17559), so I built it with Claude Code. It's free and open source (GPL-3.0): https://github.com/Jacckii/Xbox360-Series-Controllers-Native
What it does: up to 4 Series X|S controllers connect wirelessly to the 360 as normal controllers, with rumble and a working Guide button, in the dashboard and in games. It loads at boot, just Microsoft's own adapter, nothing in between.
What Claude did
- Reverse-engineered the 360 kernel's undocumented USB stack (Usbd) and XAM's input path in Ghidra through an MCP server: the runtime USB class-driver list, transfer block layouts, which callbacks run on which DPC, and the callback table XAM uses for the Guide button
- Ported xone's MT76 radio code, pairing, ECDH P-256 handshake and GIP protocol into portable C, and wrote the 360 side as a kernel-mode system DLL
- Wrote PowerPC function hooks (instruction relocation into trampolines) to feed the controllers into XInput
- Debugged it on the live console by reading memory over the debug monitor
#Claude Code#Xbox 360#Xbox Wireless Adapter#Xbox Series X|S controllers#xone