IOI
Posts: 14
Joined: Thu Jul 30, 2020 12:17 pm
Location: Spain

SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Thu Jul 30, 2020 12:34 pm

Hello everyone. I'm a fresh owner of a Raspberry Pi 4b 4GB and I was planning to use it as a NAS and other experiments.

I wanted to have a Seagate Ironwolf 4TB 3.5 NAS HDD hooked up to it. I bought this UGREEN USB 3.0 to SATA UASP adapter https://www.amazon.es/UGREEN-Adaptador- ... 016UBXH3O that is self powered with a 12V adapter.
At first everything seemed to be running fine and I managed to format and partition the drive from raspbian OS and it looked like it's mounting fine at boot. But when I got closer to the HDD I noticed that it's making this worrying clicking sound. I connected the adapter to my laptop and it works fine and the HDD does not make any weird noises or clicks. Tried other ports on the Raspberry but the noise is still there.

Found other threads describing clicking sounds but they either talk about power issues which I don't expect to have because everything has its' own adequate power source or they talk about incompatibility between certain adapters and Raspberry Pi 4 which... how do I tackle that? If it's incompatibility, is there a recommendation for a certain adapter that works with 3.5 inch desktop drives, is self powered and will not destroy the HDD?

Any help is appreciated. Thank you!

IOI
Posts: 14
Joined: Thu Jul 30, 2020 12:17 pm
Location: Spain

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Fri Jul 31, 2020 8:22 am

I'm having a hard time finding info about 3.5" HDDs on the RP4.
Adapters with JMS578 seem to be mentioned on forums and they sounded like a good idea. Locally I found the Orico 7688U3 that has this chipset and is for 3.5" HDDs with UASP support and its' own power plug. But then I found a thread about the RaidSonic IB-256WP that has this chipset and the conclusion to that thread was that it didn't fully work on RP4 but it did work on a PC so that has me worried now.

User avatar
rpdom
Posts: 17723
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Fri Jul 31, 2020 8:52 am

IOI wrote:
Thu Jul 30, 2020 12:34 pm
Found other threads describing clicking sounds but they either talk about power issues which I don't expect to have because everything has its' own adequate power source
External 3.5" drives tend to need 5V and 12V supplies. They get the 12V from the external supply and the 5V from the USB. They can be quite power hungry on both voltages, so the Pi may not be able to supply enough current at 5V.
Unreadable squiggle

IOI
Posts: 14
Joined: Thu Jul 30, 2020 12:17 pm
Location: Spain

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Fri Jul 31, 2020 12:35 pm

The Pi has an adequate 5V 3A supply. And I tried the HDD adapter on a USB2.0 500mA port on the laptop and worked no problem. The Pi should be able to handle that, right?

Edit: I found my trusty USB Volt/Ammeter and checked it with the laptop and the Pi again. Both times it showed 0.0A used on the USB. It looks like my adapter is one of those that converts 5V from 12V by itself. This at least helps confirm it's not a power issue.

LTolledo
Posts: 4130
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Fri Jul 31, 2020 12:53 pm

