3 Replies Latest reply on Mar 6, 2015 1:33 PM by Intel_Peter

    USB OTG is inactive on reboot: how to troubleshoot?

    Alcor

      I'm building a wifi music controller which forwards a Griffin PowerMate's events over wifi to Sonos

       

      674328a0-ae11-11e4-929b-05605d4a87cd.jpg

       

      Everything works great: I've got dc power attached, and the OTG port is set up correctly.

      I'm using systemd to launch at startup (service attached),

      But while the service starts, USB is not activated. In fact, USB is not even recognized until I detach and re-attach the OTG cable.

       

      Any thoughts on how best to ensure USB is ready at startup?

       

      root@Edison-BGV:~# ls -l /sys/bus/usb/devices/

      root@Edison-BGV:~# lsusb

      unable to initialize libusb: -99

       

      ** re-plug USB**

      root@Edison-BGV:~# ls -l /sys/bus/usb/devices/

      lrwxrwxrwx    1 root     root             0 Mar  3 02:44 1-0:1.0 -> ../../../devices/pci0000:00/0000:00:11.0/dwc3-host.2/usb1/1-0:1.0

      lrwxrwxrwx    1 root     root             0 Mar  3 02:45 1-1 -> ../../../devices/pci0000:00/0000:00:11.0/dwc3-host.2/usb1/1-1

      lrwxrwxrwx    1 root     root             0 Mar  3 02:45 1-1:1.0 -> ../../../devices/pci0000:00/0000:00:11.0/dwc3-host.2/usb1/1-1/1-1:1.0

      lrwxrwxrwx    1 root     root             0 Mar  3 02:44 2-0:1.0 -> ../../../devices/pci0000:00/0000:00:11.0/dwc3-host.2/usb2/2-0:1.0

      lrwxrwxrwx    1 root     root             0 Mar  3 02:45 usb1 -> ../../../devices/pci0000:00/0000:00:11.0/dwc3-host.2/usb1

      lrwxrwxrwx    1 root     root             0 Mar  3 02:45 usb2 -> ../../../devices/pci0000:00/0000:00:11.0/dwc3-host.2/usb2

       

      root@Edison-BGV:~# lsusb

      Bus 001 Device 002: ID 077d:0410 Griffin Technology PowerMate

      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

      Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub


      DMSG log attached as well