On 5/9/17 5:31 , cristian pancià wrote:
> This is something I'm interested too,i mean the way to debug and trying to
> work it out ,any docs and info to similar probs would be very informative
> thanks a lot

Unfortunately, I don't have any good documentation on debugging this.
The best starting place is the data from mdb -ke '::prtusb' and then
from there, I usually put together some DTrace scripts to try and figure
out what exactly is going on.

Robert

> On May 9, 2017 3:46 AM, "Robert Mustacchi" <[email protected]> wrote:
> 
>> On 5/5/17 12:51 , Jeff Goeke-Smith wrote:
>>> On Fri, May 5, 2017 at 12:49 PM Jason King <[email protected]>
>>> wrote:
>>>
>>>> Might as well shoot off an email with whatever diagnostic messages you
>>>> have and the version of SmartOS you’re running.  While no guarantees
>>>> someone will be able to help, it can’t hurt either.
>>>>
>>>
>>>
>>> As suggested, here's what I'm seeing.
>>>
>>> SmartOS version:
>>> [root@headnode (us-elns-workshop) /kernel/drv]# uname -a
>>> SunOS headnode 5.11 joyent_20170413T062134Z i86pc i386 i86pc
>>>
>>> dmesg during the usb attach:
>>> 2017-05-04T21:14:40.717522+00:00 headnode usba: [ID 912658 kern.info]
>> USB
>>> 2.0 device (usb1a40,101) operating at hi speed (USB 2.x) on USB 2.0
>>> external hub: hub@2, hubd3 at bus address 6
>>> 2017-05-04T21:14:40.717587+00:00 headnode usba: [ID 349649 kern.info]
>> USB
>>> 2.0 Hub [MTT]
>>> 2017-05-04T21:14:40.717598+00:00 headnode genunix: [ID 936769 kern.info]
>>> hubd3 is /pci@0,0/pci1028,4fe@1a/hub@1/hub@2
>>> 2017-05-04T21:14:40.717610+00:00 headnode genunix: [ID 408114 kern.info]
>>> /pci@0,0/pci1028,4fe@1a/hub@1/hub@2 (hubd3) online
>>> 2017-05-04T21:14:41.853146+00:00 headnode usba: [ID 912658 kern.info]
>> USB
>>> 2.0 device (usb403,6001) operating at full speed (USB 1.x) on USB 2.0
>>> external hub: device@1, usbftdi0 at bus address 7
>>> 2017-05-04T21:14:41.853183+00:00 headnode usba: [ID 349649 kern.info]
>> FTDI
>>> FT232R USB UART ST202314
>>> 2017-05-04T21:14:41.853195+00:00 headnode genunix: [ID 936769 kern.info]
>>> usbftdi0 is /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/device@1
>>> 2017-05-04T21:14:41.853209+00:00 headnode genunix: [ID 408114 kern.info]
>>> /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/device@1 (usbftdi0) online
>>> 2017-05-04T21:14:41.856926+00:00 headnode usba: [ID 912658 kern.info]
>> USB
>>> 2.0 device (usb403,6001) operating at full speed (USB 1.x) on USB 2.0
>>> external hub: device@2, usbftdi1 at bus address 8
>>> 2017-05-04T21:14:41.856957+00:00 headnode usba: [ID 349649 kern.info]
>> FTDI
>>> FT232R USB UART ST203313
>>> 2017-05-04T21:14:41.856967+00:00 headnode genunix: [ID 936769 kern.info]
>>> usbftdi1 is /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/device@2
>>> 2017-05-04T21:14:41.856982+00:00 headnode genunix: [ID 408114 kern.info]
>>> /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/device@2 (usbftdi1) online
>>> 2017-05-04T21:14:41.983547+00:00 headnode usba: [ID 912658 kern.info]
>> USB
>>> 2.0 device (usb1a40,201) operating at hi speed (USB 2.x) on USB 2.0
>>> external hub: hub@3, hubd4 at bus address 9
>>> 2017-05-04T21:14:41.983585+00:00 headnode usba: [ID 349649 kern.info]
>> USB
>>> 2.0 Hub [MTT]
>>> 2017-05-04T21:14:41.983593+00:00 headnode genunix: [ID 936769 kern.info]
>>> hubd4 is /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@3
>>> 2017-05-04T21:14:41.983604+00:00 headnode genunix: [ID 408114 kern.info]
>>> /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@3 (hubd4) online
>>> 2017-05-04T21:14:42.109639+00:00 headnode usba: [ID 912658 kern.info]
>> USB
>>> 2.0 device (usb1a40,201) operating at hi speed (USB 2.x) on USB 2.0
>>> external hub: hub@4, hubd5 at bus address 10
>>> 2017-05-04T21:14:42.109670+00:00 headnode usba: [ID 349649 kern.info]
>> USB
>>> 2.0 Hub [MTT]
>>> 2017-05-04T21:14:42.109679+00:00 headnode genunix: [ID 936769 kern.info]
>>> hubd5 is /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@4
>>> 2017-05-04T21:14:42.109693+00:00 headnode genunix: [ID 408114 kern.info]
>>> /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@4 (hubd5) online
>>> 2017-05-04T21:14:44.040369+00:00 headnode usba: [ID 912658 kern.info]
>> USB
>>> 2.0 device (usb403,6001) operating at full speed (USB 1.x) on USB 2.0
>>> external hub: device@1, usbftdi2 at bus address 11
>>> 2017-05-04T21:14:44.040426+00:00 headnode usba: [ID 349649 kern.info]
>> FTDI
>>> FT232R USB UART ST203316
>>> 2017-05-04T21:14:44.040437+00:00 headnode genunix: [ID 936769 kern.info]
>>> usbftdi2 is /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@3/device@1
>>> 2017-05-04T21:14:44.040456+00:00 headnode genunix: [ID 408114 kern.info]
>>> /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@3/device@1 (usbftdi2) online
>>> 2017-05-04T21:14:44.044848+00:00 headnode usba: [ID 912658 kern.info]
>> USB
>>> 2.0 device (usb403,6001) operating at full speed (USB 1.x) on USB 2.0
>>> external hub: device@2, usbftdi3 at bus address 12
>>> 2017-05-04T21:14:44.044878+00:00 headnode usba: [ID 349649 kern.info]
>> FTDI
>>> FT232R USB UART ST203315
>>> 2017-05-04T21:14:44.044888+00:00 headnode genunix: [ID 936769 kern.info]
>>> usbftdi3 is /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@3/device@2
>>> 2017-05-04T21:14:44.044904+00:00 headnode genunix: [ID 408114 kern.info]
>>> /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@3/device@2 (usbftdi3) online
>>> 2017-05-04T21:14:47.907735+00:00 headnode usba: [ID 691482 kern.warning]
>>> WARNING: /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@4 (hubd5): Connecting
>>> device on port 1 failed
>>> 2017-05-04T21:14:51.747792+00:00 headnode usba: [ID 691482 kern.warning]
>>> WARNING: /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@4 (hubd5): Connecting
>>> device on port 2 failed
>>> 2017-05-04T21:14:55.587838+00:00 headnode usba: [ID 691482 kern.warning]
>>> WARNING: /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@4 (hubd5): Connecting
>>> device on port 3 failed
>>> 2017-05-04T21:14:59.427952+00:00 headnode usba: [ID 691482 kern.warning]
>>> WARNING: /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@4 (hubd5): Connecting
>>> device on port 4 failed
>>> 2017-05-04T21:15:03.267924+00:00 headnode usba: [ID 691482 kern.warning]
>>> WARNING: /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@4 (hubd5): Connecting
>>> device on port 5 failed
>>> 2017-05-04T21:15:07.107994+00:00 headnode usba: [ID 691482 kern.warning]
>>> WARNING: /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@4 (hubd5): Connecting
>>> device on port 6 failed
>>> 2017-05-04T21:15:10.948048+00:00 headnode usba: [ID 691482 kern.warning]
>>> WARNING: /pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@4 (hubd5): Connecting
>>> device on port 7 failed
>>> 2017-05-04T21:30:40.335463+00:00 headnode rsyslogd: -- MARK --
>>>
>>> This seemed relevant:
>>> [root@headnode (us-elns-workshop) /kernel/drv]# cfgadm -l -v
>>> Ap_Id                          Receptacle   Occupant     Condition
>>>  Information
>>> When         Type         Busy     Phys_Id
>>> c1                             connected    configured   unknown
>>> unavailable  scsi-bus     n        /devices/pci@0,0/pci8086,3c04@2
>>> /pci1028,1f4e@0:scsi
>>> sata1/0                        empty        unconfigured ok
>>> unavailable  sata-port    n        /devices/pci@0,0/pci1028,4fe@1f,2:0
>>> sata1/1                        empty        unconfigured ok
>>> unavailable  sata-port    n        /devices/pci@0,0/pci1028,4fe@1f,2:1
>>> sata1/2                        empty        unconfigured ok
>>> unavailable  sata-port    n        /devices/pci@0,0/pci1028,4fe@1f,2:2
>>> sata1/3                        empty        unconfigured ok
>>> unavailable  sata-port    n        /devices/pci@0,0/pci1028,4fe@1f,2:3
>>> sata1/4                        empty        unconfigured ok
>>> unavailable  sata-port    n        /devices/pci@0,0/pci1028,4fe@1f,2:4
>>> sata1/5                        empty        unconfigured ok
>>> unavailable  sata-port    n        /devices/pci@0,0/pci1028,4fe@1f,2:5
>>> usb1/1                         connected    configured   ok         Mfg:
>>> <undef>  Product: <undef>  NConfigs: 1  Config: 0  <no cfg str descr>
>>> unavailable  usb-hub      n        /devices/pci@0,0/pci1028,4fe@1a:1
>>> usb1/1.1                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>> :1.1
>>> usb1/1.2                       connected    configured   ok         Mfg:
>>> <undef>  Product: USB 2.0 Hub [MTT]  NConfigs: 1  Config: 0  <no cfg str
>>> descr>
>>> unavailable  usb-hub      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>> :1.2
>>> usb1/1.2.1                     connected    configured   ok         Mfg:
>>> FTDI  Product: FT232R USB UART  NConfigs: 1  Config: 0  <no cfg str
>> descr>
>>> unavailable  usb-device   n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2:1.2.1
>>> usb1/1.2.2                     connected    configured   ok         Mfg:
>>> FTDI  Product: FT232R USB UART  NConfigs: 1  Config: 0  <no cfg str
>> descr>
>>> unavailable  usb-device   n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2:1.2.2
>>> usb1/1.2.3                     connected    configured   ok         Mfg:
>>> <undef>  Product: USB 2.0 Hub [MTT]  NConfigs: 1  Config: 0  <no cfg str
>>> descr>
>>> unavailable  usb-hub      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2:1.2.3
>>> usb1/1.2.3.1                   connected    configured   ok         Mfg:
>>> FTDI  Product: FT232R USB UART  NConfigs: 1  Config: 0  <no cfg str
>> descr>
>>> unavailable  usb-device   n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@3:1.2.3.1
>>> usb1/1.2.3.2                   connected    configured   ok         Mfg:
>>> FTDI  Product: FT232R USB UART  NConfigs: 1  Config: 0  <no cfg str
>> descr>
>>> unavailable  usb-device   n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@3:1.2.3.2
>>> usb1/1.2.3.3                   connected    unconfigured ok         Mfg:
>>> FTDI  Product: FT232R USB UART  NConfigs: 1  Config: 0  <no cfg str
>> descr>
>>> unavailable  usb-device   n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@3:1.2.3.3
>>> usb1/1.2.3.4                   connected    unconfigured ok         Mfg:
>>> FTDI  Product: FT232R USB UART  NConfigs: 1  Config: 0  <no cfg str
>> descr>
>>> unavailable  usb-device   n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@3:1.2.3.4
>>> usb1/1.2.3.5                   connected    unconfigured ok         Mfg:
>>> FTDI  Product: FT232R USB UART  NConfigs: 1  Config: 0  <no cfg str
>> descr>
>>> unavailable  usb-device   n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@3:1.2.3.5
>>> usb1/1.2.3.6                   connected    unconfigured ok         Mfg:
>>> FTDI  Product: FT232R USB UART  NConfigs: 1  Config: 0  <no cfg str
>> descr>
>>> unavailable  usb-device   n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@3:1.2.3.6
>>> usb1/1.2.3.7                   connected    unconfigured ok         Mfg:
>>> FTDI  Product: FT232R USB UART  NConfigs: 1  Config: 0  <no cfg str
>> descr>
>>> unavailable  usb-device   n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@3:1.2.3.7
>>> usb1/1.2.4                     connected    configured   ok         Mfg:
>>> <undef>  Product: USB 2.0 Hub [MTT]  NConfigs: 1  Config: 0  <no cfg str
>>> descr>
>>> unavailable  usb-hub      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2:1.2.4
>>> usb1/1.2.4.1                   disconnected unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@4:1.2.4.1
>>> usb1/1.2.4.2                   disconnected unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@4:1.2.4.2
>>> usb1/1.2.4.3                   disconnected unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@4:1.2.4.3
>>> usb1/1.2.4.4                   disconnected unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@4:1.2.4.4
>>> usb1/1.2.4.5                   disconnected unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@4:1.2.4.5
>>> usb1/1.2.4.6                   disconnected unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@4:1.2.4.6
>>> usb1/1.2.4.7                   disconnected unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@2/hub@4:1.2.4.7
>>> usb1/1.3                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>> :1.3
>>> usb1/1.4                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>> :1.4
>>> usb1/1.5                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>> :1.5
>>> usb1/1.6                       connected    configured   ok         Mfg:
>> no
>>> manufacturer  Product: Gadget USB HUB  NConfigs: 1  Config: 0  <no cfg
>> str
>>> descr>
>>> unavailable  usb-hub      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>> :1.6
>>> usb1/1.6.1                     connected    configured   ok         Mfg:
>>> Avocent  Product: Keyboard/Mouse Function  NConfigs: 1  Config: 0  <no
>> cfg
>>> str descr>
>>> unavailable  usb-device   n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@6:1.6.1
>>> usb1/1.6.2                     empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@6:1.6.2
>>> usb1/1.6.3                     empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@6:1.6.3
>>> usb1/1.6.4                     connected    configured   ok         Mfg:
>>> Avocent  Product: Mass Storage Function  NConfigs: 1  Config: 0  <no cfg
>>> str descr>
>>> unavailable  usb-storage  n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@6:1.6.4
>>> usb1/1.6.5                     empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@6:1.6.5
>>> usb1/1.6.6                     empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a/hub@1
>>> /hub@6:1.6.6
>>> usb1/2                         empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1a:2
>>> usb2/1                         connected    configured   ok         Mfg:
>>> <undef>  Product: <undef>  NConfigs: 1  Config: 0  <no cfg str descr>
>>> unavailable  usb-hub      n        /devices/pci@0,0/pci1028,4fe@1d:1
>>> usb2/1.1                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1d/hub@1
>> :1.1
>>> usb2/1.2                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1d/hub@1
>> :1.2
>>> usb2/1.3                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1d/hub@1
>> :1.3
>>> usb2/1.4                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1d/hub@1
>> :1.4
>>> usb2/1.5                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1d/hub@1
>> :1.5
>>> usb2/1.6                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1d/hub@1
>> :1.6
>>> usb2/1.7                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1d/hub@1
>> :1.7
>>> usb2/1.8                       empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1d/hub@1
>> :1.8
>>> usb2/2                         empty        unconfigured ok
>>> unavailable  unknown      n        /devices/pci@0,0/pci1028,4fe@1d:2
>>> [root@headnode (us-elns-workshop) /kernel/drv]#
>>>
>>> When attached, I have the below 0 through 3 devices.  They appear to
>> work,
>>> as in, I can attach to them with screen.
>>>
>>> [root@headnode (us-elns-workshop) /dev/cua]# ls -la
>>> total 22
>>> drwxr-xr-x   8 root     root         512 May  4 21:15 .
>>> drwxr-xr-x 256 root     sys         4096 May  1 19:50 ..
>>> lrwxrwxrwx   1 root     root          62 May  4 21:15 0 ->
>>> ../../devices/pci@0,0/pci1028,4fe@1a/hub@1/hub@2/device@1:0,cu
>>> lrwxrwxrwx   1 root     root          62 May  4 21:15 1 ->
>>> ../../devices/pci@0,0/pci1028,4fe@1a/hub@1/hub@2/device@2:0,cu
>>> lrwxrwxrwx   1 root     root          68 May  4 21:15 2 ->
>>> ../../devices/pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@3/device@1:0,cu
>>> lrwxrwxrwx   1 root     root          68 May  4 21:15 3 ->
>>> ../../devices/pci@0,0/pci1028,4fe@1a/hub@1/hub@2/hub@3/device@2:0,cu
>>> lrwxrwxrwx   1 root     root          43 May  1 19:50 a ->
>>> ../../devices/pci@0,0/isa@1f/asy@1,3f8:a,cu
>>> lrwxrwxrwx   1 root     root          43 May  1 19:50 b ->
>>> ../../devices/pci@0,0/isa@1f/asy@1,2f8:b,cu
>>> [root@headnode (us-elns-workshop) /dev/cua]#
>>>
>>>
>>> Maybe that helps?  Suggestions?
>>
>> Hi Jeff,
>>
>> Based on some of the information you've provided, we could probably help
>> debug what's going on here, depending on your level of interest and work
>> to understanding where something's going wrong.
>>
>> Presuming that you'll have this set up for a little while, we can try
>> and figure out where exactly we're failing to connect some of these
>> devices. Is that something that you'd be interested in? I can't promise
>> it'll be the fastest path to getting you righted, but if you're
>> interested, and are willing to accept that it may take a bit of time
>> between having things to ask, I'd be happy to provide you with some next
>> steps in terms of what to look at.
>>
>> Robert
>>
> 
> 


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to