My RPi4B-2G NAS with 2 x 8TB HDDs (3.5"drives)
RPi4B-2GNAS_top.jpg
RPi4B-2GNAS_top.jpg (253.41 KiB) Viewed 1133 times

SATA to USB3.0 adapter hacked from Orico HDD case.
the whole setup's main power source is 12v 4A power brick
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

IOI
Posts: 14
Joined: Thu Jul 30, 2020 12:17 pm
Location: Spain

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Fri Jul 31, 2020 1:00 pm

LTolledo wrote:
Fri Jul 31, 2020 12:53 pm
SATA to USB3.0 adapter hacked from Orico HDD case.
the whole setup's main power source is 12v 4A power brick
That looks good and is probably what I will want to end up with after I iron out the kinks. Which Orico HDD case?
I found locally this one https://www.amazon.es/ORICO-Carcasa-Pul ... B075ZYDR2M Orico 7688U3. Says it has a JMS578 chip in it. Is that the same thing you have?
Last edited by IOI on Fri Jul 31, 2020 2:19 pm, edited 3 times in total.

LTolledo
Posts: 4130
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Fri Jul 31, 2020 1:22 pm

ORICO 3139U3
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

User avatar
Cancelor
Posts: 778
Joined: Wed Aug 28, 2013 4:09 pm
Location: UK

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Fri Jul 31, 2020 4:41 pm

Can't find the thread you want? Try googling : YourSearchHere site:raspberrypi.org

User avatar
HawaiianPi
Posts: 5999
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Fri Jul 31, 2020 4:54 pm

IOI wrote:
Fri Jul 31, 2020 8:22 am
I'm having a hard time finding info about 3.5" HDDs on the RP4.
What do the commands lsusb and lsusb -t return with the HDD connected?

IOI wrote:
Fri Jul 31, 2020 8:22 am
Adapters with JMS578 seem to be mentioned on forums and they sounded like a good idea
Many JMicron based adapters don't play well with Linux (or in some cases, just ARM Linux versions like Raspbian). The problem is improper or incomplete UAS support that results in poor performance. You can blacklist UAS with USB storage quirks, and that should work okay with HDD.

The clicking sound is odd, and a bit concerning, because that is normally associated with insufficient power.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

IOI
Posts: 14
Joined: Thu Jul 30, 2020 12:17 pm
Location: Spain

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sat Aug 01, 2020 2:48 pm

First of all thank you for trying to help out!
HawaiianPi wrote:
Fri Jul 31, 2020 4:54 pm
What do the commands lsusb and lsusb -t return with the HDD connected?
Here is the result:

Code: Select all

~ $ lsusb
Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
~ $ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    | Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    | Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M

HawaiianPi wrote:
Fri Jul 31, 2020 4:54 pm
Many JMicron based adapters don't play well with Linux (or in some cases, just ARM Linux versions like Raspbian). The problem is improper or incomplete UAS support that results in poor performance. You can blacklist UAS with USB storage quirks, and that should work okay with HDD.
It's quite disheartening seeing the unreliability of the USB3.0 to SATA adapters on the Pi.

HawaiianPi wrote:
Fri Jul 31, 2020 4:54 pm
The clicking sound is odd, and a bit concerning, because that is normally associated with insufficient power.
I tried a different overpowered power supply for the adapter and the clicking continues. Considering the adapter is not drawing any power from USB and the power supply is sufficient, either the adapter is broken or there's a problem somewhere else.


Here's also dmesg. I've seen people talk about it being relevant for this issue but I don't know what I am looking at in here.

Code: Select all

~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.51-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1327 SMP Thu Jul 23 11:04:39 BST 2020
[    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001ec00000, size 256 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 1012736
[    0.000000]   DMA zone: 2304 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 816128 pages, LIFO batch:63
[    0.000000] percpu: Embedded 20 pages/cpu s49856 r8192 d23872 u81920
[    0.000000] pcpu-alloc: s49856 r8192 d23872 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1010432
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 video=HDMI-A-1:1920x1080M@60 smsc95xx.macaddr=DC:A6:32:7F:45:F6 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=66d9fd7f-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x17cc0000-0x1bcc0000] (64MB)
[    0.000000] Memory: 3655620K/4050944K available (10240K kernel code, 725K rwdata, 2740K rodata, 2048K init, 853K bss, 133180K reserved, 262144K cma-reserved, 3264512K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 30051 entries in 59 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x340/0x518 with crng_init=0
[    0.000008] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000025] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000104] bcm2835: system timer (irq = 17)
[    0.000768] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000784] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000802] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000814] Switching to timer-based delay loop, resolution 18ns
[    0.001065] Console: colour dummy device 80x30
[    0.001098] printk: console [tty1] enabled
[    0.001150] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[    0.001170] pid_max: default: 32768 minimum: 301
[    0.001491] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001514] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002742] Disabling memory control group subsystem
[    0.002846] CPU: Testing write buffer coherency: ok
[    0.003353] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004197] Setting up static identity map for 0x200000 - 0x20003c
[    0.004389] rcu: Hierarchical SRCU implementation.
[    0.005029] smp: Bringing up secondary CPUs ...
[    0.006223] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.007537] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.008792] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.008938] smp: Brought up 1 node, 4 CPUs
[    0.008955] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[    0.008968] CPU: All CPU(s) started in HYP mode.
[    0.008978] CPU: Virtualization extensions available.
[    0.009786] devtmpfs: initialized
[    0.023147] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[    0.023404] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.023430] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.031434] pinctrl core: initialized pinctrl subsystem
[    0.032505] NET: Registered protocol family 16
[    0.036398] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.038199] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.038212] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.038562] Serial: AMBA PL011 UART driver
[    0.042046] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.060849] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-07-17 10:59, variant start
[    0.070864] raspberrypi-firmware soc:firmware: Firmware hash is 21a15cb094f41c7506ad65d2cb9b29c550693057
[    0.125123] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.129628] vgaarb: loaded
[    0.130095] SCSI subsystem initialized
[    0.130322] usbcore: registered new interface driver usbfs
[    0.130392] usbcore: registered new interface driver hub
[    0.130512] usbcore: registered new device driver usb
[    0.132229] clocksource: Switched to clocksource arch_sys_counter
[    0.883788] VFS: Disk quotas dquot_6.6.0
[    0.883889] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.884053] FS-Cache: Loaded
[    0.884246] CacheFiles: Loaded
[    0.885192] simple-framebuffer 3e3cf000.framebuffer: framebuffer at 0x3e3cf000, 0x7f8000 bytes, mapped to 0x(ptrval)
[    0.885210] simple-framebuffer 3e3cf000.framebuffer: format=a8r8g8b8, mode=1920x1080x32, linelength=7680
[    0.885716] Console: switching to colour frame buffer device 240x67
[    0.896424] simple-framebuffer 3e3cf000.framebuffer: fb0: simplefb registered!
[    0.906293] thermal_sys: Registered thermal governor 'step_wise'
[    0.906666] NET: Registered protocol family 2
[    0.907399] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.907429] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.907504] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.907581] TCP: Hash tables configured (established 8192 bind 8192)
[    0.907733] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.907765] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.908018] NET: Registered protocol family 1
[    0.908740] RPC: Registered named UNIX socket transport module.
[    0.908752] RPC: Registered udp transport module.
[    0.908764] RPC: Registered tcp transport module.
[    0.908776] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.908798] PCI: CLS 0 bytes, default 64
[    0.910745] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    0.912947] Initialise system trusted keyrings
[    0.913181] workingset: timestamp_bits=14 max_order=20 bucket_order=6
[    0.924038] FS-Cache: Netfs 'nfs' registered for caching
[    0.924768] NFS: Registering the id_resolver key type
[    0.924799] Key type id_resolver registered
[    0.924812] Key type id_legacy registered
[    0.924834] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.925931] Key type asymmetric registered
[    0.925944] Asymmetric key parser 'x509' registered
[    0.926110] bounce: pool size: 64 pages
[    0.926160] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.926378] io scheduler mq-deadline registered
[    0.926392] io scheduler kyber registered
[    0.930222] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.930245] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.930313] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x0603ffffff -> 0x00f8000000
[    0.930377] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0000000000
[    0.984374] brcm-pcie fd500000.pcie: link up, 5 GT/s x1 (SSC)
[    0.984673] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.984692] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.984712] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
[    0.984769] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.985007] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.988361] PCI: bus0: Fast back to back transfers disabled
[    0.988384] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.988657] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    0.988801] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.989220] pci 0000:01:00.0: PME# supported from D0 D3cold
[    0.992602] PCI: bus1: Fast back to back transfers disabled
[    0.992622] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.992661] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.992685] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    0.992765] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.992790] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.993105] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    0.993338] pcieport 0000:00:00.0: PME: Signaling with IRQ 55
[    0.993727] pcieport 0000:00:00.0: AER: enabled with IRQ 55
[    0.994048] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    1.000949] iproc-rng200 fe104000.rng: hwrng registered
[    1.001269] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.001914] vc-sm: Videocore shared memory driver
[    1.002493] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.014399] brd: module loaded
[    1.026675] loop: module loaded
[    1.028064] Loading iSCSI transport class v2.0-870.
[    1.030029] libphy: Fixed MDIO Bus: probed
[    1.030601] bcmgenet fd580000.ethernet: failed to get enet clock
[    1.030622] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.030643] bcmgenet fd580000.ethernet: failed to get enet-wol clock
[    1.030663] bcmgenet fd580000.ethernet: failed to get enet-eee clock
[    1.030689] bcmgenet: Skipping UMAC reset
[    1.042308] libphy: bcmgenet MII bus: probed
[    1.122344] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.123390] usbcore: registered new interface driver r8152
[    1.123458] usbcore: registered new interface driver lan78xx
[    1.123516] usbcore: registered new interface driver smsc95xx
[    1.123933] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.123968] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.126228] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890
[    1.127521] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    1.127537] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.127552] usb usb1: Product: xHCI Host Controller
[    1.127567] usb usb1: Manufacturer: Linux 5.4.51-v7l+ xhci-hcd
[    1.127580] usb usb1: SerialNumber: 0000:01:00.0
[    1.128173] hub 1-0:1.0: USB hub found
[    1.128275] hub 1-0:1.0: 1 port detected
[    1.128833] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.128859] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.128881] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.129393] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    1.129410] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.129424] usb usb2: Product: xHCI Host Controller
[    1.129438] usb usb2: Manufacturer: Linux 5.4.51-v7l+ xhci-hcd
[    1.129452] usb usb2: SerialNumber: 0000:01:00.0
[    1.130026] hub 2-0:1.0: USB hub found
[    1.130110] hub 2-0:1.0: 4 ports detected
[    1.131509] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.131778] dwc_otg: FIQ enabled
[    1.131790] dwc_otg: NAK holdoff enabled
[    1.131801] dwc_otg: FIQ split-transaction FSM enabled
[    1.131816] Module dwc_common_port init
[    1.132296] usbcore: registered new interface driver uas
[    1.132414] usbcore: registered new interface driver usb-storage
[    1.132606] mousedev: PS/2 mouse device common for all mice
[    1.134703] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.137208] sdhci: Secure Digital Host Controller Interface driver
[    1.137221] sdhci: Copyright(c) Pierre Ossman
[    1.137806] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    1.138391] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.142090] ledtrig-cpu: registered to indicate activity on CPUs
[    1.142454] hidraw: raw HID events driver (C) Jiri Kosina
[    1.142646] usbcore: registered new interface driver usbhid
[    1.142658] usbhid: USB HID core driver
[    1.143704] vchiq: vchiq_init_state: slot_zero = (ptrval)
[    1.145679] [vc_sm_connected_init]: start
[    1.155785] [vc_sm_connected_init]: end - returning 0
[    1.157850] Initializing XFRM netlink socket
[    1.157886] NET: Registered protocol family 17
[    1.158018] Key type dns_resolver registered
[    1.158532] Registering SWP/SWPB emulation handler
[    1.158854] registered taskstats version 1
[    1.158872] Loading compiled-in X.509 certificates
[    1.159378] Key type ._fscrypt registered
[    1.159391] Key type .fscrypt registered
[    1.169843] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.169916] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 29, base_baud = 0) is a PL011 rev2
[    1.175868] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.176790] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.176805] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.228211] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.229846] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.231544] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.234620] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.236277] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.242264] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[    1.245060] of_cfs_init
[    1.245187] of_cfs_init: OK
[    1.246199] Waiting for root device PARTUUID=66d9fd7f-02...
[    1.285421] random: fast init done
[    1.306624] mmc1: new high speed SDIO card at address 0001
[    1.351560] mmc0: new ultra high speed DDR50 SDXC card at address 0001
[    1.352570] mmcblk0: mmc0:0001 EC2QT 59.6 GiB
[    1.354514]  mmcblk0: p1 p2
[    1.374051] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.374128] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.375081] devtmpfs: mounted
[    1.383126] Freeing unused kernel memory: 2048K
[    1.412534] Run /sbin/init as init process
[    1.492288] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.674949] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.674970] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.674986] usb 1-1: Product: USB2.0 Hub
[    1.677102] hub 1-1:1.0: USB hub found
[    1.677389] hub 1-1:1.0: 4 ports detected
[    1.815472] systemd[1]: System time before build time, advancing clock.
[    1.914948] NET: Registered protocol family 10
[    1.916256] Segment Routing with IPv6
[    1.952059] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    1.952947] systemd[1]: Detected architecture arm.
[    1.997230] systemd[1]: Set hostname to <raspberrypi>.
[    2.728395] random: systemd: uninitialized urandom read (16 bytes read)
[    2.739534] random: systemd: uninitialized urandom read (16 bytes read)
[    2.740176] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    2.740404] random: systemd: uninitialized urandom read (16 bytes read)
[    2.744497] systemd[1]: Created slice system-getty.slice.
[    2.745255] systemd[1]: Listening on udev Control Socket.
[    2.750770] systemd[1]: Listening on Syslog Socket.
[    2.751296] systemd[1]: Listening on udev Kernel Socket.
[    2.751694] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    2.752371] systemd[1]: Listening on Journal Socket (/dev/log).
[    2.887417] i2c /dev entries driver
[    3.477392] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.602971] systemd-journald[105]: Received request to flush runtime journal from PID 1
[    4.142113] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    4.145314] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    4.151043] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    4.151527] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    4.278243] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    4.289932] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.294724] bcm2835_audio bcm2835_audio: card created with 4 channels
[    4.294831] mc: Linux media interface: v0.10
[    4.299554] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    4.299580] [vc_sm_connected_init]: start
[    4.321541] videodev: Linux video capture interface: v2.00
[    4.362695] bcm2835_audio bcm2835_audio: card created with 4 channels
[    4.370256] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.374293] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.402695] [vc_sm_connected_init]: installed successfully
[    4.422556] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.424723] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.433200] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    4.437196] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    4.459665] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    4.460260] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    4.460724] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    4.461085] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    4.461120] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    4.461141] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    4.461160] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    4.461179] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    4.461379] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    4.517232] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    4.591206] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    4.591255] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    4.609568] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    4.609618] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    4.665212] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    4.665257] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    4.665918] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    4.725814] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.891268] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.938402] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[    4.938428] checking generic (3e3cf000 7f8000) vs hw (0 ffffffffffffffff)
[    4.938443] fb0: switching to vc4drmfb from simple
[    4.939067] Console: switching to colour dummy device 80x30
[    4.939313] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    4.939327] [drm] No driver support for vblank timestamp query.
[    4.939344] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL
[    4.939976] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    4.948165] vc4-drm gpu: HDMI-A-1: EDID is invalid:
[    4.948189]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    4.948202]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    4.948214]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    4.948225]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    4.948237]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    4.948249]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    4.948261]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    4.948273]  [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    4.962499] brcmfmac: F1 signature read @0x18000000=0x15264345
[    4.970502] Console: switching to colour frame buffer device 240x67
[    4.970547] vc4-drm gpu: fb0: vc4drmfb frame buffer device
[    4.975330] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.975741] usbcore: registered new interface driver brcmfmac
[    4.996573] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
[    5.224006] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.239219] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar  2 2020 23:30:41 version 7.45.202 (r724630 CY) FWID 01-72f6ece2
[   11.172756] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[   11.203720] usb 2-1: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[   11.203739] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[   11.203755] usb 2-1: Product: Ugreen Storage Device
[   11.203771] usb 2-1: Manufacturer: Ugreen
[   11.203786] usb 2-1: SerialNumber: 021911015945
[   11.235604] scsi host0: uas
[   11.243462] scsi 0:0:0:0: Direct-Access     ST4000VN 008-2DR166       0    PQ: 0 ANSI: 6
[   11.245711] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[   11.245731] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   11.245918] sd 0:0:0:0: [sda] Write Protect is off
[   11.245936] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[   11.246255] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   11.247005] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[   11.374305] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   11.683373]  sda: sda1
[   11.686309] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.148926] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   13.897558] uart-pl011 fe201000.serial: no DMA platform data
[   14.029452] random: crng init done
[   14.029471] random: 7 urandom warning(s) missed due to ratelimiting
[   14.138026] 8021q: 802.1Q VLAN Support v1.8
[   14.452638] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[   14.633895] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   15.049722] bcmgenet: Skipping UMAC reset
[   15.051288] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[   15.051514] bcmgenet fd580000.ethernet eth0: Link is Down
[   17.894910] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[   17.899411] Bridge firewalling registered
[   18.425582] broken atomic modeset userspace detected, disabling atomic
[   20.275636] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   20.922180] Bluetooth: Core ver 2.22
[   20.922967] NET: Registered protocol family 31
[   20.922984] Bluetooth: HCI device and connection manager initialized
[   20.923891] Bluetooth: HCI socket layer initialized
[   20.923914] Bluetooth: L2CAP socket layer initialized
[   20.923951] Bluetooth: SCO socket layer initialized
[   20.934812] Bluetooth: HCI UART driver ver 2.3
[   20.934832] Bluetooth: HCI UART protocol H4 registered
[   20.934941] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   20.937370] Bluetooth: HCI UART protocol Broadcom registered
[   21.158580] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   21.158588] Bluetooth: BNEP filters: protocol multicast
[   21.158602] Bluetooth: BNEP socket layer initialized
[   21.218120] Bluetooth: RFCOMM TTY layer initialized
[   21.218139] Bluetooth: RFCOMM socket layer initialized
[   21.218157] Bluetooth: RFCOMM ver 1.11
[   21.249839] fuse: init (API version 7.31)
[   23.617317] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead


