Error with rknn_toolkit1.3.2

Hello
I try to run rknn.init_runtime() but get RKNN_ERR_DEVICE_UNAVAILABLE

here is my environment

  • Debian 10
  • Python 3.7
  • Tensorflow 1.14.0
  • rknn_toolkit1.3.2

I run lsusb and get:
Bus 007 Device 004: ID 2207:0019 Fuzhou Rockchip Electronics Company

And I run rknn.list_devices() and get:
all device(s) with ntb mode:
97b2a7b52cf45398

I think NPU is power on, but the driver doesn’t match, is it?
Thanks!

Here is the full error message:

This looks like a hardware problem. Please post the dmesg.

thanks for the reply!
dmesg has too many texts, so I put in a text file.
Here is full dmesg. link

Thank you for your information. We’ll let you know when we identified the problem.

1 Like

I met exactly same problems on ubuntu 18.04 after recent apt upgrade.

Hi all, I solved this issue by install old version of rockchip-npu.

https://github.com/radxa/apt/blob/fd2617afb9f62c5d24424c53493a8e5bbf8d2e13/bionic-testing/pool/main/r/rockchip-npu/rockchip-npu_0.4_arm64.deb

in 0.5 the ID 2207:1808 is missing, caused the problem.

1 Like

Thanks for the solution, so it looks like a driver issue.
I will try it on Debian10 later.

Updates:
After downgraded to rockchip-npu 4.0,
I can run models on NPU now on Debian 10.