It looks like you're new here. If you want to get involved, click one of these buttons!Sign In
It looks like you're new here. If you want to get involved, click one of these buttons!
I've been trying to get the NCS to work in a docker container (based on Ubuntu 16.04) running in a Virtualbox VM on a Mac OSX (10.11) machine. I'm reaching out to ask for any advice about this.
I've set up and built the ncsdk and examples (NCSDK-1.10.00.02) in my container. One issue I always see is that the install-ncsdk.sh that runs when doing a "make install" always fails & aborts at line no. 609. So I end up running the remaining 3 commands manually, & they all succeed.
$SUDO_PREFIX udevadm control --reload-rules
$SUDO_PREFIX udevadm trigger
$SUDO_PREFIX usermod -a -G users root (docker container starts as root user)
I have configured the USB port and filters in VirtualBox using information from here. Inside my docker container I can see the NCS correctly when I do usb-devices or lsusb -v.
However, when I try to run an example its never able to open the NCS device. E.g., this is the output from the hello_ncs_py:
Error - Could not open NCS device.
Based on information I found on the internet and ncsforum, I've tried running the container using a few different parameters, e.g:
docker run -it --net=host --device=/dev/bus/usb:/dev/bus/usb:rwm dockrohit/ncsdk-b2d:v1.1 /bin/bash
docker run -it --net=host --privileged -v /dev/bus/usb:/dev/bus/usb dockrohit/ncsdk-b2d:v1.1 /bin/bash
(also ran both of these without the --net=host option as well)
But I can't get this to work. Sample program is never able to open the NCS device.
Can someone give me any other pointers that might help me to get this working?
Interestingly, when I look at the output from dmesg after running sample code, I see the following output that indicates that the usb device gets disconnected and reconnected.
[ 0.000000] usb 2-1: USB disconnect, device number 3
[ 0.000000] usb 1-1: new high-speed USB device number 4 using xhci_hcd
I would very much appreciate any help on this.