armbian / linux-rockchip

Improved Rockchip Linux
Other
99 stars 142 forks source link

Update RKNPU driver to 0.9.5 #158

Closed Joshua-Riek closed 4 months ago

Joshua-Riek commented 4 months ago

Hello! After doing some testing with the fix from #157 I decided to give the NPU a try with the 6.1 kernel and found that the system would instantly crash. I cherry-picked a few commits from Jeffy's recent kernel-6.1-2024_03_01 tag, updating the RKNPU driver to the latest version, allowing the NPU to be used properly.

To reproduce the NPU problem on the 6.1 kernel simply follow the below steps:

git clone https://github.com/daoan1412/rk3588_npu_freeze
./scripts/opencv_build.sh
./scripts/test_build.sh
./build/rk3588_npu_freeze

dmesg: https://pastebin.com/HRCQmukR