Modify

Opened 4 years ago

Last modified 3 years ago

#15239 new defect

USB Problems with TL-WR1043ND v2

Reported by: geduxas Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: USB hub disconnects Cc: geduxas@…

Description

Hello, i have USB problems with barer breaker firmware. i have 2 USB hubs both are with external power source and have 7 USB ports (2 USB hub IC's) both are from different manufacturers and with different usb hub ic's.

1 hub after reboot it works for some time, and disconnects

[ 25.660000] br-lan: port 1(eth1) entered forwarding state
[ 26.000000] br-lan: port 2(wlan0) entered forwarding state
[ 170.880000] usb 1-1.1.1.4: clear tt 1 (9082) error -71
[ 170.890000] usb 1-1.1.1.4: clear tt 1 (9082) error -71
[ 171.030000] usb 1-1.1.1: USB disconnect, device number 5
[ 171.030000] usb 1-1.1.1.3: USB disconnect, device number 6
[ 171.040000] usb 1-1.1.1.4.1: ch341_read_int_callback - usb_submit_urb failed with result -19

disconnect time goes random.

with second one (NEC 720114) works fine if one device is attached to USB hub. if attach more than one device we log will be filled with eroor

usb 1-1: new high-speed USB device number 81 using ehci-platform usb hub

number is increasing, and no devices show up with usbls command.

i can add any information if need, and make tests. Thank you.

Attachments (0)

Change History (9)

comment:1 Changed 4 years ago by geduxas

sorry, forgot to mention

BARRIER BREAKER (Bleeding Edge, r39854)

comment:2 Changed 4 years ago by geduxas

i think i found root of problem, all problems starts then i connect my printer and/or external USB storage.

Printer Samsung ML-2010,
External storage - some old iomega IDE to USB, i think there is some problems with USB 1.1 or maybe i am wrong. all what i could tell that everything was working fine with TL-WD1043ND v1 with Backfire 10.03.01

comment:3 Changed 4 years ago by geduxas

too early, to be happy,

after disconectind devoices with which was problems on second USB Hub

[   23.670000] eth0: link up (1000Mbps/Full duplex)
[   23.690000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   23.960000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   24.350000] br-lan: port 1(eth1) entered forwarding state
[   25.580000] br-lan: port 2(wlan0) entered forwarding state
[ 1583.030000] usb 1-1: USB disconnect, device number 2
[ 1583.030000] usb 1-1.2: ch341_read_int_callback - usb_submit_urb failed with result -19
[ 1583.040000] usb 1-1.2: USB disconnect, device number 3
[ 1583.060000] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 1583.060000] ch341 1-1.2:1.0: device disconnected
[ 1583.070000] usb 1-1.4: USB disconnect, device number 4
[ 1583.070000] usb 1-1.4.1: USB disconnect, device number 5
[ 1583.090000] Buffer I/O error on device sda1, logical block 593372
[ 1583.090000] EXT4-fs warning (device sda1): ext4_end_bio:286: I/O error writing to inode 131247 (offset 0 size 4096 starting block 593629)
[ 1583.090000] Buffer I/O error on device sda1, logical block 593385

comment:4 Changed 4 years ago by anonymous

It's a known problem. USB2 works. USB1 sometimes. If you connect a USB2 hub between the USB1 the problem will go away.

comment:5 Changed 4 years ago by geduxas

But all devices are USB2, all problems comes then i connect devices over usb hub, if i connect device directly - no problems.

comment:6 Changed 4 years ago by musti@…

I am observing USB problems as well, where Logitech C270 webcam fails to work due to some USB problem as well as other devices, such as boards using ACM driver hanging randomly.

The devices are connected via a USB 2.0 hub.

