Skip to content

Instantly share code, notes, and snippets.

@swdee
swdee / gist:f51fd2fb571c5141c99c04c0ecf3ef95
Created April 7, 2025 04:43
WIP dockerfile for rknn-toolkit2
FROM python:3.11-bookworm
# Set the working directory
WORKDIR /app
# Set environment variable for the wheel filename
ENV WHEEL_FILENAME=rknn_toolkit2-2.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
ENV REQ_FILENAME=requirements_cp311-2.3.0.txt
# Install dependencies
@swdee
swdee / go-rknnlite-debian-setup.md
Created November 12, 2024 07:47
go-rknnlite setup on Debian Bookworm 6.1 (Radxa official OS)

Notes on setting up go-rknnlite on Debian Bookworm v6.1 (Radxa Official OS) on Rock 5B/5C.

Check rknpu

Check rknpu is installed (it should be on official Radxa images.

dmesg | grep -i rknpu

[    5.130935] [drm] Initialized rknpu 0.8.2 20220829 for fdab0000.npu on minor 1
@swdee
swdee / gist:481fa5916ecdeb0c3dc308a11b7a27e3
Created June 13, 2024 08:08
Rock 5B Custom Fan Curve
/dts-v1/;
/plugin/;
/ {
metadata {
title = "My Custom Overlays";
category = "misc";
compatible = "radxa,rock-5b", "rockchip,rk3588";
description = "My Custom Overlays";
};
@swdee
swdee / gist:6b52172a910a2a54054fbd513fcf07c3
Created March 19, 2020 08:54
Gecko polling output and completion
VERBO[03-19|20:59:50.237300] <SN i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m> /snow/engine/avalanche/polls.go#57: Poll: Waiting on 10 chits. requestID: 3
VERBO[03-19|20:59:50.263283] <SN i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m> /snow/engine/avalanche/voter.go#63: Avalanche engine can't quiesce, requestID: 3
VERBO[03-19|20:59:50.269181] <SN i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m> /snow/engine/avalanche/polls.go#57: Poll: Waiting on 10 chits. requestID: 4
VERBO[03-19|20:59:50.283433] <SN i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m> /snow/engine/avalanche/voter.go#63: Avalanche engine can't quiesce, requestID: 4
VERBO[03-19|20:59:50.306207] <SN i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m> /snow/engine/avalanche/polls.go#57: Poll: Waiting on 10 chits. requestID: 5
VERBO[03-19|20:59:50.323576] <SN i8KtK2KwLi1o7WaVBbEKpRLPtAEYayfoptqAFYxfQgrus1g6m> /snow/engine/avalanche/voter.go#63: Avalanche engine can't quiesce, requestID: 5
VERBO[03-19|20:59:50.325148] <SN i8KtK2KwLi1o7WaV