after upgrade to SNAPSHOT, r8684-f6e9f23
root@OpenWrt:~# opkg list-installed | grep usb
kmod-usb-core - 4.14.87-1
kmod-usb-ledtrig-usbport - 4.14.87-1
kmod-usb3 - 4.14.87-1
root@OpenWrt:~#
root@OpenWrt:~# opkg list-installed | grep block
root@OpenWrt:~#
root@OpenWrt:~# opkg list-installed | grep fs
fstools - 2018-09-29-29e53af0-3
root@OpenWrt:~# dmesg | grep usb
[ 5.497885] usb_vbus: disabling
[ 6.655080] usbcore: registered new interface driver usbfs
[ 6.660694] usbcore: registered new interface driver hub
[ 6.666161] usbcore: registered new device driver usb
[ 6.680857] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
[ 6.750407] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 7.486623] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
root@OpenWrt:~# opkg install kmod-usb-storage
Installing kmod-usb-storage (4.14.87-1) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/4.14.87-1-ab71e6baa247b994f1363879625a7e6f/kmod-usb-storage_4.14.87-1_mipsel_24kc.ipk
Installing kmod-scsi-core (4.14.87-1) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/4.14.87-1-ab71e6baa247b994f1363879625a7e6f/kmod-scsi-core_4.14.87-1_mipsel_24kc.ipk
Configuring kmod-scsi-core.
Configuring kmod-usb-storage.
root@OpenWrt:~#
root@OpenWrt:~# opkg install usbutils
Installing usbutils (007-9) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/usbutils_007-9_mipsel_24kc.ipk
Installing librt (1.1.20-1) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/packages/librt_1.1.20-1_mipsel_24kc.ipk
Installing libusb-1.0 (1.0.22-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/libusb-1.0_1.0.22-1_mipsel_24kc.ipk
Configuring librt.
Configuring libusb-1.0.
Configuring usbutils.
root@OpenWrt:~#
root@OpenWrt:~# opkg install kmod-fs-vfat
Installing kmod-fs-vfat (4.14.87-1) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/4.14.87-1-ab71e6baa247b994f1363879625a7e6f/kmod-fs-vfat_4.14.87-1_mipsel_24kc.ipk
Installing kmod-nls-cp437 (4.14.87-1) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/4.14.87-1-ab71e6baa247b994f1363879625a7e6f/kmod-nls-cp437_4.14.87-1_mipsel_24kc.ipk
Installing kmod-nls-iso8859-1 (4.14.87-1) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/4.14.87-1-ab71e6baa247b994f1363879625a7e6f/kmod-nls-iso8859-1_4.14.87-1_mipsel_24kc.ipk
Installing kmod-nls-utf8 (4.14.87-1) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/4.14.87-1-ab71e6baa247b994f1363879625a7e6f/kmod-nls-utf8_4.14.87-1_mipsel_24kc.ipk
Configuring kmod-nls-cp437.
Configuring kmod-nls-iso8859-1.
Configuring kmod-nls-utf8.
Configuring kmod-fs-vfat.
root@OpenWrt:~#
root@OpenWrt:~# opkg install block-mount
Installing block-mount (2018-09-29-29e53af0-3) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/packages/block-mount_2018-09-29-29e53af0-3_mipsel_24kc.ipk
Configuring block-mount.
this file has been obsoleted. please call "/sbin/block mount" directly
root@OpenWrt:~#
root@OpenWrt:~# dmesg | grep usb
[ 5.497885] usb_vbus: disabling
[ 6.655080] usbcore: registered new interface driver usbfs
[ 6.660694] usbcore: registered new interface driver hub
[ 6.666161] usbcore: registered new device driver usb
[ 6.680857] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
[ 6.750407] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 7.486623] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 250.567010] usbcore: registered new interface driver usb-storage
after reboot we have:
root@OpenWrt:~# dmesg | grep usb
[ 5.507153] usb_vbus: disabling
[ 6.663965] usbcore: registered new interface driver usbfs
[ 6.669575] usbcore: registered new interface driver hub
[ 6.675047] usbcore: registered new device driver usb
[ 6.689604] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
[ 6.759729] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 7.566117] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 11.192779] usbcore: registered new interface driver usb-storage
root@OpenWrt:~#
root@OpenWrt:~# dmesg | grep scsi
root@OpenWrt:~# dmesg | grep error
[ 2.489010] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
root@OpenWrt:~#
root@OpenWrt:~# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/2p, 480M
root@OpenWrt:~#
missing driver...
following
point 8 there says to try opkg install kmod-usb-storage-uas
root@OpenWrt:~# opkg install kmod-usb-storage-uas
Installing kmod-usb-storage-uas (4.14.87-1) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/4.14.87-1-ab71e6baa247b994f1363879625a7e6f/kmod-usb-storage-uas_4.14.87-1_mipsel_24kc.ipk
Configuring kmod-usb-storage-uas.
root@OpenWrt:~# dmesg | grep usb
[ 5.507153] usb_vbus: disabling
[ 6.663965] usbcore: registered new interface driver usbfs
[ 6.669575] usbcore: registered new interface driver hub
[ 6.675047] usbcore: registered new device driver usb
[ 6.689604] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
[ 6.759729] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 7.566117] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 11.192779] usbcore: registered new interface driver usb-storage
[ 257.665113] usbcore: registered new interface driver uas
root@OpenWrt:~#
root@OpenWrt:~# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/2p, 480M
root@OpenWrt:~# dmesg | grep scsi
[ 11.225783] scsi host0: uas
[ 32.576709] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
[ 32.584264] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[ 33.666675] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -16
[ 33.673876] scsi 0:0:0:0: Device offlined - not ready after error recovery
root@OpenWrt:~#
Unfortunaltelly it is the same status like before change to snapshot...
Any ideas what more can I do?
*EDIT
after more looking for similar problem, found something interesting (maybe) here
the idea is that uas driver is not patient enough for drive initialization time. solution there is:
"usb-storage.delay_use=5" to the kernel or add "options usb_storage delay_use=5" to some custom .conf file in the modprobe.d directory....."
but how to do it in my openwrt ?
*******EDIT 2 ********
tried to send
echo 10 > /sys/module/usb_storage/parameters/delay_use
but no change in behaviour.
Additionally I found that many users who are using USB3 on this router have strange issues with 2,4G radio (5G is ok) , so I assume that even if I will solve that problem, will get in another trap.
What I found is that if I connect the disk thru 2.0 cable - it works (of course with 2.0 speed )
This is fine for me.
Anyway the problem is not resolved, and if someone have idea - will try it to learn something.