I managed to record the actual sound it makes. https://drive.google.com/file/d/1393Rb9 ... sp=sharing This sound is not present when the adapter and HDD are connected to any PC I have in the house.

IOI
Posts: 14
Joined: Thu Jul 30, 2020 12:17 pm
Location: Spain

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sat Aug 01, 2020 3:20 pm

Cancelor wrote:
Fri Jul 31, 2020 4:41 pm
Not bad for £10 ? https://www.ebuyer.com/826579-black-doc ... dd-bs-hd09
Couldn't find anything about deliveries to Spain on their website. I might go with the Orico proposal from LTolledo and see how that works out.

LTolledo
Posts: 4130
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sat Aug 01, 2020 8:37 pm

I've have "3 versions" of the Orico 3.5" HDD drive adapter case, but I think the insides are the same.
all of those worked well with the RPi4B at its rated speed.

I do have some older (non-Orico) HDD drive adapter case, but USB2.0 versions, using the JM chip. example of one below.

Code: Select all

Bus 001 Device 007: ID 152d:2329 JMicron Technology Corp. / JMicron USA Technology Corp. JM20329 SATA Bridge

Code: Select all

pi@RPi4B-4G:~ $ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 232.9G  0 disk 
├─sda1        8:1    0  43.2M  0 part /media/pi/boot
├─sda2        8:2    0  97.3G  0 part /media/pi/rootfs
└─sda3        8:3    0 135.5G  0 part /media/pi/mypartition
mmcblk0     179:0    0  29.8G  0 disk 
├─mmcblk0p1 179:1    0   256M  0 part /boot
└─mmcblk0p2 179:2    0  29.6G  0 part /
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

