kwierman / docker_ncsdk

Dockerfile for running software on the Movidius Neural Compute Stick
MIT License
8 stars 5 forks source link

Can't communicate with device #1

Open think-free opened 6 years ago

think-free commented 6 years ago

docker run -t -i --privileged -v /dev/bus/usb:/dev/bus/usb kwierman/movidius bash

root@e2bc88dcc183:/workspace/ncsdk/examples/apps/hello_ncs_cpp# make run

making hello_ncs_cpp g++ cpp/hello_ncs.cpp -o cpp/hello_ncs_cpp -lmvnc Created cpp/hello_ncs_cpp executable

making run cd cpp; ./hello_ncs_cpp; cd .. Error - Could not open NCS device. mvncStatus value: -2

Ideas ?

kwierman commented 6 years ago

Hey @think-free ,

Sorry for the late response.

I'm the process of recreating the installation steps on a fresh box. I think the one thing I left out by accident was copying the $SDK_DIR/udev/97-usbboot.rules file on the host machine to /etc/udev/rules.d/ and then issuing the commands:

sudo udevadm control --reload-rules
sudo udevadm trigger

If you follow those steps, can you get it work?

Cheers, Kevin

HanYangZhao commented 6 years ago

Hi,

I have the same problem as @think-free. I've added the two commands, but docker b to return an error code 2 on sudo udevadm control --reload-rules during the build process. I can manually execute the 2 commands after i'm inside the container, but it doesn't seem to solve the problem