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.

您好,我们也遇到了同样的问题,请问您是怎么解决的呢?

@smartadpole 你用的哪个固件?

我们用的是A311D的板子,固件指的是什么?

@smartadpole ubuntu系统的版本号,你烧录的是哪一个版本

具体报错是这样的

sh: 1: fbset: not found
sh: 1: cannot create /sys/class/graphics/fb0/freescale_mode: Directory nonexistent
sh: 1: cannot create /sys/class/graphics/fb0/window_axis: Directory nonexistent
sh: 1: cannot create /sys/class/graphics/fb0/free_scale_axis: Directory nonexistent
sh: 1: cannot create /sys/class/graphics/fb0/free_scale: Directory nonexistent
sh: 1: cannot create /sys/class/graphics/fb0/blank: Directory nonexistent

如果注释掉这个功能,报错是这样的

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

不好意思,我们只能提供我们自己板子的技术支持,别的板子和我们硬件有差异我们无法提供技术支持,建议去找对应的厂家支持。

那能请教下,我们的板子出现的这个问题,是什么原因导致的呢