# YP3 Audiobook Firmware This repo is simply the [YP3 Rockbox Firmware](https://github.com/jaydens-tasty-slop/rockbox) with slightly better audiobook features. - Bookmarks for .m4b audiobooks when the player is closed, powered off, and automatically every 1m - Chapter support for .m4b audiobooks - Long books start without freezing the controls, with a "Loading book N%" screen while the index loads - Pulling the SD card out while running no longer crashes the player: it pauses and turns itself off; put the card back, turn it on, and the book resumes **Controls** - Tap Down+Left/Right to jump audiobooks by chapter - Hold Center then select Chapters to pick a chapter - Tap Left/Right skips 30 seconds - Tap Up/Down changes the volume one step; hold to keep changing it ## Install You need a charged YP3, a microSD card formatted **FAT32** 1. Get [rockslop](https://github.com/jaydens-tasty-slop/rockslop) (the flasher) and allow it USB access by installing the udev rules it comes with: ```sh mkdir -p tools curl -fL -o tools/rockslop-cli https://github.com/jaydens-tasty-slop/rockslop/releases/download/20261122_011647-8715cfc/rockslop-cli-linux-x86_64 chmod +x tools/rockslop-cli sudo curl -fL -o /etc/udev/rules.d/70-rockslop.rules https://raw.githubusercontent.com/jaydens-tasty-slop/rockslop/8715cfc99d392de62dd30ce06dc9703098e22c0f/packaging/udev/70-rockslop.rules sudo udevadm control --reload ``` 2. Put the microSD card in the player. 3. Flash: ```sh tools/rockslop-cli flash release/rockbox-yp3-audiobook-1.1.tar.xz ``` When it says `waiting for the YP3`: unplug the player, power it off (hold Center), then **hold Down while plugging in USB**. Let go when it's found, answer `y`, and wait for `done: unplug the player`. Copying files to the card is slow, so give it 5–10 minutes. ## Troubleshooting To put the player back to stock firmware, hold *Down* and connect USB to put it into download mode. Then run `tools/rockslop-cli restore yp3` **SD sync is stuck at 0% during flash** Just keep the cable connected! This can get stuck at 0% even when files are moving over. The connection can be very slow. It genuinely can take 10-15 minutes with no feedback. **"No SD card." and the player turns off** There is no SD card in the player, or it can't be read. Put the card in and turn the player on. **CLI error about not being able to mount /dev/sdb or similar** Format the SD card as FAT32, then run through the whole flashing process again. **Nothing on screen or completely white screen** The YP3 is in download mode. There was either a flashing issue or a crash that put it back into download mode. Just run the flash command again. ## Building `scripts/build.sh` rebuilds the package from the upstream source in `vendor/` plus the changes in `patches/`. Output goes to `build/out/`. Host tests for the M4B code: `tests/chapters/run.sh` (chapter reader, needs ffmpeg) and `tests/m4a/run.sh BOOK.m4b` (index loader, against a book of your own). ## License GPL v2 or later. See `LICENSE`.