Temat: OpenWrt 21.02, ea8300, ipq4019, ipq40xx, USB HDD I/O error

Cześć,

Wymieniłem ostatnio WDR4300 na EA8300 bo chciałem więcej mocy. Często przewalam pliki po ftps i niestety WDR4300 nie wyciągnie więcej niż 2,6 MB/s bo brakuje procesora. EA8300 radzi sobie z tym o wiele lepiej i wszystko byłoby świetnie gdyby nie problem z dyskiem po USB. Podejrzewam, że to kwestia serowników, ale gdyby to było prawdą to w sieci pewnie ktoś by już to opisał, a ja nic nie znalazłem. Uwierzcie, szukałem, długo już ponad 2 tygodnie przekopuje różne fora i nawet przestałem ograniczać się do openwrt. Nadal nic. Posiadam dwa adaptery USB do SATA jedna USB 2.0 a druga USB 3.0. Obie testowałem i mają problem. Dysk jest nowy, wyjęty z pudełka. Mam też drugi, stary i w pierwszej kolejności myślałem, że to problem właśnie z nim, ale nie. Podłączyłem oba dyski po USB do ubuntu (ext4) aby skopiować między nimi dane. Kopiowanie przebiegło pomyślnie, bez błędów. Użyłem tych samych adapterów, leciało to przez VirtualBoxa i nic, wszystko poszło bez błędów!

uname -a
Linux 5.4.99 #0 SMP Tue Feb 23 10:17:51 2021 armv7l GNU/Linux
OpenWrt 21.02-SNAPSHOT, r15866-17a627ec82

Zrzut logów ze startu routera, w trakcie startu routera dysk dziwnie hałasuje, tak jakby dostawał zasilanie i zaraz tracił, pewnie dlatego błędy w okolicach 11 sekundy..

