# Rockchip

PySDK supports version 2.0.0+ of the RKNN runtime on Rockchip systems.

You can check for an existing installation of RKNN Runtime by running the following command:

{% code overflow="wrap" %}

```bash
strings /usr/lib/librknnrt.so | grep librknnrt
```

{% endcode %}

Example output:

{% code overflow="wrap" %}

```bash
librknnrt version: 2.0.0b0 (35a6907d79@2024-03-24T10:31:14)
```

{% endcode %}

To verify that the Rockchip NPU driver is properly loaded and functioning on your system, you can check the system logs for NPU-related entries. Run the following command:

{% code overflow="wrap" %}

```bash
dmesg | grep rknpu
```

{% endcode %}

On some Pi systems, the Rockchip NPU may be disabled in the system configuration panel (e.g. raspi-config). In such cases, enable the NPU and reboot the system.

To install the RKNN Runtime, clone the RKNN repository from [this link](https://github.com/airockchip/rknn-toolkit2/tree/master). Then, simply copy the `librknnrt.so` file to the `/usr/lib/` directory:

{% code overflow="wrap" %}

```bash
git clone https://github.com/airockchip/rknn-toolkit2.git
cd rknn-toolkit2
sudo cp ./rknpu2/runtime/Linux/librknn_api/aarch64/librknnrt.so /usr/lib/
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.degirum.com/pysdk/runtimes-and-drivers/rknn.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
