hn.today

Porting Rockbox to an Undocumented $9 Aliexpress 'YP3' MP3 Player with LLMs

jayd.ml56 points13 comments
Screenshot of Porting Rockbox to an Undocumented $9 Aliexpress 'YP3' MP3 Player with LLMs

A developer used LLM coding agents to port Rockbox to the undocumented YP3, a $9 player with a mystery Smartlink chip, dual Cortex-M4 processors, 512 KiB of SRAM, and 2 MB of flash. Working entirely through software, the agents analyzed the stock firmware, probed hardware through its recovery mode, and built drivers without opening the device. Rockbox booted after about a week, followed by a month of tuning and fixes. The limited memory forced severe cuts: plugins pause music, database updates block playback, and features such as voice, album art, and several audio effects are absent. Still, the player supports many common formats, themes, Bluetooth, and most hardware functions.

The project’s broader result is a reusable porting toolkit and a largely automated development workflow. A remote-control shell let agents flash firmware, reboot, inspect screenshots, simulate button presses, and run long tests; webcam and audio connections helped them tune the display, speakers, and Bluetooth. The developer mainly acted as project manager and tester, while agents wrote and debugged the code. One agent also reverse-engineered the Bluetooth stack. Despite the constrained hardware, Rockbox battery life came close to stock: about 20 hours wired and 19 hours over Bluetooth. Applying the accumulated tools and methods to another player produced a usable early build in roughly four hours.

Read on jayd.ml13 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

I checked Clojure's core with Lean and found unreported bugs

I checked Clojure's core with Lean and found unreported bugs

Lean formal checks and differential testing of Clojure 1.12.7 uncovered 17 previously unreported bugs, including issues in `vector-of`, HAMT hash collisions, and Java functional-interface calls without type hints. Three million HAMT operations and vector boundary tests found no errors in the core tree structures; the bugs appeared in surrounding code and interactions such as equality and hashing. (s.conao3.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.