3 Replies Latest reply on Feb 26, 2016 3:12 AM by Flo1991

    USB OTG on custom board not working, where to get detailed log?

    nsrb

      Hi!

      1) If Edison installed to MiniBreakout board and I insert pure OTG converter (which only pulls ID pin to GND) I see in dmesg:

      [   35.312141] pmic_ccsm pmic_ccsm: USB ID Detected. Notifying OTG driver

      [   36.180142] dwc3-host dwc3-host.2: xHCI Host Controller

      [   36.190280] dwc3-host dwc3-host.2: new USB bus registered, assigned bus number 1

      [   36.190586] dwc3-host dwc3-host.2: irq 34, io mem 0xf9100000

      [   36.190734] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

      [   36.190759] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

      [   36.190778] usb usb1: Product: xHCI Host Controller

      [   36.190798] usb usb1: Manufacturer: Linux 3.10.17-poky-edison+ dwc-xhci

      [   36.190817] usb usb1: SerialNumber: dwc3-host.2

      [   36.191692] xHCI xhci_add_endpoint called for root hub

      [   36.191712] xHCI xhci_check_bandwidth called for root hub

      [   36.191996] hub 1-0:1.0: USB hub found

      [   36.192042] hub 1-0:1.0: 1 port detected

      [   36.200406] dwc3-host dwc3-host.2: xHCI Host Controller

      [   36.200862] dwc3-host dwc3-host.2: new USB bus registered, assigned bus number 2

      [   36.201036] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003

      [   36.201061] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1

      [   36.201080] usb usb2: Product: xHCI Host Controller

      [   36.201100] usb usb2: Manufacturer: Linux 3.10.17-poky-edison+ dwc-xhci

      [   36.201119] usb usb2: SerialNumber: dwc3-host.2

      [   36.201811] xHCI xhci_add_endpoint called for root hub

      [   36.201831] xHCI xhci_check_bandwidth called for root hub

      [   36.202263] hub 2-0:1.0: USB hub found

      [   36.202309] hub 2-0:1.0: 1 port detected

      [   36.247677] pmic_ccsm pmic_ccsm: USB VBUS Detected. Notifying OTG driver

      root@edison:~#

      This is ok, lsusb now shows hub

      2) If I install Edison to my custom board (which have same USB header), when I insert OTG  converter dmesg only shows:

      [   36.794481] pmic_ccsm pmic_ccsm: USB ID Detected. Notifying OTG driver

      And nothing else. lsusb shows "unable to initialize libusb: -99" When unplug:

      [  175.135369] pmic_ccsm pmic_ccsm: USB ID Removed. Notifying OTG driver

      So can I find some detailed information about why USB Driver stopped detecting hub? Some errors etc? PSW pin on board stays in '0' before and after ID connect, FAULT

      is '3.3' . Thanks!