[58664.090000] uvcvideo: Found UVC 1.00 device <unnamed> (046d:080c)
[58664.130000] input: UVC Camera (046d:080c) as /devices/platform/ehci-platform.                     0/usb1/1-1/1-1.1/1-1.1:1.0/input/input47
[58664.850000] usb 1-1.1: USB disconnect, device number 58
[58664.850000] uvcvideo: Failed to resubmit video URB (-19).
[58664.850000] uvcvideo: Failed to resubmit video URB (-19).
[58664.860000] uvcvideo: Failed to resubmit video URB (-19).
[58664.860000] uvcvideo: Failed to resubmit video URB (-19).
[58664.870000] uvcvideo: Failed to resubmit video URB (-19).
[58665.160000] usb 1-1.1: new high-speed USB device number 59 using ehci-platfor                     m
[58665.400000] uvcvideo: Found UVC 1.00 device <unnamed> (046d:080c)
[58665.440000] input: UVC Camera (046d:080c) as /devices/platform/ehci-platform.                     0/usb1/1-1/1-1.1/1-1.1:1.0/input/input48
[58665.590000] uvcvideo: Failed to query (GET_CUR) UVC control 2 on unit 2: -32                      (exp. 2).
[58665.610000] uvcvideo: Failed to query (GET_DEF) UVC control 3 on unit 2: -32                      (exp. 2).
[58670.620000] uvcvideo: Failed to set UVC commit control : -145 (exp. 26).

comment:7 Changed 4 years ago by musti@…

Without the USB hub, the device just gets repeatedly disconnected.

[ 1736.870000] usb 1-1: USB disconnect, device number 72
[ 1737.210000] usb 1-1: new high-speed USB device number 73 using ehci-platform
[ 1737.490000] uvcvideo: Found UVC 1.00 device <unnamed> (046d:080c)
[ 1737.530000] input: UVC Camera (046d:080c) as /devices/platform/ehci-platform.                                  0/usb1/1-1/1-1:1.0/input/input69

comment:8 Changed 4 years ago by jernej@…

(Subscribed to ticket update notifications.)

comment:9 Changed 3 years ago by ericwong

I have a similar problem on my TL-WR1043ND v2 when using USB hub on Attitude Adjustment, to be exact, I am using Gargoyle v1.6.2.
I tried two different USB hub and they show different behaviour.

One hub does not work at all. With USB hub and two USB storage devices connected, I get this in dmesg after reboot.