User avatar
HawaiianPi
Posts: 5999
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sat Aug 01, 2020 8:55 pm

So it looks like your Ugreen adapter has an ASMedia bridge chip, which is good, and it also supports UAS, which is also good. If it wasn't for that odd clicking sound I'd say that adapter was a good option.

What I hear in your recording doesn't sound like a low power issue. It sounds like the head is continuously stepping (or parking and un-parking). Could be something to do with power saving, but I don't really know what to suggest. You might want to contact Ugreen support and ask them about the issue, or check their support site and see if there is a firmware update for that adapter.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

pidd
Posts: 1288
Joined: Fri May 29, 2020 8:29 pm
Location: Birkenhead, Wirral, UK
Contact: Website

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sat Aug 01, 2020 9:20 pm

Your lsusb shows exactly the same interface as the one I'm using 174c:55aa which works fine on my SSD other than having to do the unmap trick in rc.local to get trim working properly. But its an Eluteng.

Code: Select all

Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge[/usb

User avatar
HawaiianPi
Posts: 5999
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sat Aug 01, 2020 10:21 pm

pidd wrote:
Sat Aug 01, 2020 9:20 pm
...other than having to do the unmap trick in rc.local to get trim working properly.
What "unmap trick" are you referring to?

I haven't needed any "tricks" to get the Eluteng adapter working, other than the normal UDEV rule.

UDEV rules for TRIM with the Eluteng adapter cable.

Code: Select all

# /etc/udev/rules.d/01-unmap-trim.rules
# ASMedia ASM1153E and compatible bridge chips (Eluteng adapters)
ACTION=="add|change", ATTRS{idVendor}=="174c", ATTRS{idProduct}=="55aa", SUBSYSTEM=="scsi_disk", ATTR{provisioning_mode}="unmap"

Enable and start the weekly fstrim.timer service.

Code: Select all

sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer

The system will now automatically TRIM the SSD once a week.

You can check the status with:

Code: Select all

sudo systemctl status fstrim.timer
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

pidd
Posts: 1288
Joined: Fri May 29, 2020 8:29 pm
Location: Birkenhead, Wirral, UK
Contact: Website

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sun Aug 02, 2020 1:41 am

HawaiianPi wrote:
Sat Aug 01, 2020 10:21 pm
pidd wrote:
Sat Aug 01, 2020 9:20 pm
...other than having to do the unmap trick in rc.local to get trim working properly.
What "unmap trick" are you referring to?
Instead of your method, I have the following in /etc/rc.local

Code: Select all

echo -n unmap > /sys/block/sda/device/scsi_disk/0:0:0:0/provisioning_mode
Crude but effective, I've forgotten who came up with that but its on the forum somewhere (I can't remember if I had to customise it).

