This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: USB Hub device identification issue

Part Number: AM5728
Other Parts Discussed in Thread: TUSB8041

I used AM57X to connect two USB HUB chips, respectively, when the USB3.0 HUB chip and the USB2.0 HUBchip, found that at the same time access to two USB2.0 and two USB3.0 U disk, occasionally one of them can not be identified. Without identification, only USB blocks can be identified, but partitions cannot be identified. anybody please help me to solve this problem          

Note: the USB2.0 HUB is TUSB4041IPAP ,USB3.0 HUB is TUSB8020BIPHP

  • What software are you using? Which version?
  • tks,Biser,My software is processor sdk 3.0 and the kernel version 4.4.12
  • I don't think I understand your description. Is this on your custom board or TI am57x reference evm? If former, are the two hubs are external hubs? or internally on the board? Please provide some kernel logs to describe the problem.

    What is the "USB blocks" in your description? is it the USB disk?
  • HI,when i connect all the device (4 usb storage,one 4G module,one touch screen) as described in the block diagram,sometimes them can be all detected When the board be powered up,and sometimes  can not be .the touch screen does not work the most seriously 

    the kernel logs Copy as follows:

    1.kernel logs when them all be detected :
    root@am57xx-evm:~/igh_test# df -h
    Filesystem                Size      Used Available Use% Mounted on
    /dev/root                 7.0G      2.4G      4.2G  36% /
    devtmpfs                820.3M      4.0K    820.3M   0% /dev
    tmpfs                   912.5M         0    912.5M   0% /dev/shm
    tmpfs                   912.5M      9.7M    902.8M   1% /run
    tmpfs                   912.5M         0    912.5M   0% /sys/fs/cgroup
    tmpfs                   912.5M     32.8M    879.7M   4% /tmp
    tmpfs                    16.0M         0     16.0M   0% /media/ram
    tmpfs                    50.0M     20.0K     50.0M   0% /var/volatile                                             
    /dev/mmcblk0p1           68.9M    366.5K     68.5M   1% /run/media/mmcblk0p1                                      
    /dev/sda1                29.2G      1.4G     26.3G   5% /run/media/sda1                                           
    tmpfs                   182.5M         0    182.5M   0% /run/user/0                                               
    /dev/sdb4                 3.6G      2.0G      1.7G  55% /run/media/sdb4                                           
    /dev/sdc1                14.4G     39.5M     14.4G   0% /run/media/sdc1                                           
    /dev/sdd1                14.4G     47.6M     14.4G   0% /run/media/sdd1                                           
    /dev/sde1                14.4G      4.5G      9.9G  31% /run/media/sde1 


    root@am57xx-evm:~/igh_test# lsusb
    Bus 003 Device 004: ID 12d1:15c1 Huawei Technologies Co., Ltd.
    Bus 003 Device 003: ID 2386:310f 
    Bus 003 Device 006: ID 0930:6544 Toshiba Corp. TransMemory-Mini / Kingston DataTraveler 2.0 Stick (2GB)
    Bus 003 Device 005: ID 058f:6387 Alcor Micro Corp. Flash Drive
    Bus 002 Device 004: ID 0951:1666 Kingston Technology DataTraveler G4
    Bus 002 Device 003: ID 0951:1666 Kingston Technology DataTraveler G4
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation
    Bus 003 Device 002: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation
    Bus 002 Device 002: ID 0451:8025 Texas Instruments, Inc.
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation
    Bus 001 Device 002: ID 0451:8027 Texas Instruments, Inc.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation


    dmesg | grep usb
    root@am57xx-evm:~/igh_test# dmesg | grep usb
    [    0.457846] usbcore: registered new interface driver usbfs
    [    0.457903] usbcore: registered new interface driver hub
    [    0.457981] usbcore: registered new device driver usb
    [    1.910100] usbcore: registered new interface driver pegasus
    [    1.915848] usbcore: registered new interface driver asix
    [    1.921330] usbcore: registered new interface driver ax88179_178a
    [    1.927492] usbcore: registered new interface driver cdc_ether
    [    1.933435] usbcore: registered new interface driver smsc75xx
    [    1.939288] usbcore: registered new interface driver smsc95xx
    [    1.945104] usbcore: registered new interface driver net1080
    [    1.950850] usbcore: registered new interface driver cdc_subset
    [    1.956840] usbcore: registered new interface driver zaurus
    [    1.962533] usbcore: registered new interface driver cdc_ncm
    [    1.968286] usbcore: registered new interface driver cdc_mbim
    [    2.013850] usbcore: registered new interface driver cdc_wdm
    [    2.019616] usbcore: registered new interface driver usb-storage
    [    2.025734] usbcore: registered new interface driver usbserial
    [    2.031652] usbcore: registered new interface driver option
    [    2.037279] usbserial: USB Serial support registered for GSM modem (1-port)
    [    2.374442] usbcore: registered new interface driver usbhid
    [    2.374445] usbhid: USB HID core driver
    [    2.698169] ldousb: disabling
    [    9.500774] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.                       
    [    9.823093] usb 1-1: new high-speed USB device number 2 using xhci-hcd                                         
    [    9.848025] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd                                         
    [   10.273603] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.                       
    [   10.558021] usb 3-1: new high-speed USB device number 2 using xhci-hcd                                         
    [   11.029254] usb 3-1.3: new full-speed USB device number 3 using xhci-hcd                                       
    [   11.142155] usb 3-1.3: ep 0x2 - rounding interval to 64 microframes, ep desc says 80 microframes               
    [   11.188854] input: Raydium Corporation Raydium Touch System as /devices/platform/44000000.ocp/488c0000.omap_dwc1
    [   11.209847] hid-multitouch 0003:2386:310F.0001: input,hidraw0: USB HID v1.10 Device [Raydium Corporation Raydiu0
    [   11.308006] usb 3-1.4: new high-speed USB device number 4 using xhci-hcd                                       
    [   11.442981] cdc_ether 3-1.4:2.0 usb0: register 'cdc_ether' at usb-xhci-hcd.3.auto-1.4, CDC Ethernet Device, 02:0
    [   11.496549] usb 3-1.4: GSM modem (1-port) converter now attached to ttyUSB0                                    
    [   11.544855] usb 3-1.4: GSM modem (1-port) converter now attached to ttyUSB1                                    
    [   11.560049] usb 3-1.4: GSM modem (1-port) converter now attached to ttyUSB2                                    
    [   11.583117] usb 3-1.4: GSM modem (1-port) converter now attached to ttyUSB3                                    
    [   11.610632] usb 3-1.4: GSM modem (1-port) converter now attached to ttyUSB4                                    
    [  187.917979] usb 3-1.1: new high-speed USB device number 5 using xhci-hcd                                       
    [  188.180788] usb-storage 3-1.1:1.0: USB Mass Storage device detected                                            
    [  188.182543] scsi host1: usb-storage 3-1.1:1.0                                                                  
    [  192.527979] usb 3-1.2: new high-speed USB device number 6 using xhci-hcd                                       
    [  192.632248] usb 3-1.2: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes            
    [  192.632428] usb 3-1.2: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes             
    [  192.633258] usb-storage 3-1.2:1.0: USB Mass Storage device detected                                            
    [  192.648374] scsi host2: usb-storage 3-1.2:1.0                                                                  
    [  198.618372] usb 2-1.1: new SuperSpeed USB device number 3 using xhci-hcd                                       
    [  198.656472] usb-storage 2-1.1:1.0: USB Mass Storage device detected                                            
    [  198.666835] scsi host3: usb-storage 2-1.1:1.0                                                                  
    [  202.758023] usb 2-1.2: new SuperSpeed USB device number 4 using xhci-hcd                                       
    [  202.781854] usb-storage 2-1.2:1.0: USB Mass Storage device detected                                            
    [  202.798330] scsi host4: usb-storage 2-1.2:1.0 


    root@am57xx-evm:~/igh_test# dmesg | grep hub                                                                      
    [    0.457903] usbcore: registered new interface driver hub                                                       
    [    9.475705] hub 1-0:1.0: USB hub found                                                                         
    [    9.488045] hub 1-0:1.0: 1 port detected                                                                       
    [    9.526694] hub 2-0:1.0: USB hub found                                                                         
    [    9.526727] hub 2-0:1.0: 1 port detected                                                                       
    [    9.882740] hub 2-1:1.0: USB hub found                                                                         
    [    9.886577] hub 2-1:1.0: 2 ports detected                                                                      
    [    9.980429] hub 1-1:1.0: USB hub found                                                                         
    [    9.984368] hub 1-1:1.0: 2 ports detected                                                                      
    [   10.233653] hub 3-0:1.0: USB hub found                                                                         
    [   10.237503] hub 3-0:1.0: 1 port detected                                                                       
    [   10.291658] hub 4-0:1.0: USB hub found                                                                         
    [   10.291687] hub 4-0:1.0: 1 port detected                                                                       
    [   10.721790] hub 3-1:1.0: USB hub found                                                                         
    [   10.729210] hub 3-1:1.0: 4 ports detected

    2. logs when them can not all be detected :
    root@am57xx-evm:~# df -h
    Filesystem                Size      Used Available Use% Mounted on
    /dev/root                 7.0G      2.4G      4.2G  36% /
    devtmpfs                820.3M      4.0K    820.3M   0% /dev
    tmpfs                   912.5M         0    912.5M   0% /dev/shm
    tmpfs                   912.5M      9.7M    902.8M   1% /run
    tmpfs                   912.5M         0    912.5M   0% /sys/fs/cgroup
    tmpfs                   912.5M     32.8M    879.7M   4% /tmp
    tmpfs                    50.0M     16.0K     50.0M   0% /var/volatile
    tmpfs                    16.0M         0     16.0M   0% /media/ram
    /dev/mmcblk0p1           68.9M    366.5K     68.5M   1% /run/media/mmcblk0p1
    /dev/sda1                29.2G      1.4G     26.3G   5% /run/media/sda1
    /dev/sdb1                14.4G     47.6M     14.4G   0% /run/media/sdb1
    /dev/sde1                14.4G     39.5M     14.4G   0% /run/media/sde1
    /dev/sdc4                 3.6G      2.0G      1.7G  55% /run/media/sdc4
    tmpfs                   182.5M         0    182.5M   0% /run/user/0


    root@am57xx-evm:~# lsusb
    Bus 003 Device 006: ID 12d1:15c1 Huawei Technologies Co., Ltd.
    Bus 003 Device 005: ID 2386:310f 
    Bus 003 Device 004: ID 0930:6544 Toshiba Corp. TransMemory-Mini / Kingston DataTraveler 2.0 Stick (2GB)
    Bus 003 Device 003: ID 058f:6387 Alcor Micro Corp. Flash Drive                                                    
    Bus 002 Device 004: ID 13fe:5500 Kingston Technology Company Inc.                                                 
    Bus 002 Device 003: ID 0951:1666 Kingston Technology DataTraveler G4                                              
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation                                                                 
    Bus 003 Device 002: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub                                      
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation                                                                 
    Bus 002 Device 002: ID 0451:8025 Texas Instruments, Inc.                                                          
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation                                                                 
    Bus 001 Device 002: ID 0451:8027 Texas Instruments, Inc.                                                          
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 

    root@am57xx-evm:~# dmesg | grep usb
    [    0.457869] usbcore: registered new interface driver usbfs
    [    0.457926] usbcore: registered new interface driver hub
    [    0.458006] usbcore: registered new device driver usb
    [    1.910271] usbcore: registered new interface driver pegasus
    [    1.916016] usbcore: registered new interface driver asix
    [    1.921503] usbcore: registered new interface driver ax88179_178a
    [    1.927665] usbcore: registered new interface driver cdc_ether
    [    1.933613] usbcore: registered new interface driver smsc75xx
    [    1.939468] usbcore: registered new interface driver smsc95xx
    [    1.945285] usbcore: registered new interface driver net1080
    [    1.951037] usbcore: registered new interface driver cdc_subset
    [    1.957024] usbcore: registered new interface driver zaurus
    [    1.962718] usbcore: registered new interface driver cdc_ncm
    [    1.968470] usbcore: registered new interface driver cdc_mbim
    [    2.014035] usbcore: registered new interface driver cdc_wdm
    [    2.019799] usbcore: registered new interface driver usb-storage
    [    2.025915] usbcore: registered new interface driver usbserial
    [    2.031831] usbcore: registered new interface driver option
    [    2.037459] usbserial: USB Serial support registered for GSM modem (1-port)
    [    2.374663] usbcore: registered new interface driver usbhid
    [    2.380277] usbhid: USB HID core driver
    [    2.664250] ldousb: disabling
    [    8.362821] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.                       
    [    8.657960] usb 1-1: new high-speed USB device number 2 using xhci-hcd                                         
    [    8.728522] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd                                         
    [    9.158941] usb 2-1.1: new SuperSpeed USB device number 3 using xhci-hcd                                       
    [    9.168967] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.                       
    [    9.197538] usb-storage 2-1.1:1.0: USB Mass Storage device detected                                            
    [    9.265763] scsi host1: usb-storage 2-1.1:1.0                                                                  
    [    9.428020] usb 3-1: new high-speed USB device number 2 using xhci-hcd                                         
    [    9.887929] usb 3-1.1: new high-speed USB device number 3 using xhci-hcd                                       
    [   10.171395] usb-storage 3-1.1:1.0: USB Mass Storage device detected                                            
    [   10.193208] scsi host2: usb-storage 3-1.1:1.0                                                                  
    [   10.277918] usb 3-1.2: new high-speed USB device number 4 using xhci-hcd                                       
    [   10.398047] usb 2-1.2: new SuperSpeed USB device number 4 using xhci-hcd                                       
    [   10.418179] usb 3-1.2: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes            
    [   10.438350] usb 3-1.2: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes             
    [   10.438477] usb-storage 2-1.2:1.0: USB Mass Storage device detected                                            
    [   10.476624] scsi host3: usb-storage 2-1.2:1.0                                                                  
    [   10.486887] usb-storage 3-1.2:1.0: USB Mass Storage device detected                                            
    [   10.500952] scsi host4: usb-storage 3-1.2:1.0                                                                  
    [   10.587944] usb 3-1.3: new full-speed USB device number 5 using xhci-hcd                                       
    [   10.692725] usb 3-1.3: ep 0x2 - rounding interval to 64 microframes, ep desc says 80 microframes               
    [   10.743193] input: Raydium Corporation Raydium Touch System as /devices/platform/44000000.ocp/488c0000.omap_dwc1
    [   10.762037] hid-multitouch 0003:2386:310F.0001: input,hidraw0: USB HID v1.10 Device [Raydium Corporation Raydiu0
    [   10.857930] usb 3-1.4: new high-speed USB device number 6 using xhci-hcd                                       
    [   10.964742] cdc_ether 3-1.4:2.0 usb0: register 'cdc_ether' at usb-xhci-hcd.3.auto-1.4, CDC Ethernet Device, 02:0
    [   10.994436] usb 3-1.4: GSM modem (1-port) converter now attached to ttyUSB0                                    
    [   11.008839] usb 3-1.4: GSM modem (1-port) converter now attached to ttyUSB1                                    
    [   11.023040] usb 3-1.4: GSM modem (1-port) converter now attached to ttyUSB2                                    
    [   11.042488] usb 3-1.4: GSM modem (1-port) converter now attached to ttyUSB3                                    
    [   11.057175] usb 3-1.4: GSM modem (1-port) converter now attached to ttyUSB4  

    root@am57xx-evm:~# dmesg | grep hub                                                                               
    [    0.457926] usbcore: registered new interface driver hub                                                       
    [    8.308902] hub 1-0:1.0: USB hub found                                                                         
    [    8.320017] hub 1-0:1.0: 1 port detected                                                                       
    [    8.375731] hub 2-0:1.0: USB hub found                                                                         
    [    8.381538] hub 2-0:1.0: 1 port detected                                                                       
    [    8.762978] hub 2-1:1.0: USB hub found                                                                         
    [    8.767084] hub 2-1:1.0: 2 ports detected                                                                      
    [    8.810986] hub 1-1:1.0: USB hub found                                                                         
    [    8.811269] hub 1-1:1.0: 2 ports detected                                                                      
    [    8.951470] hub 3-0:1.0: USB hub found                                                                         
    [    8.955541] hub 3-0:1.0: 1 port detected                                                                       
    [    9.188288] hub 4-0:1.0: USB hub found                                                                         
    [    9.192146] hub 4-0:1.0: 1 port detected                                                                       
    [    9.585390] hub 3-1:1.0: USB hub found                                                                         
    [    9.589940] hub 3-1:1.0: 4 ports detected 

  • I see in the working case, the lsusb log shows two Kingston DataTraverler G4, but the failure case shows one G4 and another as "Kingston Technology Company Inc.", VID:PID is 13fe:5500.

    Is this the issue you are asking for help? Are you sure you used all the same usb devices in both cases?

    Please attached the full kernel dmesg logs for both cases. The partial logs from 'grep usb' loss many useful information.