Page 1 of 1

[Solved] USB HDD resets on Pi Zero W

Posted: Tue Apr 30, 2019 9:28 am
by RDPUser
I've tried to make a little NAS with a PI Zero W and a USB HDD. First I've normally mounted the drive and shared that mount with samba. Sometimes the connections broke, so I tried USB redirector from Incentives Pro. There same result. After some time connection is broke.

Code: Select all

dmesg | grep usb
[    0.134487] usbcore: registered new interface driver usbfs
[    0.134623] usbcore: registered new interface driver hub
[    0.134859] usbcore: registered new device driver usb
[    0.354887] usbcore: registered new interface driver smsc95xx
[    0.388319] dwc_otg 20980000.usb: base=0xf0980000
[    0.840680] dwc_otg 20980000.usb: DWC OTG Controller
[    0.843378] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[    0.846095] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[    0.854133] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.856786] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.859384] usb usb1: Product: DWC OTG Controller
[    0.861922] usb usb1: Manufacturer: Linux 4.14.98+ dwc_otg_hcd
[    0.864534] usb usb1: SerialNumber: XXXXXXX.usb
[    0.874839] usbcore: registered new interface driver usb-storage
[    0.929534] usbcore: registered new interface driver usbhid
[    0.932140] usbhid: USB HID core driver
[    1.313589] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.555601] usb 1-1: New USB device found, idVendor=1058, idProduct=25a1
[    1.559144] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[    1.562212] usb 1-1: Product: Elements 25A1
[    1.565273] usb 1-1: Manufacturer: Western Digital
[    1.568212] usb 1-1: SerialNumber: XXXXXXX
[    1.574733] usb-storage 1-1:1.0: USB Mass Storage device detected
[    1.579540] scsi host0: usb-storage 1-1:1.0
[   11.903932] usbcore: registered new interface driver brcmfmac
[   13.722137] usbcore: registered new interface driver uas
[604783.150919] tusbd: loading out-of-tree module taints kernel.
[604783.156282] usbcore: registered new interface driver tusb-stub-driver
[605041.485867] tusbd: usbd_stub_reset: trying to reset device vid 1058 pid 25a1
[605041.771325] usb 1-1: reset high-speed USB device number 2 using dwc_otg
[605042.013303] tusbd: usbd_stub_reset: usb_reset_device returned 0
[615611.081945] usbsrvd: page allocation failure: order:5, mode:0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null)
[615611.081993] CPU: 0 PID: 16328 Comm: usbsrvd Tainted: G         C O    4.14.98+ #1200
[615611.082257] [<c0148460>] (__kmalloc) from [<bf06be3c>] (IIIllIllI+0x10c/0x394 [tusbd])
[615611.082355] [<bf06be3c>] (IIIllIllI [tusbd]) from [<bf069bc0>] (lIIllIIIl+0xa8/0x1ac [tusbd])
[615611.082428] [<bf069bc0>] (lIIllIIIl [tusbd]) from [<bf069d2c>] (IllllIlII+0x68/0xa0 [tusbd])
[615611.082501] [<bf069d2c>] (IllllIlII [tusbd]) from [<bf069d7c>] (IlIIllIll+0x18/0x1c [tusbd])
[615611.082571] [<bf069d7c>] (IlIIllIll [tusbd]) from [<bf063114>] (lIIlllIlI+0x34/0x48 [tusbd])
[615611.082618] [<bf063114>] (lIIlllIlI [tusbd]) from [<c016d9dc>] (do_vfs_ioctl+0x9c/0x754)
[615611.511567] tusbd: usbd_stub_reset: trying to reset device vid 1058 pid 25a1
[615611.719527] usb 1-1: reset high-speed USB device number 2 using dwc_otg
[615611.961747] tusbd: usbd_stub_reset: usb_reset_device returned 0
[621950.332477] usbsrvd: page allocation failure: order:5, mode:0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null)
[621950.332528] CPU: 0 PID: 13960 Comm: usbsrvd Tainted: G         C O    4.14.98+ #1200
[621950.332794] [<c0148460>] (__kmalloc) from [<bf06be3c>] (IIIllIllI+0x10c/0x394 [tusbd])
[621950.332876] [<bf06be3c>] (IIIllIllI [tusbd]) from [<bf069bc0>] (lIIllIIIl+0xa8/0x1ac [tusbd])
[621950.332950] [<bf069bc0>] (lIIllIIIl [tusbd]) from [<bf069d2c>] (IllllIlII+0x68/0xa0 [tusbd])
[621950.333022] [<bf069d2c>] (IllllIlII [tusbd]) from [<bf069d7c>] (IlIIllIll+0x18/0x1c [tusbd])
[621950.333091] [<bf069d7c>] (IlIIllIll [tusbd]) from [<bf063114>] (lIIlllIlI+0x34/0x48 [tusbd])
[621950.333139] [<bf063114>] (lIIlllIlI [tusbd]) from [<c016d9dc>] (do_vfs_ioctl+0x9c/0x754)
[621950.827920] tusbd: usbd_stub_reset: trying to reset device vid 1058 pid 25a1
[621951.034863] usb 1-1: reset high-speed USB device number 2 using dwc_otg
[621951.276094] tusbd: usbd_stub_reset: usb_reset_device returned 0
[621955.790866] usbsrvd: page allocation failure: order:5, mode:0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null)
[621955.790933] CPU: 0 PID: 13988 Comm: usbsrvd Tainted: G         C O    4.14.98+ #1200
[621955.791218] [<c0148460>] (__kmalloc) from [<bf06be3c>] (IIIllIllI+0x10c/0x394 [tusbd])
[621955.791318] [<bf06be3c>] (IIIllIllI [tusbd]) from [<bf069bc0>] (lIIllIIIl+0xa8/0x1ac [tusbd])
[621955.791411] [<bf069bc0>] (lIIllIIIl [tusbd]) from [<bf069d2c>] (IllllIlII+0x68/0xa0 [tusbd])
[621955.791498] [<bf069d2c>] (IllllIlII [tusbd]) from [<bf069d7c>] (IlIIllIll+0x18/0x1c [tusbd])
[621955.791571] [<bf069d7c>] (IlIIllIll [tusbd]) from [<bf063114>] (lIIlllIlI+0x34/0x48 [tusbd])
[621955.791631] [<bf063114>] (lIIlllIlI [tusbd]) from [<c016d9dc>] (do_vfs_ioctl+0x9c/0x754)
[621956.287177] tusbd: usbd_stub_reset: trying to reset device vid 1058 pid 25a1
[621956.494880] usb 1-1: reset high-speed USB device number 2 using dwc_otg
[621956.736157] tusbd: usbd_stub_reset: usb_reset_device returned 0
[622057.317084] usb-storage 1-1:1.0: USB Mass Storage device detected
[622057.317961] scsi host0: usb-storage 1-1:1.0
[622062.162774] tusbd: usbd_stub_reset: trying to reset device vid 1058 pid 25a1
[622062.426030] usb 1-1: reset high-speed USB device number 2 using dwc_otg
[622062.707168] tusbd: usbd_stub_reset: usb_reset_device returned 0
[643085.107289] usbsrvd: page allocation failure: order:5, mode:0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null)
[643085.107338] CPU: 0 PID: 14253 Comm: usbsrvd Tainted: G         C O    4.14.98+ #1200
[643085.107604] [<c0148460>] (__kmalloc) from [<bf06be3c>] (IIIllIllI+0x10c/0x394 [tusbd])
[643085.107686] [<bf06be3c>] (IIIllIllI [tusbd]) from [<bf069bc0>] (lIIllIIIl+0xa8/0x1ac [tusbd])
[643085.107760] [<bf069bc0>] (lIIllIIIl [tusbd]) from [<bf069d2c>] (IllllIlII+0x68/0xa0 [tusbd])
[643085.107831] [<bf069d2c>] (IllllIlII [tusbd]) from [<bf069d7c>] (IlIIllIll+0x18/0x1c [tusbd])
[643085.107902] [<bf069d7c>] (IlIIllIll [tusbd]) from [<bf063114>] (lIIlllIlI+0x34/0x48 [tusbd])
[643085.107949] [<bf063114>] (lIIlllIlI [tusbd]) from [<c016d9dc>] (do_vfs_ioctl+0x9c/0x754)
[643085.577696] tusbd: usbd_stub_reset: trying to reset device vid 1058 pid 25a1
[643085.785094] usb 1-1: reset high-speed USB device number 2 using dwc_otg
[643086.036751] tusbd: usbd_stub_reset: usb_reset_device returned 0
Powersupply is good quality 2 A, tests gave 2,5 A without strong voltage drop. Raspberry shows no throttling