I though my trim was working but when it scans fstab it doesn't kick out any messages so I was fooled and it wasn't working. Put the above in /etc/rc.local and then confirmed that trim was truly working by doing a manual trim not reading fstab, it was obviously overdue, it took a while to run.

LTolledo
Posts: 4130
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sun Aug 02, 2020 2:41 am

HawaiianPi wrote:
Sat Aug 01, 2020 10:21 pm
I haven't needed any "tricks" to get the Eluteng adapter working,.....
is that even needed for HDD?

the OP is referring to "HDD clicking" with his current adapter,
never encountered "SSD clicking".... or is there? (please provide link)

I have 5 of those Eluteng Blue adapters currently in operation now with HDDs attached and never tweaked anything anywhere to make it work.... because.... it just "works out of the box"

be it RPi with RPiOS, or other SBC with Ubuntu or other supported OS for that SBC.
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

Kendek
Posts: 265
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sun Aug 02, 2020 7:49 am

LTolledo wrote:
Sun Aug 02, 2020 2:41 am
HawaiianPi wrote:
Sat Aug 01, 2020 10:21 pm
I haven't needed any "tricks" to get the Eluteng adapter working,.....
is that even needed for HDD?
If UNMAP, then yes, some of newer SMR HDDs require TRIM for better performance.

IOI
Posts: 14
Joined: Thu Jul 30, 2020 12:17 pm
Location: Spain

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sun Aug 02, 2020 11:59 am

Got the idea to install Ubuntu server instead of Raspbian just as an experiment. In the end the HDD behavior is the same but I realized the clicking only starts when the drive is mounted. If I unmount it it stops.

Kendek wrote:
Sun Aug 02, 2020 7:49 am
If UNMAP, then yes, some of newer SMR HDDs require TRIM for better performance.
After the recent SMR scandal Seagate confirmed that Ironwolf drives are not SMR.

Kendek
Posts: 265
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sun Aug 02, 2020 12:18 pm

IOI wrote:
Sun Aug 02, 2020 11:59 am
After the recent SMR scandal Seagate confirmed that Ironwolf drives are not SMR.
Maybe, but my 2.5" WD20SPZX HDD (used on Pi4) is SMR and requires TRIM.

IOI
Posts: 14
Joined: Thu Jul 30, 2020 12:17 pm
Location: Spain

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Sun Aug 02, 2020 8:31 pm

So I decided to send the Ugreen adapter back and get the ORICO 3139U3. Hopefully I have better luck with that one. I'll come back in a few days with an update.

IOI
Posts: 14
Joined: Thu Jul 30, 2020 12:17 pm
Location: Spain

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Tue Aug 04, 2020 10:46 am

Well, I have disappointing news. Got the Orico 3139U3 (on the PCB it says R1.0). When I mount the HDD the clicking continues and the led on the adapter flashes like there's constant HDD activity. Adapter works fine with my windows laptop, no clicking, copies data just fine.

Here's lsusb:

Code: Select all

pi@raspberrypi:~ $ lsusb
Bus 002 Device 002: ID 0080:0578
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~ $ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    |__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
and dmesg:

Code: Select all

