sami uddin - 2020-10-19

We are trying to interface The Neural Compute Stick 2 (a USB stick from
Intel) with I.MX8, but it fails during test.

This device hosts a MyriadX which is a co-processor for neural network
acceleration.

the USBIP attach is OK and I can see the USB device through lsusb.

Here is the output I have during the test:

root@imx8mqevk:~# ./security_barrier_camera_demo -d MYRIAD -d_va MYRIAD
-d_lpr MYRIAD -i car_1.bmp -m
./vehicle-license-plate-detection-barrier-0106.xml -m_lpr
./license-plate-recognition-barrier-0001.xml -m_va
./vehicle-attributes-recognition-barrier-0039.xml

[ INFO ] InferenceEngine: 0xffffba9bd038

[ INFO ] Files were added: 1

[ INFO ] car_1.bmp

[ INFO ] Loading device MYRIAD

  MYRIAD

  myriadPlugin version ......... 2.1

  Build ........... custom_HEAD_ac65ea30fd90ec04bcf9a3c326f846d8f86f516d

[ INFO ] Loading detection model to the MYRIAD plugin

[ 258.496862] vhci_hcd: connection closed

[ 258.496978] vhci_hcd: stop threads

[ 258.497247] vhci_hcd: release socket

[ 258.497870] vhci_hcd: disconnect device

[ 258.501591] usb 1-1: USB disconnect, device number 2

^C

After that, the device is no more visible on lsusb.