NCS2 had problems with jetson nano





Hello, everyone.

I downloaded the DLDT library of opencv on jetson nano. After the successful compilation and installation, I prepared to run my demo, but it reported the following error. I hope you can help me solve it.



```
/home/zhu/test/emotion\_infer.py:32: DeprecationWarning: from\_ir() method of IENetwork is deprecated. Please use IENetwork class constructor to create valid IENetwork instance
  self.net = IENetwork.from\_ir(model=self.model\_xml\_path, weights=self.model\_bin\_path)
E: [ncAPI] [    616244] [python3] ncDeviceOpen:859      Device doesn't appear after boot
Traceback (most recent call last):
  File "emotion\_infer\_demo.py", line 1, in <module>
    from emotion\_infer import detect
  File "/home/zhu/test/emotion\_infer.py", line 119, in <module>
    emotion\_detect = emotionInfer()
  File "/home/zhu/test/emotion\_infer.py", line 33, in \_\_init\_\_
    self.exec\_net = self.plugin.load(network=self.net)
  File "ie\_api.pyx", line 547, in openvino.inference\_engine.ie\_api.IEPlugin.load
  File "ie\_api.pyx", line 557, in openvino.inference\_engine.ie\_api.IEPlugin.load
RuntimeError: Can not init Myriad device: NC\_ERROR
```

regrads
Hi jevons,

It looks like the Intel(r) Neural Compute Stick 2 is not connecting properly when the model is loaded. Did you configure the Intel(r) NCS 2 Linux USB Driver? If you have not, please use the following steps.

1. Add the current user to the users group, you will need to logout and log back in. 



```
sudo usermod –a –G users “$(whoami)”
```

2. Create **97-myriad-usbboot.rules** in the **/etc/udev/rules.d** directory with the following content:



```
SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID\_MM\_DEVICE\_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID\_MM\_DEVICE\_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID\_MM\_DEVICE\_IGNORE}="1"

```

3. Reload the rules



```
udevadm control --reload-rules
udevadm trigger
ldconfig

```

I don't have a Jetson Nano to test, however, it worked on the Jetson TX2 that I have. Please let me know if it works for you.


Regards,


Jesus




[View solution in original post](/t5/Intel-Distribution-of-OpenVINO/NCS2-had-problems-with-jetson-nano/m-p/1143962#M10910)
hi,

this error symptom indicates the filesystem (rootfs) is not mounted correctly.

dump the serial console log will help tell us what is going on.

<https://elinux.org/jetson/general_debug> hi,

do you have joy package installed with all necessary packages/dependencies ?

try to search for joy\_node or run joy package examples to find out what is going wrong. hey,

you can probably fix it by following the steps described here: <https://folivora.ai/blog/post/13010>

if that doesn't help, could you check whether there are any crashlogs in the macos console app under "user reports"? hi,

i can compile your code without error.

could you help to double check your makefile and environment?

environment is set by jetpack2.3.1

topic\_988388.cpp

#include "nvxio/application.hpp"

#include "nvx/nvx\_opencv\_interop.hpp"

#include <opencv2/imgproc/imgproc.hpp>

std::vector<cv::mat> tovisi… please extract the files and open the l1c product vial file > import > optical > sentinel-2 > l1c 
and then run again. hello bmajdosz,

suggest you should refer to [jetson nano product design guide](https://developer.nvidia.com/embedded/dlc/jetson-nano-product-design-guide) to review the design. thanks [@pawel.zabielowicz](/u/pawel.zabielowicz)

for the gpio problem have apply the change from below link

<https://devtalk.nvidia.com/default/topic/1050427/jetson-nano/enabling-spidev-on-the-jetson-nano-is-hanging-when-flashing/post/5381403/#5381403> was caused because there was an "unhandled rejection error: eacces: permission denied, mkdir '/home//.npm/\_cache/index-<…>/

solved problem by just adding “sudo” in front

sudo npx create-react-app . hi,

please apply the [patch](https://devtalk.nvidia.com/default/topic/1032771/jetson-tx2/no-encoder-perfomance-improvement-before-after-jetson_clocks-sh/post/5255605/#5255605) and try again. it looks not expected to have different result between nv12 and i420. let’s run encoder at max clocks and check if helps the case. hey [@emartini](/u/emartini) ,

if you want to use clij2, you also need to activate the clij update site. the error should be gone then.

[[image]](https://aws1.discourse-cdn.com/business4/uploads/imagej/original/3x/0/9/095bc5fb3f3fa0db9dac6286bb16cf30ee81783d.jpeg "image")

see also the [installation instructions](https://clij.github.io/clij2-docs/installationinfiji).

let me know if this solves the issue!

cheers,

robert