pi@raspberrypi:~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.51-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1327 SMP Thu Jul 23 11:04:39 BST 2020
[    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001ec00000, size 256 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 1012736
[    0.000000]   DMA zone: 2304 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 816128 pages, LIFO batch:63
[    0.000000] percpu: Embedded 20 pages/cpu s49856 r8192 d23872 u81920
[    0.000000] pcpu-alloc: s49856 r8192 d23872 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1010432
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1  smsc95xx.macaddr=DC:A6:32:7F:45:F6 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=fa3f7722-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x17cc0000-0x1bcc0000] (64MB)
[    0.000000] Memory: 3655620K/4050944K available (10240K kernel code, 725K rwdata, 2740K rodata, 2048K init, 853K bss, 133180K reserved, 262144K cma-reserved, 3264512K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 30051 entries in 59 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x340/0x518 with crng_init=0
[    0.000007] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000023] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000099] bcm2835: system timer (irq = 17)
[    0.000763] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000778] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000795] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000809] Switching to timer-based delay loop, resolution 18ns
[    0.001046] Console: colour dummy device 80x30
[    0.001077] printk: console [tty1] enabled
[    0.001125] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[    0.001145] pid_max: default: 32768 minimum: 301
[    0.001457] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001479] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002642] Disabling memory control group subsystem
[    0.002740] CPU: Testing write buffer coherency: ok
[    0.003210] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004031] Setting up static identity map for 0x200000 - 0x20003c
[    0.004218] rcu: Hierarchical SRCU implementation.
[    0.004835] smp: Bringing up secondary CPUs ...
[    0.005971] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.007232] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.008436] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.008581] smp: Brought up 1 node, 4 CPUs
[    0.008596] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[    0.008608] CPU: All CPU(s) started in HYP mode.
[    0.008619] CPU: Virtualization extensions available.
[    0.009378] devtmpfs: initialized
[    0.022469] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[    0.022712] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.022737] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.030393] pinctrl core: initialized pinctrl subsystem
[    0.031471] NET: Registered protocol family 16
[    0.035175] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.036911] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.036924] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.037251] Serial: AMBA PL011 UART driver
[    0.040649] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.060833] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-07-17 10:59, variant start
[    0.070849] raspberrypi-firmware soc:firmware: Firmware hash is 21a15cb094f41c7506ad65d2cb9b29c550693057
[    0.124590] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.129022] vgaarb: loaded
[    0.129469] SCSI subsystem initialized
[    0.129691] usbcore: registered new interface driver usbfs
[    0.129758] usbcore: registered new interface driver hub
[    0.129873] usbcore: registered new device driver usb
[    0.131512] clocksource: Switched to clocksource arch_sys_counter
[    0.881249] VFS: Disk quotas dquot_6.6.0
[    0.881344] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.881535] FS-Cache: Loaded
[    0.881720] CacheFiles: Loaded
[    0.882513] simple-framebuffer: probe of 0.framebuffer failed with error -12
[    0.892087] thermal_sys: Registered thermal governor 'step_wise'
[    0.892436] NET: Registered protocol family 2
[    0.893156] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.893185] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.893260] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.893333] TCP: Hash tables configured (established 8192 bind 8192)
[    0.893472] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.893502] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.893740] NET: Registered protocol family 1
[    0.894416] RPC: Registered named UNIX socket transport module.
[    0.894428] RPC: Registered udp transport module.
[    0.894440] RPC: Registered tcp transport module.
[    0.894452] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.894472] PCI: CLS 0 bytes, default 64
[    0.896346] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    0.898434] Initialise system trusted keyrings
[    0.898650] workingset: timestamp_bits=14 max_order=20 bucket_order=6
[    0.909313] FS-Cache: Netfs 'nfs' registered for caching
[    0.909998] NFS: Registering the id_resolver key type
[    0.910050] Key type id_resolver registered
[    0.910062] Key type id_legacy registered
[    0.910084] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.911129] Key type asymmetric registered
[    0.911142] Asymmetric key parser 'x509' registered
[    0.911310] bounce: pool size: 64 pages
[    0.911353] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.911588] io scheduler mq-deadline registered
[    0.911601] io scheduler kyber registered
[    0.915328] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.915351] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    0.915415] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x0603ffffff -> 0x00f8000000
[    0.915481] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0000000000
[    0.973631] brcm-pcie fd500000.pcie: link up, 5 GT/s x1 (SSC)
[    0.973936] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.973953] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.973974] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
[    0.974029] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.974265] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.977599] PCI: bus0: Fast back to back transfers disabled
[    0.977621] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.977882] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    0.978026] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.978443] pci 0000:01:00.0: PME# supported from D0 D3cold
[    0.981796] PCI: bus1: Fast back to back transfers disabled
[    0.981815] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.981853] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.981875] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    0.981955] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.981978] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.982279] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    0.982495] pcieport 0000:00:00.0: PME: Signaling with IRQ 55
[    0.982860] pcieport 0000:00:00.0: AER: enabled with IRQ 55
[    0.983179] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    0.990011] iproc-rng200 fe104000.rng: hwrng registered
[    0.990328] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.990976] vc-sm: Videocore shared memory driver
[    0.991539] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.003107] brd: module loaded
[    1.014933] loop: module loaded
[    1.016247] Loading iSCSI transport class v2.0-870.
[    1.018177] libphy: Fixed MDIO Bus: probed
[    1.018743] bcmgenet fd580000.ethernet: failed to get enet clock
[    1.018762] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.018784] bcmgenet fd580000.ethernet: failed to get enet-wol clock
[    1.018804] bcmgenet fd580000.ethernet: failed to get enet-eee clock
[    1.018830] bcmgenet: Skipping UMAC reset
[    1.031551] libphy: bcmgenet MII bus: probed
[    1.121614] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.122617] usbcore: registered new interface driver r8152
[    1.122682] usbcore: registered new interface driver lan78xx
[    1.122741] usbcore: registered new interface driver smsc95xx
[    1.123140] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.123173] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.125441] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890
[    1.126680] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    1.126696] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.126711] usb usb1: Product: xHCI Host Controller
[    1.126725] usb usb1: Manufacturer: Linux 5.4.51-v7l+ xhci-hcd
[    1.126739] usb usb1: SerialNumber: 0000:01:00.0
[    1.127316] hub 1-0:1.0: USB hub found
[    1.127409] hub 1-0:1.0: 1 port detected
[    1.127947] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.127971] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.127993] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.128476] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    1.128492] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.128507] usb usb2: Product: xHCI Host Controller
[    1.128521] usb usb2: Manufacturer: Linux 5.4.51-v7l+ xhci-hcd
[    1.128535] usb usb2: SerialNumber: 0000:01:00.0
[    1.129117] hub 2-0:1.0: USB hub found
[    1.129185] hub 2-0:1.0: 4 ports detected
[    1.130562] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.130831] dwc_otg: FIQ enabled
[    1.130842] dwc_otg: NAK holdoff enabled
[    1.130853] dwc_otg: FIQ split-transaction FSM enabled
[    1.130868] Module dwc_common_port init
[    1.131275] usbcore: registered new interface driver uas
[    1.131391] usbcore: registered new interface driver usb-storage
[    1.131629] mousedev: PS/2 mouse device common for all mice
[    1.133667] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.136120] sdhci: Secure Digital Host Controller Interface driver
[    1.136132] sdhci: Copyright(c) Pierre Ossman
[    1.136687] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    1.137202] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.140849] ledtrig-cpu: registered to indicate activity on CPUs
[    1.141149] hidraw: raw HID events driver (C) Jiri Kosina
[    1.141321] usbcore: registered new interface driver usbhid
[    1.141332] usbhid: USB HID core driver
[    1.142379] vchiq: vchiq_init_state: slot_zero = (ptrval)
[    1.144236] [vc_sm_connected_init]: start
[    1.153165] [vc_sm_connected_init]: end - returning 0
[    1.155170] Initializing XFRM netlink socket
[    1.155206] NET: Registered protocol family 17
[    1.155302] Key type dns_resolver registered
[    1.155790] Registering SWP/SWPB emulation handler
[    1.156108] registered taskstats version 1
[    1.156126] Loading compiled-in X.509 certificates
[    1.156602] Key type ._fscrypt registered
[    1.156615] Key type .fscrypt registered
[    1.166865] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.166931] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 29, base_baud = 0) is a PL011 rev2
[    1.172834] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.173733] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.173748] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.224130] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.225765] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.227413] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.230344] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.231993] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.239608] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[    1.242434] of_cfs_init
[    1.242671] of_cfs_init: OK
[    1.243739] Waiting for root device PARTUUID=fa3f7722-02...
[    1.278012] random: fast init done
[    1.299444] mmc1: new high speed SDIO card at address 0001
[    1.342432] mmc0: new ultra high speed DDR50 SDXC card at address 0001
[    1.343563] mmcblk0: mmc0:0001 EC2QT 59.6 GiB
[    1.345813]  mmcblk0: p1 p2
[    1.373148] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.373217] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.374135] devtmpfs: mounted
[    1.382020] Freeing unused kernel memory: 2048K
[    1.401814] Run /sbin/init as init process
[    1.491568] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.674206] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.674224] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.674239] usb 1-1: Product: USB2.0 Hub
[    1.675976] hub 1-1:1.0: USB hub found
[    1.676295] hub 1-1:1.0: 4 ports detected
[    1.801227] systemd[1]: System time before build time, advancing clock.
[    1.899036] NET: Registered protocol family 10
[    1.900278] Segment Routing with IPv6
[    1.930867] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    1.931708] systemd[1]: Detected architecture arm.
[    1.993585] systemd[1]: Set hostname to <raspberrypi>.
[    2.681762] random: systemd: uninitialized urandom read (16 bytes read)
[    2.692147] random: systemd: uninitialized urandom read (16 bytes read)
[    2.692688] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    2.692910] random: systemd: uninitialized urandom read (16 bytes read)
[    2.692978] systemd[1]: Reached target Swap.
[    2.693743] systemd[1]: Listening on udev Control Socket.
[    2.694410] systemd[1]: Listening on Journal Socket (/dev/log).
[    2.697489] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    2.720147] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[    2.720733] systemd[1]: Listening on udev Kernel Socket.
[    2.828424] i2c /dev entries driver
[    3.365620] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.458968] systemd-journald[113]: Received request to flush runtime journal from PID 1
[    4.004989] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    4.018609] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    4.030594] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    4.031118] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    4.107989] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    4.126063] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.128103] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    4.128124] [vc_sm_connected_init]: start
[    4.128547] bcm2835_audio bcm2835_audio: card created with 8 channels
[    4.133510] [vc_sm_connected_init]: installed successfully
[    4.138399] mc: Linux media interface: v0.10
[    4.191602] videodev: Linux video capture interface: v2.00
[    4.257157] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.264137] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    4.288739] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    4.288800] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    4.293492] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.297359] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    4.297414] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    4.311222] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    4.313199] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    4.313251] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    4.317983] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    4.324950] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    4.332430] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    4.337311] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    4.342644] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    4.342673] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    4.342694] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    4.342714] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    4.342732] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    4.342976] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    4.372696] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.382505] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    4.479247] [drm] No displays found. Consider forcing hotplug if HDMI is attached
[    4.479387] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[    4.479425] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    4.479440] [drm] No driver support for vblank timestamp query.
[    4.479455] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL
[    4.479976] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    4.487500] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.584327] brcmfmac: F1 signature read @0x18000000=0x15264345
[    4.599847] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.600274] usbcore: registered new interface driver brcmfmac
[    4.623150] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
[    4.848400] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.864636] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar  2 2020 23:30:41 version 7.45.202 (r724630 CY) FWID 01-72f6ece2
[    6.464456] random: crng init done
[    6.464472] random: 7 urandom warning(s) missed due to ratelimiting
[    6.572004] uart-pl011 fe201000.serial: no DMA platform data
[    6.652309] 8021q: 802.1Q VLAN Support v1.8
[    6.911635] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    7.075834] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    7.317759] bcmgenet: Skipping UMAC reset
[    7.319962] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[    7.320161] bcmgenet fd580000.ethernet eth0: Link is Down
[    8.521782] usb 2-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[    8.553009] usb 2-2: New USB device found, idVendor=0080, idProduct=0578, bcdDevice= 1.04
[    8.553017] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.553024] usb 2-2: Product: External USB 3.0
[    8.553030] usb 2-2: Manufacturer: JMicron
[    8.553036] usb 2-2: SerialNumber: 2015033100077
[    8.568896] scsi host0: uas
[    8.570766] scsi 0:0:0:0: Direct-Access     External USB 3.0          0104 PQ: 0 ANSI: 6
[    8.573042] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    8.573050] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.573248] sd 0:0:0:0: [sda] Write Protect is off
[    8.573256] sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08
[    8.573619] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.574185] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[    8.632735] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    8.717350]  sda: sda1 sda2
[    8.719522] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.951218] broken atomic modeset userspace detected, disabling atomic
[    9.871118] broken atomic modeset userspace detected, disabling atomic
[   10.897614] broken atomic modeset userspace detected, disabling atomic
[   11.910477] broken atomic modeset userspace detected, disabling atomic
[   12.551652] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   12.905385] broken atomic modeset userspace detected, disabling atomic
[   13.345380] Bluetooth: Core ver 2.22
[   13.345445] NET: Registered protocol family 31
[   13.345455] Bluetooth: HCI device and connection manager initialized
[   13.345475] Bluetooth: HCI socket layer initialized
[   13.345490] Bluetooth: L2CAP socket layer initialized
[   13.345516] Bluetooth: SCO socket layer initialized
[   13.352563] Bluetooth: HCI UART driver ver 2.3
[   13.352578] Bluetooth: HCI UART protocol H4 registered
[   13.352639] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   13.352882] Bluetooth: HCI UART protocol Broadcom registered
[   13.519140] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   13.519147] Bluetooth: BNEP filters: protocol multicast
[   13.519160] Bluetooth: BNEP socket layer initialized
[   13.549840] Bluetooth: RFCOMM TTY layer initialized
[   13.549854] Bluetooth: RFCOMM socket layer initialized
[   13.549868] Bluetooth: RFCOMM ver 1.11
[   16.708376] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.wlan0.retrans_time - use net.ipv6.neigh.wlan0.retrans_time_ms instead
Anyone have any idea?

