# 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 %}