dmesg | grep -v ath | grep -v IP | grep -v br | grep -v eth | grep -v wlan
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.99 (cezary@eko.one.pl) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r15819-0011c7ad12)) #0 SMP Tue Feb 23 10:17:51 2021
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] OF: fdt: Machine model: Linksys EA8300 (Dallas)
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 65024
[    0.000000]   Normal zone: 576 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65024 pages, LIFO batch:15
[    0.000000] percpu: Embedded 15 pages/cpu s30156 r8192 d23092 u61440
[    0.000000] pcpu-alloc: s30156 r8192 d23092 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64448
[    0.000000] Kernel command line: init=/sbin/init rootfstype=ubifs ubi.mtd=11,2048 root=ubi0:ubifs rootwait rw root=/dev/ubiblock0_0 rootfstype=squashfs ro
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 248616K/260096K available (5773K kernel code, 188K rwdata, 868K rodata, 1024K init, 241K bss, 11480K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    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] random: get_random_bytes called from 0xc0a00bbc with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 48.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
[    0.000007] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[    0.000021] Switching to timer-based delay loop, resolution 20ns
[    0.000255] pid_max: default: 32768 minimum: 301
[    0.000451] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000469] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001438] CPU: Testing write buffer coherency: ok
[    0.002443] Setting up static identity map for 0x80300000 - 0x80300060
[    0.002584] rcu: Hierarchical SRCU implementation.
[    0.003016] smp: Bringing up secondary CPUs ...
[    0.006046] smp: Brought up 1 node, 4 CPUs
[    0.006073] CPU: All CPU(s) started in SVC mode.
[    0.010680] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.010841] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010867] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.011069] pinctrl core: initialized pinctrl subsystem
[    0.012061] NET: Registered protocol family 16
[    0.012440] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.013633] cpuidle: using governor ladder
[    0.013684] cpuidle: using governor menu
[    0.033792] cryptd: max_cpu_qlen set to 1000
[    0.037053] usbcore: registered new interface driver usbfs
[    0.037119] usbcore: registered new interface driver hub
[    0.037184] usbcore: registered new device driver usb
[    0.037233] pps_core: LinuxPPS API ver. 1 registered
[    0.037242] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.037276] PTP clock support registered
[    0.037953] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.039091] clocksource: Switched to clocksource arch_sys_counter
[    0.039867] thermal_sys: Registered thermal governor 'step_wise'
[    0.040242] NET: Registered protocol family 2
[    0.041035] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.041081] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.041121] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.041171] TCP: Hash tables configured (established 2048 bind 2048)
[    0.041293] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.041328] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.041579] NET: Registered protocol family 1
[    0.041622] PCI: CLS 0 bytes, default 64
[    0.043464] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.049130] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.049145] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.102141] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.104406] qcom-pcie 40000000.pci:    IO 0x40200000..0x402fffff -> 0x40200000
[    0.104434] qcom-pcie 40000000.pci:   MEM 0x40300000..0x40ffffff -> 0x40300000
[    0.380659] qcom-pcie 40000000.pci: Link up
[    0.380831] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.380848] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0x40200000-0x402fffff])
[    0.380862] pci_bus 0000:00: root bus resource [mem 0x40300000-0x40ffffff]
[    0.380902] pci 0000:00:00.0: [17cb:1001] type 01 class 0x060400
[    0.380941] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
[    0.381014] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.382529] PCI: bus0: Fast back to back transfers disabled
[    0.382768] pci 0000:01:00.0: [168c:0056] type 00 class 0x028000
[    0.382984] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.383695] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.385355] PCI: bus1: Fast back to back transfers disabled
[    0.385406] pci 0000:00:00.0: BAR 8: assigned [mem 0x40400000-0x405fffff]
[    0.385424] pci 0000:00:00.0: BAR 0: assigned [mem 0x40300000-0x40300fff]
[    0.385445] pci 0000:01:00.0: BAR 0: assigned [mem 0x40400000-0x405fffff 64bit]
[    0.388260] pcieport 0000:00:00.0: AER: enabled with IRQ 94
[    0.390012] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[    0.390030] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[    0.391291] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[    0.391383] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[    0.391466] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[    0.391547] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[    0.391871] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.393687] msm_serial 78af000.serial: msm_serial: detected port #0
[    0.393744] msm_serial 78af000.serial: uartclk = 1843200
[    0.393800] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 24, base_baud = 115200) is a MSM
[    0.393827] msm_serial: console setup on port #0
[    1.027448] printk: console [ttyMSM0] enabled
[    1.032365] msm_serial: driver initialized
[    1.041280] loop: module loaded
[    1.042750] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[    1.043386] nand: Macronix MX30LF2G18AC
[    1.050041] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.053640] 16 fixed-partitions partitions found on MTD device qcom_nand.0
[    1.061221] Creating 16 MTD partitions on "qcom_nand.0":
[    1.068044] 0x000000000000-0x000000100000 : "sbl1"
[    1.075420] 0x000000100000-0x000000200000 : "mibib"
[    1.079915] 0x000000200000-0x000000300000 : "qsee"
[    1.084719] 0x000000300000-0x000000380000 : "cdt"
[    1.089155] 0x000000380000-0x000000400000 : "appsblenv"
[    1.093855] 0x000000400000-0x000000480000 : "ART"
[    1.098862] 0x000000480000-0x000000680000 : "appsbl"
[    1.105231] 0x000000680000-0x000000700000 : "u_env"
[    1.108756] 0x000000700000-0x000000740000 : "s_env"
[    1.113192] 0x000000740000-0x000000780000 : "devinfo"
[    1.118018] 0x000000780000-0x000005f80000 : "kernel"
[    1.130615] random: fast init done
[    1.206985] 0x000000a80000-0x000005f80000 : "rootfs"
[    1.288879] mtd: device 11 (rootfs) set to be root filesystem
[    1.289222] mtdsplit: no squashfs found in "rootfs"
[    1.293626] 0x000005f80000-0x00000b780000 : "alt_kernel"
[    1.382886] 0x000006280000-0x00000b780000 : "alt_rootfs"
[    1.464857] 0x00000b780000-0x00000b880000 : "sysdiag"
[    1.466691] 0x00000b880000-0x00000ff00000 : "syscfg"
[    1.537903] libphy: ipq4019_mdio: probed
[    1.562937] ESS reset ok!
[    1.587056] ESS reset ok!
[    2.007435] libphy: Fixed MDIO Bus: probed
[    2.014079] EDMA using MAC@ - using
[    2.014091] a2:65:17:57:bc:be
[    2.123079] i2c /dev entries driver
[    2.125012] sdhci: Secure Digital Host Controller Interface driver
[    2.125375] sdhci: Copyright(c) Pierre Ossman
[    2.131695] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.139503] NET: Registered protocol family 10
[    2.146115] NET: Registered protocol family 17
[    2.154121] 8021q: 802.1Q VLAN Support v1.8
[    2.167380] Registering SWP/SWPB emulation handler
[    2.180578] ubi0: attaching mtd11
[    2.725691] random: crng init done
[    2.783682] ubi0: scanning is finished
[    2.799772] ubi0: attached mtd11 (name "rootfs", size 85 MiB)
[    2.799809] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.804504] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.811327] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.818133] ubi0: good PEBs: 680, bad PEBs: 0, corrupted PEBs: 0
[    2.824946] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    2.831185] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 1426662539
[    2.838189] ubi0: available PEBs: 0, total reserved PEBs: 680, PEBs reserved for bad PEB handling: 40
[    2.847534] ubi0: background thread "ubi_bgt0d" started, PID 104
[    2.848633] block ubiblock0_0: created from ubi0:0(rootfs)
[    2.862686] hctosys: unable to open rtc device (rtc0)
[    2.873625] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    2.875226] Freeing unused kernel memory: 1024K
[    2.912134] Run /sbin/init as init process
[    3.286167] init: Console is alive
[    3.286409] init: - watchdog -
[    4.664394] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.720571] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.724215] SCSI subsystem initialized
[    4.728187] ehci-fsl: Freescale EHCI Host controller driver
[    4.733354] ehci-platform: EHCI generic platform driver
[    4.738329] dwc3-qcom 8af8800.usb3: IRQ hs_phy_irq not found
[    4.740454] dwc3-qcom 8af8800.usb3: IRQ dp_hs_phy_irq not found
[    4.746330] dwc3-qcom 8af8800.usb3: IRQ dm_hs_phy_irq not found
[    4.751973] dwc3-qcom 8af8800.usb3: IRQ ss_phy_irq not found
[    4.759291] dwc3-qcom 60f8800.usb2: IRQ hs_phy_irq not found
[    4.763764] dwc3-qcom 60f8800.usb2: IRQ dp_hs_phy_irq not found
[    4.769455] dwc3-qcom 60f8800.usb2: IRQ dm_hs_phy_irq not found
[    4.775046] dwc3-qcom 60f8800.usb2: IRQ ss_phy_irq not found
[    4.793200] dwc3 8a00000.dwc3: Failed to get clk 'ref': -2
[    4.914633] dwc3 6000000.dwc3: Failed to get clk 'ref': -2
[    5.015458] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.015543] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    5.020212] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x0000000002010010
[    5.027509] xhci-hcd xhci-hcd.0.auto: irq 97, io mem 0x08a00000
[    5.037738] hub 1-0:1.0: USB hub found
[    5.042754] hub 1-0:1.0: 1 port detected
[    5.046837] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.050633] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    5.055897] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    5.063567] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.070620] hub 2-0:1.0: USB hub found
[    5.078311] hub 2-0:1.0: 1 port detected
[    5.083215] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    5.085932] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    5.091466] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x0000000002010010
[    5.098838] xhci-hcd xhci-hcd.1.auto: irq 98, io mem 0x06000000
[    5.109001] hub 3-0:1.0: USB hub found
[    5.114113] hub 3-0:1.0: 1 port detected
[    5.118186] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    5.122002] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    5.127241] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    5.134938] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.141955] hub 4-0:1.0: USB hub found
[    5.149759] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    5.156998] usbcore: registered new interface driver usb-storage
[    5.161598] usbcore: registered new interface driver uas
[    5.166658] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.175898] init: - preinit -
[   10.354717] UBIFS (ubi0:1): Mounting in unauthenticated mode
[   10.354947] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 194
[   10.397980] UBIFS (ubi0:1): recovery needed
[   10.530746] UBIFS (ubi0:1): recovery completed
[   10.531083] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.534140] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.542210] UBIFS (ubi0:1): FS size: 72249344 bytes (68 MiB, 569 LEBs), journal size 3555328 bytes (3 MiB, 28 LEBs)
[   10.552004] UBIFS (ubi0:1): reserved for root: 3412514 bytes (3332 KiB)
[   10.562239] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 090C6858-CDCE-4BA3-B0CD-63E9ADA9CF9D, small LPT model
[   10.575564] mount_root: loading kmods from internal overlay
[   10.609946] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   10.611630] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   11.289323] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[   11.417815] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   11.423335] block: extroot: not configured
[   11.426594] mount_root: switching to ubifs overlay
[   11.439658] urandom-seed: Seeding with /etc/urandom.seed
[   11.509231] usb 2-1: Device not responding to setup address.
[   11.563531] procd: - early -
[   11.563671] procd: - watchdog -
[   11.729159] usb 2-1: device not accepting address 2, error -71
[   12.145383] procd: - watchdog -
[   12.148467] procd: - ubus -
[   12.311851] procd: - init -
[   12.868929] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.890883] tun: Universal TUN/TAP device driver, 1.6
[   12.911056] urngd: v1.0.2 started.
[   13.067254] fuse: init (API version 7.31)
[   13.073468] usbcore: registered new interface driver cdc_acm
[   13.073501] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   13.079202] usbcore: registered new interface driver cdc_wdm
[   13.086649] Loading modules backported from Linux version v5.10.16-0-gde53befa79cf
[   13.091893] Backport generated by backports.git v5.10.16-1-0-g21d2a1d2
[   13.266186] usbcore: registered new interface driver usblp
[   13.270999] usbcore: registered new interface driver usbserial_generic
[   13.271092] usbserial: USB Serial support registered for generic
[   13.282773] wireguard: WireGuard 1.0.20201112 loaded. See www.wireguard.com for information.
[   13.283253] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   13.298908] xt_time: kernel timezone is -0000
[   13.307170] usbcore: registered new interface driver cdc_ncm
[   13.327056] usbcore: registered new interface driver huawei_cdc_ncm
[   13.392588] PPP generic driver version 2.4.2
[   13.393782] NET: Registered protocol family 24
[   13.397578] usbcore: registered new interface driver qmi_wwan
[   13.401861] usbcore: registered new interface driver rndis_host
[   13.406990] usbcore: registered new interface driver sierra
[   13.412023] usbserial: USB Serial support registered for Sierra USB modem
[   13.421707] usbcore: registered new interface driver sierra_net
[   17.049183] xhci-hcd xhci-hcd.0.auto: Timeout while waiting for setup device command
[   17.269203] usb 2-1: Device not responding to setup address.
[   17.489138] usb 2-1: device not accepting address 3, error -71
[   17.497366] usb usb2-port1: attempt power cycle
[   24.016194] usbcore: registered new interface driver cdc_mbim
[   24.050963] usbcore: registered new interface driver option
[   24.051080] usbserial: USB Serial support registered for GSM modem (1-port)
[   24.059018] usbcore: registered new interface driver qcserial
[   24.062477] usbserial: USB Serial support registered for Qualcomm USB modem
[   24.073352] kmodloader: done loading kernel modules from /etc/modules.d/*

Jak widać po starcie dysk nie jest zamontowany

mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/ubi0_1 on /overlay type ubifs (rw,noatime,assert=read-only,ubi=0,vol=1)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)

Nie widać go w portach usb

lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/0p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M

Załadowane sterowniki

lsmod 
ledtrig_usbport        12288  0
mii                    12288  1 usbnet
scsi_mod               81920  3 uas,usb_storage,sd_mod
usb_storage            45056  1 uas
usb_wwan               12288  2 qcserial,option
usblp                  16384  0
usbnet                 20480  7 cdc_mbim,sierra_net,rndis_host,qmi_wwan,huawei_cdc_ncm,cdc_ncm,cdc_ether
usbserial              20480  4 qcserial,option,usb_wwan,sierra
scsi_mod               81920  3 uas,usb_storage,sd_mod
uas                    16384  0
usb_storage            45056  1 uas
ehci_fsl               12288  0
ehci_hcd               40960  2 ehci_platform,ehci_fsl
ehci_platform          12288  0
xhci_hcd              102400  2 xhci_plat_hcd,xhci_pci
xhci_pci               12288  0
xhci_plat_hcd          12288  0

Jak wyjmę wtyczkę USB i podłącze ponownie to dysk przy rozruchu nie hałasuje i pojawia się w urządzeniach USB

 lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/0p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 5, If 0, Class=, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M

Również się montuje w systemie prawidłowo

[  914.228796] usb 2-1: USB disconnect, device number 5
[  922.578949] usb 2-1: new SuperSpeed Gen 1 USB device number 6 using xhci-hcd
[  922.915554] usb-storage 2-1:1.0: USB Mass Storage device detected
[  922.916887] scsi host0: usb-storage 2-1:1.0
[  924.262625] scsi 0:0:0:0: Direct-Access     Innostor Ext. HDD         0.00 PQ: 0 ANSI: 6
[  924.274535] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[  924.279183] sd 0:0:0:0: [sda] Write Protect is off
[  924.281295] sd 0:0:0:0: [sda] Mode Sense: 3b 00 00 00
[  924.286477] sd 0:0:0:0: [sda] No Caching mode page found
[  924.291126] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  924.382749]  sda: sda1
[  924.398707] sd 0:0:0:0: [sda] Attached SCSI disk
[  925.006307] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:

mount
/dev/sda1 on /mnt/sdb1 type ext4 (rw,relatime)

Jak obciążę dysk to pojawiają się problemy, najłatwiej to powtórzyć restartując usługę minidlna. Zaczuna skanować dysk aby utworzyć bazę i zapisuje wyniki na ten sam dysk. Wtedy pojawiają się błędy i dysk znika, dodatkowo słychać ten dziwny hałas/dźwięk co słyszalny jest przy starcie routera. Czasami kończy się to zniknięciem dysku z portu USB lub odmontowaniem lub po prostu brakiem dostępu do niego po ścieżce pod którą został zamontowany.

[ 1141.720196] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1141.720601] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 81 09 00 00 00 08 00
[ 1141.728004] blk_update_request: I/O error, dev sda, sector 1166084352 op 0x0:(READ) flags 0x3000 phys_seg 1 prio class 0
[ 1141.736475] EXT4-fs warning (device sda1): htree_dirblock_to_tree:997: inode #36438017: lblock 0: comm minidlnad: error -5 reading directory block
[ 1145.750359] usb 2-1: reset SuperSpeed Gen 1 USB device number 6 using xhci-hcd
[ 1333.011759] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1333.013450] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 48 c0 0b 00 00 00 60 00
[ 1333.020521] blk_update_request: I/O error, dev sda, sector 1220545280 op 0x0:(READ) flags 0x80700 phys_seg 12 prio class 0
[ 1349.450012] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1349.450414] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 48 c0 0b 08 00 00 58 00
[ 1349.457433] blk_update_request: I/O error, dev sda, sector 1220545288 op 0x0:(READ) flags 0x80000 phys_seg 11 prio class 0
[ 1353.395828] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1353.396238] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 48 c0 0b 60 00 00 18 00
[ 1353.403640] blk_update_request: I/O error, dev sda, sector 1220545376 op 0x0:(READ) flags 0x80000 phys_seg 3 prio class 0
[ 1353.410683] EXT4-fs error (device sda1): __ext4_get_inode_loc:4713: inode #38143171: block 152567916: comm minidlnad: unable to read itable block
[ 1377.029992] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1377.030506] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 3a 04 08 a8 00 00 40 00
[ 1377.037578] blk_update_request: I/O error, dev sda, sector 973342888 op 0x1:(WRITE) flags 0x800 phys_seg 8 prio class 0
[ 1377.046367] Aborting journal on device sda1-8.
[ 1377.055433] EXT4-fs (sda1): ext4_writepages: jbd2_start: 2048 pages, ino 26476546; err -30
[ 1400.664231] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1400.664806] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 00 00 2c b0 00 00 08 00
[ 1400.671944] blk_update_request: I/O error, dev sda, sector 11440 op 0x1:(WRITE) flags 0x103000 phys_seg 1 prio class 0
[ 1400.679023] Buffer I/O error on dev sda1, logical block 1174, lost async page write
[ 1424.218137] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1424.218296] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 00 00 08 00 00 00 08 00
[ 1424.225371] blk_update_request: I/O error, dev sda, sector 2048 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[ 1424.232833] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[ 1424.243217] EXT4-fs (sda1): previous I/O error to superblock detected
[ 1447.815403] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1447.815922] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 3a 04 08 00 00 00 08 00
[ 1447.822992] blk_update_request: I/O error, dev sda, sector 973342720 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[ 1447.830427] Buffer I/O error on dev sda1, logical block 121667584, lost sync page write
[ 1447.840906] JBD2: Error -5 detected when updating journal superblock for sda1-8.
[ 1471.412549] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1471.413073] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 00 00 08 00 00 00 08 00
[ 1471.419886] blk_update_request: I/O error, dev sda, sector 2048 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[ 1471.427346] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[ 1471.437769] EXT4-fs (sda1): previous I/O error to superblock detected
[ 1495.048530] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1495.048935] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 00 00 08 00 00 00 08 00
[ 1495.056010] blk_update_request: I/O error, dev sda, sector 2048 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[ 1495.063786] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[ 1495.073670] EXT4-fs (sda1): I/O error while writing superblock
[ 1495.073679] EXT4-fs (sda1): I/O error while writing superblock
[ 1495.073693] EXT4-fs error (device sda1): ext4_journal_check_start:61: Detected aborted journal
[ 1495.080868] EXT4-fs error (device sda1): ext4_journal_check_start:61: Detected aborted journal
[ 1495.086731] EXT4-fs (sda1): Remounting filesystem read-only
[ 1495.092525] EXT4-fs (sda1): Remounting filesystem read-only
[ 1518.602600] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1518.602742] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 00 00 08 00 00 00 08 00
[ 1518.609851] blk_update_request: I/O error, dev sda, sector 2048 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[ 1518.617505] Buffer I/O error on dev sda1, logical block 0, lost sync page write
[ 1518.627646] EXT4-fs (sda1): previous I/O error to superblock detected
[ 1522.550263] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1522.550847] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 80 0a 08 00 00 88 00
[ 1522.557871] blk_update_request: I/O error, dev sda, sector 1166019080 op 0x0:(READ) flags 0x80700 phys_seg 17 prio class 0
[ 1526.618466] usb 2-1: reset SuperSpeed Gen 1 USB device number 6 using xhci-hcd
[ 1527.349367] EXT4-fs (sda1): ext4_writepages: jbd2_start: 2048 pages, ino 26476546; err -30
[ 1529.737984] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1529.738046] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 94 03 f0 00 00 20 00
[ 1529.745165] blk_update_request: I/O error, dev sda, sector 1167328240 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[ 1550.073998] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1550.074111] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 94 03 f0 00 00 08 00
[ 1550.081329] blk_update_request: I/O error, dev sda, sector 1167328240 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1555.207435] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1555.207959] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 97 fd 38 00 00 20 00
[ 1555.215020] blk_update_request: I/O error, dev sda, sector 1167588664 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[ 1575.498907] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1575.499310] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 97 fd 38 00 00 08 00
[ 1575.506908] blk_update_request: I/O error, dev sda, sector 1167588664 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1599.045188] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1599.045592] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 97 fd 38 00 00 08 00
[ 1599.054243] blk_update_request: I/O error, dev sda, sector 1167588664 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1604.015485] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1604.016389] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 94 fb f0 00 00 20 00
[ 1604.022989] blk_update_request: I/O error, dev sda, sector 1167391728 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 0
[ 1624.354351] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1624.354874] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 94 fb f0 00 00 08 00
[ 1624.361932] blk_update_request: I/O error, dev sda, sector 1167391728 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1647.944484] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1647.944889] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 94 fb f0 00 00 08 00
[ 1647.952389] blk_update_request: I/O error, dev sda, sector 1167391728 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1671.534723] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1671.535299] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 94 fb f0 00 00 08 00
[ 1671.542335] blk_update_request: I/O error, dev sda, sector 1167391728 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1675.610046] usb 2-1: reset SuperSpeed Gen 1 USB device number 6 using xhci-hcd
[ 1675.901069] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1675.901664] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 95 d4 88 00 00 20 00
[ 1675.908986] blk_update_request: I/O error, dev sda, sector 1167447176 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[ 1679.866336] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1679.866738] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 95 de c0 00 00 20 00
[ 1679.873823] blk_update_request: I/O error, dev sda, sector 1167449792 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 0
[ 1700.248587] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1700.248700] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 95 de c0 00 00 08 00
[ 1700.255930] blk_update_request: I/O error, dev sda, sector 1167449792 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1723.928729] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1723.928846] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 95 de c0 00 00 08 00
[ 1723.936034] blk_update_request: I/O error, dev sda, sector 1167449792 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1747.477245] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1747.477654] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 95 de c0 00 00 08 00
[ 1747.484740] blk_update_request: I/O error, dev sda, sector 1167449792 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1751.423660] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1751.424064] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 95 e7 80 00 00 20 00
[ 1751.431700] blk_update_request: I/O error, dev sda, sector 1167452032 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 0
[ 1775.060553] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1775.060961] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 95 e7 80 00 00 08 00
[ 1775.068431] blk_update_request: I/O error, dev sda, sector 1167452032 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1798.657027] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1798.657429] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 95 e7 80 00 00 08 00
[ 1798.664505] blk_update_request: I/O error, dev sda, sector 1167452032 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1822.216544] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1822.217092] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 95 e7 80 00 00 08 00
[ 1822.224146] blk_update_request: I/O error, dev sda, sector 1167452032 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1826.161437] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1826.161487] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 9b f9 80 00 00 20 00
[ 1826.168636] blk_update_request: I/O error, dev sda, sector 1167849856 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 0
[ 1849.718258] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1849.718779] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 45 9b f9 80 00 00 08 00
[ 1849.725849] blk_update_request: I/O error, dev sda, sector 1167849856 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1869.526220] usb 2-1: reset SuperSpeed Gen 1 USB device number 6 using xhci-hcd
[ 1878.796689] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 1878.797209] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 2f ae 1a d0 00 00 48 00
[ 1878.805546] blk_update_request: I/O error, dev sda, sector 799939280 op 0x0:(READ) flags 0x80700 phys_seg 9 prio class 0
[ 1883.468158] usb 2-1: reset SuperSpeed Gen 1 USB device number 6 using xhci-hcd

Ja już naprawdę nie wiem co zrobić, próbowałem użyć tylko sterów USB2, wywalić uas, wywalić USB3 ale zostawić sam ster xhci-hcd, brak mi już pomysłów i chętnie skorzystam z Waszych rad.

2

Odp: OpenWrt 21.02, ea8300, ipq4019, ipq40xx, USB HDD I/O error

- wyłącz wifi 2.4GHz
- podepnij dysku przez przez hub usb z własnym - porządnym zasilaniem

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: OpenWrt 21.02, ea8300, ipq4019, ipq40xx, USB HDD I/O error

Myślałem, że to może być problem z zasilaniem. Łudziłem się, że jednak będzie to działać, bo w końcu producent umożliwia podpięcie dysku 2.5 cala po USB, więc założyłem że będzie wystarczająco prądu. Miałem nadzieję, że to coś innego i szukałem rozwiązania.
Zamówiłem kilka dni temu HUB USB 3.0 z zewnętrznym zasilaczem 5V 10W. Wczoraj wieczorem przyszedł i po podłączeniu okazuje się, że rozwiązał problem.
Dzięki za podpowiedź, temat można zamknąć.

Ciekawy jestem czemu na oryginalnym oprogramowaniu dysk działał bez problemu, a na openwrt już nie.. OpenWrt jakoś inaczej zarządza energią?

PS. Wyłączenie wifi 2.4 próbowałem już wcześniej, nie pomogło.

4

Odp: OpenWrt 21.02, ea8300, ipq4019, ipq40xx, USB HDD I/O error

OpenWrt w ogóle nie zarządza energią, układy tam stosowane są tak proste że nie ma jak nimi sterować. Nie przeceniaj możliwości routerów.

Na oryginalne nie wdziałeś błędów usb, mogły być a firmware mogło je ukrywać.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: OpenWrt 21.02, ea8300, ipq4019, ipq40xx, USB HDD I/O error

Prawda. Faktycznie nie ma jak ich zobaczyć.
Dzięki za pomoc. Mam nadzieję, że temat dobrze się zindeksuje i w przyszłości ktoś kolejny nie będzie próbował wynaleźć koła na nowo wink

Reasumując, problem dotyczył słabego zasilania z wbudowanego portu USB. Rozwiązanie to HUB USB zasilany zewnętrznym zasilaczem.
Temat do zamknięcia.