rknpu
rknpu copied to clipboard
Run demo failed when rknn_init with 'Segmentation fault'
run non-zero-copy model
Read model/test1.jpg ...
img width = 640, img height = 480
Loading mode...
[ 1] HAL user version 6.4.3.5.293908
[ 2] HAL kernel version 6.4.3.5.293908
./run_rk180x.sh: line 5: 14896 Segmentation fault ./rknn_zero_copy_demo model/${chip_dir}/yolov5s_relu_rk180x.rknn model/test1.jpg 0
run zero-copy model
Read model/test1.jpg ...
img width = 640, img height = 480
Loading mode...
[ 1] HAL user version 6.4.3.5.293908
[ 2] HAL kernel version 6.4.3.5.293908
./run_rk180x.sh: line 7: 14898 Segmentation fault ./rknn_zero_copy_demo model/${chip_dir}/yolov5s_relu_rk180x_NHWC.rknn model/test1.jpg 1
The npu driver update is incomplete, caused by the mismatch between ko and the user library.
I encountered exactly the same problem, so how to make a complete driver update? I already replaced the libs from 'rknpu/drivers/linux-armhf-puma/usr' and 'rknpu/drivers/npu_ko/galcore_puma.ko' file.
reboot fixs this..