aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 42622a81ee155f1e6b1bfe3c411581cf5e6c9662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# YP3 Audiobook Firmware

This repo is simply the [YP3 Rockbox Firmware](https://github.com/jaydens-tasty-slop/rockbox) with slightly better audiobook features. It adds a bookmark to your .m4b audiobooks when the player is closed or powered off and chapter support. Your position is also saved every minute.

Use Down+Left/Right to jump audiobooks by chapter.

Hold Center then select **Chapters** to pick a chapter from a list.

Tapping Left/Right skips 30 seconds.

## Install

You need a charged YP3, a microSD card formatted **FAT32** (not exFAT), and Linux.
On Windows/macOS, use the rockslop GUI with **USE A FILE** instead.

**1. Get [rockslop](https://github.com/jaydens-tasty-slop/rockslop)** (the flasher) and allow it USB access:

```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.0.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.

**4. Add books:** copy `.m4b` files to the card with a card reader, or plug in the
player while it's running. **Power off before removing the card.** Pulling it while
the player is on can crash it.

## If something goes wrong

- **`ATA error: -5`:** no SD card in the player.
- **`could not mount the player's card`:** format the card FAT32, then run
  `tools/rockslop-cli sync release/rockbox-yp3-audiobook-1.0.tar.xz` with Rockbox running.
- **White screen, or it boots into download mode:** run the flash command again
  (step 3). It reboots the player properly.
- **Back to stock:** put the player in download mode and run `tools/rockslop-cli restore yp3`.

## Building

`scripts/build.sh` rebuilds the package from the upstream source in `vendor/`
plus the changes in `patches/`. Output goes to `build/out/`.

## License

GPL v2 or later, like Rockbox. See `LICENSE`.