Skip to content

feat(platform): support rk3588s with librknnrt integration - #2

Merged
potterwhite merged 1 commit into
mainfrom
br_v0.5.0
Dec 27, 2025
Merged

potterwhite merged 1 commit into
mainfrom
br_v0.5.0

Conversation

@potterwhite

@potterwhite potterwhite commented Dec 27, 2025 •

Copy link
Copy Markdown
Owner

Summary

This PR enables full support for the Rockchip RK3588s platform, marking the release of v0.5.0. It integrates the native NPU runtime (librknnrt) into the build system to support hardware-accelerated ASR inference.

Changes

  • Add RK3588s toolchain configuration (cmake/toolchains/rk3588s.cmake).
  • Integrate librknnrt dependency management via FetchContent.
  • Update CMakePresets.json with new mixins and build presets for RK3588s.
  • Link ASR engine against NPU runtime libraries.
  • Update CHANGELOG.md.

Testing

  • Verified compilation with RK3588s Buildroot SDK (GCC 11.3.0).
  • Verified execution on RK3588s hardware.
  • Validated NPU inference stability using sherpa-zipformer-rknn models (Streaming).

Note: Currently pinning librknnrt to v2.2.0 to ensure compatibility with the current Zipformer models.

This commit introduces full support for the Rockchip RK3588s platform, enabling NPU-accelerated inference for ASR tasks.

Key Changes:
- **Toolchain**: Added `cmake/toolchains/rk3588s.cmake` targeting aarch64-buildroot-linux-gnu.
- **Dependency**: Implemented `third_party/librknnrt` to manage NPU runtime libraries via FetchContent (Added v2.2.0 and v2.3.2 presets).
- **Build System**:
    - Updated `CMakePresets.json` with RK3588s-specific mixins (GCC 11.3.0/13.3.0) and build configurations.
    - Modified `third_party/sherpa-onnx` build logic to explicitly link against `LibRKNNRT` for NPU support.
- **Application**: Updated `asr-task-sherpa.cpp` default model paths to RK3588 streaming zipformer (NPU) models.
- **Validation**: Verified execution and inference stability on RK3588s hardware.
@potterwhite
potterwhite merged commit d34d161 into main Dec 27, 2025
1 check passed
@potterwhite
potterwhite deleted the br_v0.5.0 branch December 27, 2025 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant