LLM agents port Rockbox to a $9 YP3 MP3 player with 512 KiB SRAM
A blog post on jayd.ml describes how LLM agents ported Rockbox, an old custom firmware project for MP3 players and iPods, to a cheap AliExpress device known as the YP3. The player is unbranded and sold under various names on Amazon and AliExpress. The author paid $9.71 shipped, and says wholesale units on Alibaba cost less than $7 or so. The author's summary: the agent ported Rockbox to a 512 KiB player, and the author was barely involved.
The hardware was a hard target. Its chip, a Smartlink SL6801 from Jointbees that the author says does not exist online, has two Cortex-M4 cores at 192 MHz, 512 KiB of SRAM (plus about 30 KiB for Bluetooth radio packets), 2 MB of flash and a 128x160 color screen. It can execute code directly from flash but has no cache, so that is very slow, and one core can stall behind the other. The smallest existing Rockbox target had 2 MiB of memory. The author was already shopping for a different player, but the LLM, in the author's words, said it could make this one work. The author credits a user called ilyakurdyukov above all for working out how to reach the chip's ROM download mode and writing a tool to dump and write flash.
The work was software only. The agent used ghidra-mcp to take the stock firmware apart and worked out how to inject tasks into the running FreeRTOS system in bootloader mode, which let it probe hardware and write drivers before trying to boot Rockbox. For testing it had a webcam on the screen, the webcam's microphone, the headphone jack wired into a PC's Line In and a Bluetooth adapter that made the PC pose as headphones. A USB serial shell let it press keys, take screenshots, flash, reboot and run tests on its own. Most development happened while the author slept.
The port began with Codex/Sol 5.6, which made progress but was, by the author's account, very risk averse and slow. It took about five days and dozens of manual resets before it felt ready to flash and boot anything. It got as far as the Rockbox logo with buggy drivers stubbed out, while creating 55 GB of files, 443 one-off scripts and 384 documents. Claude threw that tooling away and wrote a few Python scripts instead.
After about a week the player booted a heavily trimmed build that could play audio, and tuning and bug fixing took another month or so. The author knows of no hardware that fails to work. The main loss is that codecs and plugins share one 128 KiB arena, so starting a plugin stops the music. The agent was then asked to turn what had worked into a reusable toolkit. With it, the author says, a later port to a different player went from plugging in to a usable alpha in about four hours using Opus 5.5.
Key facts
- The YP3 cost the author $9.71 shipped and has 512 KiB of SRAM, while the smallest earlier Rockbox target had 2 MiB.
- A first trimmed build booted and played audio after about a week; tuning and bug fixing took another month or so.
- Codex/Sol 5.6 started the port but was slow and left 55 GB of files; Claude replaced its tooling with a few Python scripts.
- Claude reverse engineered the Bluetooth stack overnight and wrote a Bluetooth driver layer for Rockbox without shipping binary blobs.
- A later port to another player reached a usable alpha in about four hours with Opus 5.5, according to the author.
Why it matters
The author calls reverse engineering an embedded platform like this one of the hardest things imaginable, and says there seem to be no cheap MP3 players in 2026 that Rockbox supports. Here the target had an obscure chip, an undocumented Bluetooth stack and a quarter of the memory of the smallest earlier Rockbox device. The author, who has not done C or firmware development for years, describes the result as entirely vibecoded and says their own role was project manager, QA and the person who rebooted the player after crashes.
The method may travel further than the device. The agent could flash, reboot, test, see the screen and hear the output without help. The author then had it package the working approach as a toolkit for the next port.
Who it affects
Owners of cheap players are the obvious audience: the stock system on the YP3 is painful to use, the author says, and regularly crashes in USB transfer mode. Hobbyists doing firmware ports get a worked example and tooling, including people who cannot solder: this author has never opened the device. The Rockbox project is touched too, since the stress testing turned up some bugs in upstream Rockbox.
How to use it
The author has published a project site at rockslop.jayd.ml and a porting toolkit called auto-rockbox. The YP3 has a physical reset button and, as long as the stock bootloader is kept, cannot be bricked: a button hold during reset opens a USB download mode.
Playback covers MP3 up to 320 kbps, AAC, WMA, Opus up to about 192 kbps, Ogg Vorbis, FLAC up to 24-bit/96 kHz, ALAC, WAV and more, with HE-AAC v2 playing in mono. Themes work without backgrounds. Before buying one, note the author's advice that a second port, for a very similar device with 4 MiB of PSRAM, is probably a week or two out. It boots and is stable but needs more acceptance testing, and it involves fewer compromises.
For porting work, the setup that mattered was a two-way serial development shell, a Python suite that pressed buttons at random for hours, and the camera and audio rig. The drivers were later redone as a cleanroom: one agent with Ghidra, a referee agent to stop leaks and a separate implementation agent.
How solid is it
This is a first-person account of the author's own project, and no independent verification of the port or its stability by third parties is mentioned. The author reports hundreds of hours of bench testing under Rockbox and knows of no hardware that is not working, but has only glanced at some of the code.
Battery life is largely comparable to stock: 21.29 hours wired and 20.07 on Bluetooth with the original firmware, against 20.07 and 19.3 with Rockbox. That was a single run with some variation in starting voltage. The four-hour figure belongs to the later port to a different player, not to the YP3, which took far longer.
Risks and caveats
Several features are gone: voice, languages other than English, pitch and speed control, surround, crossfade, cuesheets, album art, theme backdrops and the directory cache. Large folders are cut off at 256 entries by default (configurable from 32 to 512) and playlists are capped at 400. Dropped codecs include WMA Pro, Musepack, RealAudio Cook and several chiptune formats.
The database now updates only on disk and stops the music while it refreshes, and heavy themes can stop its menus from opening, with a warning. MP3, AAC, WMA, Vorbis and Opus run from the slow flash, and most of the weeks of polishing went into profiling and moving hot loops back into SRAM. The exact power-off sequence was one of the tricky parts Claude struggled with and took quite a few tries.
“To be clear: this is 100% vibecoded. I have only glanced at some of the code it wrote.”
— Author of the jayd.ml blog post