LTolledo
Posts: 4130
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Tue Aug 04, 2020 12:55 pm

here is the part of dmesg of my RPi4B-2G NAS with 2 x 8TB (the one shown in the image I posted a few post prior)

Code: Select all

1.122974] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.20
[    1.123014] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.123042] usb 1-1: Product: USB2.0 Hub
[    1.124477] hub 1-1:1.0: USB hub found
[    1.124737] hub 1-1:1.0: 4 ports detected
[    1.271900] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[    1.302984] usb 2-1: New USB device found, idVendor=0080, idProduct=0578, bcdDevice= 1.04
[    1.303023] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.303050] usb 2-1: Product: External USB 3.0
[    1.303074] usb 2-1: Manufacturer: JMicron
[    1.303096] usb 2-1: SerialNumber: 2015033100077
[    1.320229] scsi host0: uas
[    1.321675] scsi 0:0:0:0: Direct-Access     External USB 3.0          0104 PQ: 0 ANSI: 6
[    1.323633] sd 0:0:0:0: [sda] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[    1.323673] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    1.323897] sd 0:0:0:0: [sda] Write Protect is off
[    1.323926] sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08
[    1.324330] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.325062] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[    1.330146]  sda: sda1
[    1.332777] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.471925] usb 2-2: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[    1.503276] usb 2-2: New USB device found, idVendor=0080, idProduct=0578, bcdDevice= 1.04
[    1.503313] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.503340] usb 2-2: Product: External USB 3.0
[    1.503364] usb 2-2: Manufacturer: JMicron
[    1.503387] usb 2-2: SerialNumber: 2015033100077
[    1.522641] scsi host1: uas
[    1.523901] scsi 1:0:0:0: Direct-Access     External USB 3.0          0104 PQ: 0 ANSI: 6
[    1.525572] sd 1:0:0:0: [sdb] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[    1.525611] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    1.525816] sd 1:0:0:0: [sdb] Write Protect is off
[    1.525846] sd 1:0:0:0: [sdb] Mode Sense: 53 00 00 08
[    1.526240] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.526935] sd 1:0:0:0: [sdb] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[    1.572664]  sdb: sdb1
[    1.575207] sd 1:0:0:0: [sdb] Attached SCSI disk
and the result of lsusb

