Hiby R1 Rockbox Bluetooth with APTX , LDAC & APT-X HD Support
18
stars
7
commits
C
primary language
Apr 7, 2026
updated
Patch-maintenance repo for HiBy R1 Rockbox builds with Bluetooth audio support.
This repository does not vendor the full Rockbox source tree. Instead, it builds a HiBy R1 Rockbox release by:
overlay/patches/├── .github/workflows/ CI build + release automation
├── baseline/ Provenance for the captured on-device baseline
├── overlay/ New source files not present upstream
│ ├── apps/ Bluetooth controller + menu integration
│ └── firmware/ PCM backend hooks for BlueALSA routing
├── patches/ Patch series applied on top of upstream Rockbox
└── scripts/ Local reproducible build script
A successful build produces:
| Artifact | Description |
|---|---|
rockbox.r1 | Rockbox firmware binary |
bootloader.r1 | Bootloader binary |
r1_rb.upt | Flashable update package (when a base r1.upt is provided) |
rockbox-info.txt | Rockbox build info |
build-metadata.txt | Build provenance (commits, mirrors, config) |
SHA256SUMS | Checksums for all artifacts |
./scripts/build.sh
Artifacts are written to out/.
To also build a flashable .upt package:
R1_UPDATE_PATH=/path/to/r1.upt ./scripts/build.sh
Or:
R1_UPDATE_URL='https://example.invalid/r1.upt' \
R1_UPDATE_SHA256='<sha256>' \
./scripts/build.sh
If Rockbox is already installed, replace:
/usr/data/mnt/sd_0/.rockbox/rockbox.r1
with the built rockbox.r1, then reboot into Rockbox.
If a release includes r1_rb.upt, use that through the normal HiBy R1 local update flow.
For most users, r1_rb.upt is the simplest way to install a full packaged build.
GitHub Actions builds release artifacts automatically for version tags:
git tag v0.1.0
git push origin v0.1.0
| Codec | Status | Notes |
|---|---|---|
| aptX | ✅ Preferred | Auto-selected when the receiver and on-device BlueALSA support it |
| SBC | ✅ Fallback | Always available as the baseline A2DP codec |
| LDAC | ✅ Preferred | Auto-selected when receiver and on-device BlueALSA support it (up to 990kbps) |
| aptX HD | ✅ Preferred | Auto-selected when the receiver and on-device BlueALSA support it |
To check which codecs your device supports, connect via ADB and run:
bluealsa-cli codec /org/bluealsa/hci0/dev_XX_XX_XX_XX_XX_XX/a2dpsrc/sink
libldac libraries and a BlueALSA build with --enable-ldac.This project is licensed under the MIT License.
7 commits
C
67.8%
Shell
16.8%
Makefile
10.2%
Perl
5.2%
Hiby R1 Rockbox Bluetooth with APTX , LDAC & APT-X HD Support
18
stars
7
commits
C
primary language
Apr 7, 2026
updated
Patch-maintenance repo for HiBy R1 Rockbox builds with Bluetooth audio support.
This repository does not vendor the full Rockbox source tree. Instead, it builds a HiBy R1 Rockbox release by:
overlay/patches/├── .github/workflows/ CI build + release automation
├── baseline/ Provenance for the captured on-device baseline
├── overlay/ New source files not present upstream
│ ├── apps/ Bluetooth controller + menu integration
│ └── firmware/ PCM backend hooks for BlueALSA routing
├── patches/ Patch series applied on top of upstream Rockbox
└── scripts/ Local reproducible build script
A successful build produces:
| Artifact | Description |
|---|---|
rockbox.r1 | Rockbox firmware binary |
bootloader.r1 | Bootloader binary |
r1_rb.upt | Flashable update package (when a base r1.upt is provided) |
rockbox-info.txt | Rockbox build info |
build-metadata.txt | Build provenance (commits, mirrors, config) |
SHA256SUMS | Checksums for all artifacts |
./scripts/build.sh
Artifacts are written to out/.
To also build a flashable .upt package:
R1_UPDATE_PATH=/path/to/r1.upt ./scripts/build.sh
Or:
R1_UPDATE_URL='https://example.invalid/r1.upt' \
R1_UPDATE_SHA256='<sha256>' \
./scripts/build.sh
If Rockbox is already installed, replace:
/usr/data/mnt/sd_0/.rockbox/rockbox.r1
with the built rockbox.r1, then reboot into Rockbox.
If a release includes r1_rb.upt, use that through the normal HiBy R1 local update flow.
For most users, r1_rb.upt is the simplest way to install a full packaged build.
GitHub Actions builds release artifacts automatically for version tags:
git tag v0.1.0
git push origin v0.1.0
| Codec | Status | Notes |
|---|---|---|
| aptX | ✅ Preferred | Auto-selected when the receiver and on-device BlueALSA support it |
| SBC | ✅ Fallback | Always available as the baseline A2DP codec |
| LDAC | ✅ Preferred | Auto-selected when receiver and on-device BlueALSA support it (up to 990kbps) |
| aptX HD | ✅ Preferred | Auto-selected when the receiver and on-device BlueALSA support it |
To check which codecs your device supports, connect via ADB and run:
bluealsa-cli codec /org/bluealsa/hci0/dev_XX_XX_XX_XX_XX_XX/a2dpsrc/sink
libldac libraries and a BlueALSA build with --enable-ldac.This project is licensed under the MIT License.
7 commits
C
67.8%
Shell
16.8%
Makefile
10.2%
Perl
5.2%