Failed to open device: No such file or directory, Try again

./my_custom_mode my_custom_mode.nb test_640x480.jpg

[ 1] Failed to open device: No such file or directory, Try again…
[ 2] Failed to open device: No such file or directory, Try again…
[ 3] Failed to open device: No such file or directory, Try again…

@shihaozhang Which one demo you use ? Look like the camera demo . You should use pictures demo .

The model is stuck at vsi_nn_CreateContext, the code inside cannot be seen.It looks like not camera.

@shihaozhang Could you show the full log info . I can’t see where the problem is based on this information.


@Frank
[ 1] @DBG: _ModuleConstructor:909
D [vsi_nn_kernel_backend_register:50]INIT backends map minimum
main -------------0
00000000000
before vsi_nn_CreateContext
[ 2] Failed to open device: No such file or directory, Try again…
[ 3] Failed to open device: No such file or directory, Try again…
[ 4] Failed to open device: No such file or directory, Try again…
[ 5] Failed to open device: No such file or directory, Try again…
[ 6] _OpenDevice(1090): FATAL: Failed to open device, errno=No such file or directory.
[ 7] @DBG: _ModuleDestructor:1131

@shihaozhang Which version of your firmware is, here should be the device that cannot find the NPU

@Frank
Or I will try to re-program,Thank you very much!

@Frank
I have soved the problem,but another problem occued:
[ 1] @DBG: _ModuleConstructor:909
D [vsi_nn_kernel_backend_register:50]INIT backends map minimum
main -------------0
00000000000
before vsi_nn_CreateContext
after vsi_nn_CreateContext
111111111111111111111111
E [vnn_CreateMymode:173]Create graph fail.
E [vnn_CreateNeuralNetwork:174]CHECK PTR 174
E [main:208]CHECK PTR 208
[ 2] @DBG: _ModuleDestructor:1131

I will try your demo to make sure it is not a problem with the model.

The most fundamental reason may be that galcore.ko and libGAL.so or other library do not match.I cannot load galcore.ko in the firmware of my board,I insmod the old version of galcore.ko and use the so of yours,then this problem occured.
the old version dose not support the op of VSI_NN_NBG_FILE,so need upgrade my firmware.

@shihaozhang If you SDK version is 6.4.0.10 , you should use the least release firmware.

Waht’s your kernel version? Please use our 4.9 official images. There is no npu support for any other kernel version.