[   85.060000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   86.070000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   87.080000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   88.090000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   89.100000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   89.100000] hub 1-1.1:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[   90.120000] hub 1-1.1:1.0: cannot disable port 1 (err = -145)
[   91.130000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   92.140000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   93.150000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   94.160000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   95.170000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   95.170000] hub 1-1.1:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[   96.190000] hub 1-1.1:1.0: cannot disable port 1 (err = -145)
[   97.200000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   98.210000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[   99.220000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[  100.230000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[  101.240000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[  101.240000] hub 1-1.1:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[  102.260000] hub 1-1.1:1.0: cannot disable port 1 (err = -145)
[  103.270000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[  104.280000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[  105.290000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[  106.300000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[  107.310000] hub 1-1.1:1.0: cannot reset port 1 (err = -145)
[  107.310000] hub 1-1.1:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
[  108.330000] hub 1-1.1:1.0: cannot disable port 1 (err = -145)
[  109.340000] hub 1-1.1:1.0: cannot disable port 1 (err = -145)
[  109.340000] sd 1:0:0:1: Device offlined - not ready after error recovery
[  109.350000] sd 1:0:0:1: [sdb] Unhandled error code
[  109.350000] sd 1:0:0:1: [sdb]  Result: hostbyte=0x05 driverbyte=0x00
[  109.360000] sd 1:0:0:1: [sdb] CDB: cdb[0]=0x28: 28 20 00 00 01 2a 00 00 08 00
[  109.370000] end_request: I/O error, dev sdb, sector 298
[  109.370000] Buffer I/O error on device sdb1, logical block 33
[  109.380000] sd 1:0:0:1: rejecting I/O to offline device
[  109.380000] sd 1:0:0:1: rejecting I/O to offline device
[  109.390000] sd 1:0:0:1: rejecting I/O to offline device
[  109.390000] sd 1:0:0:1: rejecting I/O to offline device
[  109.400000] sd 1:0:0:1: rejecting I/O to offline device
[  109.410000] sd 1:0:0:1: rejecting I/O to offline device
[  114.390000] hub 1-1.1:1.0: hub_port_status failed (err = -145)
[  125.790000] ipt_bandwidth: timezone shift of 780 minutes detected, adjusting
[  125.800000]                old minutes west=0, new minutes west=-780

The other hub works right after reboot but log shows USB will disconnect and reconnect after some hours, resulting in my vsftp server losing the USB storage mount after some hours. I need to reboot to fix this....
The log below is what is shown right after reboot with this hub that "works" on this router.

[   35.800000] usbcore: registered new interface driver cdc_acm
[   35.800000] cdc_acm: USB Abstract Control Model driver for USB modems and ISD                                                                                        N adapters
[   35.900000] usbcore: registered new interface driver usblp
[   35.920000] usbcore: registered new interface driver usbserial
[   35.930000] USB Serial support registered for generic
[   35.940000] usbcore: registered new interface driver usbserial_generic
[   35.940000] usbserial: USB Serial Driver core
[   36.010000] USB Serial support registered for Sierra USB modem
[   36.010000] usbcore: registered new interface driver sierra
[   36.020000] sierra: v.1.7.40:USB Driver for Sierra Wireless USB modems
[   36.040000] usbcore: registered new interface driver sierra_net
[   36.130000] usbcore: registered new interface driver ums-alauda
[   36.150000] usbcore: registered new interface driver ums-cypress
[   36.170000] usbcore: registered new interface driver ums-datafab
[   36.220000] usbcore: registered new interface driver ums-freecom
[   36.240000] usbcore: registered new interface driver ums-isd200
[   36.250000] usbcore: registered new interface driver ums-jumpshot
[   36.270000] usbcore: registered new interface driver ums-karma
[   36.290000] usbcore: registered new interface driver ums-sddr09
[   36.310000] usbcore: registered new interface driver ums-sddr55
[   36.330000] usbcore: registered new interface driver ums-usbat
[   36.410000] USB Serial support registered for GSM modem (1-port)
[   36.410000] usbcore: registered new interface driver option
[   36.420000] option: v0.7.2:USB Driver for GSM modems
[   36.480000] USB Serial support registered for Qualcomm USB modem
[   36.480000] usbcore: registered new interface driver qcserial
[   36.580000] fuse init (API version 7.18)
[   41.650000] eth1: link up (1000Mbps/Full duplex)
[   41.660000] device eth1 entered promiscuous mode
[   41.660000] br-lan: port 1(eth1) entered forwarding state
[   41.670000] br-lan: port 1(eth1) entered forwarding state
[   42.940000] eth0: link up (1000Mbps/Full duplex)
[   43.670000] br-lan: port 1(eth1) entered forwarding state
[   47.480000] device wlan0 entered promiscuous mode
[   47.650000] br-lan: port 2(wlan0) entered forwarding state
[   47.650000] br-lan: port 2(wlan0) entered forwarding state
[   49.650000] br-lan: port 2(wlan0) entered forwarding state
[   53.500000] disktype: sending ioctl 5305 to a partition!
[   53.510000] disktype: sending ioctl 5305 to a partition!
[   54.270000] disktype: sending ioctl 5305 to a partition!
[   54.270000] disktype: sending ioctl 5305 to a partition!
[   57.380000] disktype: sending ioctl 5305 to a partition!
[   57.380000] disktype: sending ioctl 5305 to a partition!
[   57.970000] disktype: sending ioctl 5305 to a partition!
[   57.970000] disktype: sending ioctl 5305 to a partition!
[   59.410000] disktype: sending ioctl 5305 to a partition!
[   59.410000] disktype: sending ioctl 5305 to a partition!
[   60.680000] disktype: sending ioctl 5305 to a partition!
[   60.680000] disktype: sending ioctl 5305 to a partition!
[   63.230000] disktype: sending ioctl 5305 to a partition!
[   63.230000] disktype: sending ioctl 5305 to a partition!
[   63.830000] disktype: sending ioctl 5305 to a partition!
[   63.830000] disktype: sending ioctl 5305 to a partition!
[   65.200000] disktype: sending ioctl 5305 to a partition!
[   65.200000] disktype: sending ioctl 5305 to a partition!
[   65.800000] disktype: sending ioctl 5305 to a partition!
[   65.810000] disktype: sending ioctl 5305 to a partition!
[   67.160000] disktype: sending ioctl 5305 to a partition!
[   67.160000] disktype: sending ioctl 5305 to a partition!
[   67.760000] disktype: sending ioctl 5305 to a partition!
[   67.760000] disktype: sending ioctl 5305 to a partition!

Note: the same USB hub and USB storage devices works fine on TL-WR1043ND v1. All hardware are defintely working when through a computer.

Last edited 3 years ago by ericwong (previous) (diff)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.