Code: Select all

pi@Raspi4B2GNAS:~ $ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0080:0578  
Bus 002 Device 002: ID 0080:0578  
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@Raspi4B2GNAS:~ $ uname -a
Linux Raspi4B2GNAS 4.19.66-v7l+ #1253 SMP Thu Aug 15 12:02:08 BST 2019 armv7l GNU/Linux
I could have sworn that before the adapter was showing itself at lsusb, but now its not... hmmmm


then I checked my other NAS, but this time based on Rock64-1G, also having the Orico HDD adapter boards.
here's the part of dmesg:

Code: Select all

[    6.725797] usb 2-1: new high-speed USB device number 2 using ehci-platform
[    6.935443] usb 2-1: New USB device found, idVendor=0080, idProduct=0578
[    6.942989] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.950309] usb 2-1: Product: External USB 3.0
[    6.957084] usb 2-1: Manufacturer: JMicron
[    6.963604] usb 2-1: SerialNumber: 2015033100077
[    6.981817] usbcore: registered new interface driver usb-storage
[    6.988275] scsi host0: uas
[    6.992862] usbcore: registered new interface driver uas
[    6.998450] scsi 0:0:0:0: Direct-Access     External USB 3.0          0104 PQ: 0 ANSI: 6
[    7.006212] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    7.011151] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    7.017301] sd 0:0:0:0: [sda] Write Protect is off
[    7.022019] sd 0:0:0:0: [sda] Mode Sense: 5f 00 00 08
[    7.022798] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.076065]  sda: sda1
[    7.085561] sd 0:0:0:0: [sda] Attached SCSI disk
[   11.246079] EXT4-fs (mmcblk1p1): mounted filesystem with writeback data mode. Opts: (null)
[   11.265837] usb 5-1: new SuperSpeed USB device number 2 using xhci-hcd
[   11.286845] usb 5-1: New USB device found, idVendor=0080, idProduct=0578
[   11.286850] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   11.286855] usb 5-1: Product: External USB 3.0
[   11.286858] usb 5-1: Manufacturer: JMicron
[   11.286862] usb 5-1: SerialNumber: 2015033100077
[   11.289981] scsi host1: uas
[   11.290958] scsi 1:0:0:0: Direct-Access     External USB 3.0          0104 PQ: 0 ANSI: 6
[   11.292363] sd 1:0:0:0: [sdb] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[   11.292369] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[   11.293045] sd 1:0:0:0: [sdb] Write Protect is off
[   11.293051] sd 1:0:0:0: [sdb] Mode Sense: 53 00 00 08
[   11.293410] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
and the result of lsusb

Code: Select all

root@Rock64NAS2:~# lsusb
Bus 005 Device 002: ID 0080:0578 Assmann Electronic GmbH 
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0080:0578 Assmann Electronic GmbH 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@Rock64NAS2:~# uname -a
Linux Rock64NAS2 4.4.192-rockchip64 #1 SMP Tue Oct 8 18:39:24 CEST 2019 aarch64 GNU/Linux
the HDD adapters are showing here as Assmann Electronic GmbH...

on both setups, the HDDs are not clicking....
both setups are using Seagate Barracuda drives, not the IronWolf type.

I have no idea if the IronWolf have inherent problems in linux ARM setups.....

can we assume you are using the power adapter supplied by Orico to power the HDD adapter?

Add:
also noticed the HDD access light running almost continuously during the initial setup and got me worried.
however I assumed that the file system was doing initial "journaling" (i dont know if that's the right term) of the drive.
after leaving it running overnight, the constant flickering stopped, so I assumed the the initial journaling was completed.
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

IOI
Posts: 14
Joined: Thu Jul 30, 2020 12:17 pm
Location: Spain

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Tue Aug 04, 2020 1:37 pm

LTolledo wrote:
Tue Aug 04, 2020 12:55 pm
can we assume you are using the power adapter supplied by Orico to power the HDD adapter?
Yes, of course.

LTolledo
Posts: 4130
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

Tue Aug 04, 2020 3:14 pm

I've connected an ORICO 3569S3 with 4TB Seagate Barracuda to this RPi4B-4G desktop
the ORICO HDD case adapter is powered by its own 12v 2A wall adapter.

dmesg:

Code: Select all

[    5.328629] usb 2-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[    5.359941] usb 2-2: New USB device found, idVendor=0080, idProduct=a001, bcdDevice= 1.04
[    5.359957] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    5.359971] usb 2-2: Product: External USB 3.0
[    5.359983] usb 2-2: Manufacturer: TOSHIBA
[    5.359995] usb 2-2: SerialNumber: 2015033100081
[    5.437784] scsi host0: uas
[    5.439821] scsi 0:0:0:0: Direct-Access     TO Exter nal USB 3.0      0104 PQ: 0 ANSI: 6
[    5.442973] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    5.442990] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.443203] sd 0:0:0:0: [sda] Write Protect is off
[    5.443218] sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08
[    5.443603] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.444360] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[    5.522432]  sda: sda1
[    5.525402] sd 0:0:0:0: [sda] Attached SCSI disk
and the other usual stuff:

Code: Select all

pi@RPi4B-4G:~ $ lsusb
Bus 002 Device 002: ID 0080:a001  
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 1a86:8074 QinHeng Electronics 
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@RPi4B-4G:~ $ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    |__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/4p, 12M
            |__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
            |__ Port 1: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M
pi@RPi4B-4G:~ $ uname -a
Linux RPi4B-4G 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux
no HDD clicking as well.....

safely changing the Seagate Barracuda 4TB to a Marshal 1TB and then WD Caviar-Green 1TB, also yielded "quiet" results.
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

Return to “Troubleshooting”