Code: Select all

vcgencmd get_throttled
throttled=0x0
What could be the problem?

Update 17.07.2019: It was the powercable. RPi Zero W doesn't record any powerproblems, see Post in this thread https://www.raspberrypi.org/forums/view ... 8#p1501858

Re: USB HDD resets on Pi Zero W

Posted: Fri May 03, 2019 1:43 pm
by RDPUser
Can anyone help?

Re: USB HDD resets on Pi Zero W

Posted: Fri May 03, 2019 1:47 pm
by RaTTuS
power / dodgy leads
how is it connected
what are you using
full links to everything

Re: USB HDD resets on Pi Zero W

Posted: Fri May 03, 2019 10:41 pm
by RDPUser
It is connected via the original cable and on USB OTG adapter.
"what are you using"
A westerm digital 4 TB 2,5 " external Harddrive. Connected to a PC the HDD works fine.

Re: USB HDD resets on Pi Zero W

Posted: Sat May 04, 2019 1:37 am
by HawaiianPi
What are you using for a power supply, and is the HDD powered form the Pi USB port or self-powered?

Problems with the Pi-Zero are often caused by the various adapters needed to connect to standard devices. In your case I'd suspect the OTG adapter if you're sure the power supply in use is adequate.

Re: USB HDD resets on Pi Zero W

Posted: Sat May 04, 2019 9:59 pm
by RDPUser
I'm using a 2A Powersupply. Pi Zero W detects no undervoltage.

As it is a 2,5" HDD it is powered from the PI Zero.
https://www.aliexpress.com/item/OTG-Cab ... 04690.html Thats the OTG Adapter. Its very basic and simple and lets enough space to directly connect it to the PI Zero W.

Re: USB HDD resets on Pi Zero W

Posted: Wed Jul 17, 2019 5:52 am
by RDPUser
I've changed the USB-Cable from PSU to RPi Zero W and now no resets occur anymore. So it was a power issue. So note RPi Zero W doesn't record (any?) undervoltages with vcgencmd get_throttled in this case.

Re: [Solved] USB HDD resets on Pi Zero W

Posted: Wed Jul 17, 2019 6:37 am
by HawaiianPi
Low voltage warning happens a 4.63V or less, but some USB devices (particularly higher power drain devices) may need 4.75V or more, so there is a small voltage range which may be above the minimum voltage for the Pi, but below the voltage a USB device needs.

Re: [Solved] USB HDD resets on Pi Zero W

Posted: Wed Jul 17, 2019 6:37 am
by HawaiianPi
HawaiianPi wrote:
Wed Jul 17, 2019 6:37 am
Low voltage warning happens a 4.63V or less, but some USB devices (particularly higher power drain devices) may need 4.75V or more, so there is a small voltage range which may be above the minimum voltage for the warning, but below the voltage a USB device needs.