Porting Rockbox to an undocumented $9 AliExpress 'YP3' MP3 player with LLMs
A developer used Claude to successfully port Rockbox custom firmware to an undocumented, $9 AliExpress MP3 player with only 512 KiB of RAM.
read it Offers a fascinating, detailed technical postmortem on using LLMs and automated feedback loops for deep embedded reverse engineering.
summary
The author leveraged Claude alongside a feedback loop of webcams, audio line-ins, and a custom serial dev shell to port Rockbox to the $9 unbranded YP3 MP3 player. This required extreme memory optimization to fit Rockbox within a tight 512 KiB SRAM limit while reverse-engineering an undocumented Chinese Smartlink SoC and its Bluetooth stack. Despite severe hardware constraints like slow execute-in-place flash and zero cache, the final port supports multiple audio codecs, bluetooth peripherals, and hundreds of custom plugins. The workflow established a reusable automated toolkit for bringing up similar cheap hardware.
key points
- The YP3 features an undocumented Smartlink SL6801 SoC with dual Cortex-M4 cores, 512 KiB SRAM, and slow execute-in-place flash with zero cache.
- Development relied on a closed-loop agent setup using a webcam for display feedback, audio line-in for sound tuning, and a bidirectional USB serial shell for testing.
- The port required trimming Rockbox buffers to the bone and carefully relocating hot code loops into SRAM to prevent deadlocks and performance stalls.
- Claude reverse-engineered the chip's Bluetooth stack overnight and ported over 350 plugins and games, including a tiny 1-million-parameter local AI model.
who should read it
Embedded systems developers, hardware hackers, and engineers interested in practical LLM-driven reverse engineering workflows.
discussion warm
consensus
Commenters are highly enthusiastic and nostalgic, viewing the project as a masterclass in using LLMs to rescue cheap, trash-tier consumer electronics from terrible stock software.
pushback
A few technical commenters expressed horror at the baffling architectural choices of the undocumented SoC, such as dual cores sharing flash execution without any instruction cache.
What a wild SoC.
XIP from SPI flash with dual core but no Icache/Dcache? So that execution is kneecapped by fetches over a bus that's optimistically quad at 40MHz, and if both cores ever try to XIP together, one starves to death? What the fuck.
I'd go looking for a cache peripheral that just isn't enabled by the stock firmware. Because, why? Why would you do that in the design stage? Did they just expect the second core to be a DSP/protocol slave that either runs a few DSP routines loaded manually into SRAM, or spends most of its time in BT ROM? Did they expect the firmware devs to grit …
Provides an insightful engineering breakdown of why the target chip's hardware design is so uniquely bizarre and constrained.
Generated by an LLM from the article and thread. Check the sources before relying on it.