- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I am trying to use movidius sdk and usb on an resin.io (docker) rpi3 container. I used the latest version of ncsdk2 on a resin/rpi-raspbian:stretch image which attempts to run hello_ncs.py. Both failed for the same reason: "failed to find device"
Here is the Dockerfile:
FROM resin/raspberrypi3-debian:stretch
RUN apt-get update && apt-get install -yq \
unzip coreutils curl git python3 \
libprotobuf-dev libleveldb-dev \
libsnappy-dev libopencv-dev libhdf5-serial-dev \
protobuf-compiler libatlas-base-dev git \
python3-dev python-dev python3-numpy automake cmake \
make byacc lsb-release python3-scipy \
libgflags-dev libgoogle-glog-dev liblmdb-dev \
swig3.0 graphviz libxslt-dev libxml2-dev gfortran \
python3-yaml python3-nose python3-numpy python3-tk \
python3-pip python-pip tar wget libgraphviz-dev \
python3-markdown python3-h5py python3-lxml python3-matplotlib \
python3-protobuf python3-dateutil python3-scipy python3-six \
libatlas-base-dev libqt4-test libjasper-dev libqtgui4 python3-pyqt5 gstreamer-1.0 libgtk-3-dev \
python3-networkx make wget python3-setuptools python-setuptools && \
apt-get clean && rm -rf /var/lib/apt/lists/*
COPY pip.conf /etc/pip.conf
RUN pip3 install -U Cython
RUN wget --no-check-certificate https://www.piwheels.hostedpi.com/simple/scikit-image/scikit_image-0.9.3-cp35-cp35m-linux_armv7l.whl#sha256=68cd0e762c4f5b66ceb41184c8e84437e2e3a07682ee197402d70652097f485c
RUN pip3 install graphviz scikit_image-0.9.3-cp35-cp35m-linux_armv7l.whl
RUN pip3 install --upgrade numpy==1.13.1
RUN pip3 install pygraphviz Enum34>=1.1.6 networkx>=2.1
Copy over ncsdk2
COPY . .
copy modified ncsdk.conf file
COPY ncsdk.conf ./ncsdk/ncsdk.conf
install ncsdk2
RUN cd ncsdk && make install
Run post ncsdk install pip installs
RUN pip3 install imutils picamera opencv-python opencv-contrib-python
WORKDIR /ncsdk/examples/apps/hello_ncs_py
CMD ["python3", "hello_ncs.py"]
and this is what I am getting following a successful built of the container image.
Successfully built 11b89652086f
Successfully tagged local-app:latest
- Creating 'local-app' container
- Starting 'local-app' container
Push completed successfully!
- Streaming application logs..
D: [ 0] ncDeviceCreate:307 ncDeviceCreate index 1
D: [ 0] ncDeviceOpen:501 File path /usr/local/lib/mvnc/MvNCAPI-ma2450.mvcmd
I: [ 0] ncDeviceOpen:507 ncDeviceOpen() XLinkBootRemote returned success 0
W: [ 0] ncDeviceOpen:533 failed to find device
Error - Could not open NCS device.
The container cannot find the movidius usb but running lsusb on the host gave me this
root@2d6ae06:~# lsusb
Bus 001 Device 057: ID 03e7:f63b Intel
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Am I missing something on the container or host setup? I am suspecting that the custom udev rules at the end of the ncsdk install are failing.
Thanks
Ben
Link Copied
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page