rknpu icon indicating copy to clipboard operation
rknpu copied to clipboard

Run demo failed when rknn_init with 'Segmentation fault'

Open hhxdestiny opened this issue 3 years ago • 3 comments

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

hhxdestiny avatar Apr 10 '21 08:04 hhxdestiny

The npu driver update is incomplete, caused by the mismatch between ko and the user library.

airockchip avatar Jun 02 '21 07:06 airockchip

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.

young169 avatar Nov 25 '21 03:11 young169

reboot fixs this..

young169 avatar Nov 25 '21 03:11 young169