JMicron JMS561U usb3.0 chip not work on xiaomi R3G
Username: John K. Yi
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=2027
Device:Xiaomi R3G
Kernel:4.14.90
USB chip: JMicron JMS561U VID_152D&PID_1561
It seems that JMS578 also does not work :
https://forum.openwrt.org/t/xiaomi-r3g-hdd-usb3-driver-not-working-jms578/27266/7
.
I have tried the
quirks method
, added these lines to “unusual_uas.h”:
UNUSUAL_DEV
(
0x152d, 0x1561, 0x0000, 0x9999,
"JMicron"
,
"JMS561U"
, USB_SC_DEVICE, USB_PR_DEVICE,
NULL
, US_FL_IGNORE_UAS
)
,
,
not work.
“echo 152d:1561:u > /sys/module/usb_storage/parameters/quirks” also not work.
Kernel log:
[ 5.881013] init: Console is alive
[ 5.884651] init: - watchdog -
[ 7.453658] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 7.479933] usbcore: registered new interface driver usbfs
[ 7.485517] usbcore: registered new interface driver hub
[ 7.491026] usbcore: registered new device driver usb
[ 7.594201] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 7.607361]
SCSI
subsystem initialized
[ 7.614642] ehci-platform: EHCI generic platform driver
[ 7.621903] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 7.629196] ohci-platform: OHCI generic platform driver
[ 7.636224] uhci_hcd: USB Universal Host Controller Interface driver
[ 7.657161] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
[ 7.666222] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 7.671562] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[ 7.686012] xhci-mtk 1e1c0000.xhci: hcc params 0×01401198 hci version 0×96 quirks 0×0000000000210010 [ 7.695188] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
[ 7.701946] hub 1-0:1.0: USB hub found
[ 7.705776] hub 1-0:1.0: 2 ports detected
[ 7.710388] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 7.715702] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[ 7.723208] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[ 7.729841] usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
[ 7.738796] hub 2-0:1.0: USB hub found
[ 7.742616] hub 2-0:1.0: 1 port detected
[ 7.752665] usbcore: registered new interface driver usb-storage
[ 7.760390] usbcore: registered new interface driver uas
[ 7.766105] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 7.786190] init: - preinit -
[ 8.318345] mtk_soc_eth 1e100000.ethernet: PPE started
[ 8.341071] random: procd: uninitialized urandom read (4 bytes read)
[ 11.460731] mount_root: loading kmods from internal overlay
[ 11.498578] kmodloader: loading kernel modules from
etc/modules-boot.d/*
[ 11.507232] kmodloader: done loading kernel modules from
etc/modules-boot.d/*
[ 12.023848] UBIFS (ubi0:1): background thread “ubifs_bgt0_1” started, PID 512
[ 12.097693] UBIFS (ubi0:1): recovery needed
[ 12.274265] UBIFS (ubi0:1): recovery completed
[ 12.278869] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name “rootfs_data” [ 12.286679] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 12.296568] UBIFS (ubi0:1): FS size: 106532864 bytes (101 MiB, 839 LEBs), journal size 5332992 bytes (5 MiB, 42 LEBs)
[ 12.307137] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[ 12.313724] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 21935D8A-D225-40D3-A666-E450DC973C82, small LPT model
[ 12.328275] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[ 12.344750] block: extroot: not configured
[ 12.396079] UBIFS (ubi0:1): un-mount UBI device 0
[ 12.400792] UBIFS (ubi0:1): background thread “ubifs_bgt0_1” stops
[ 12.413138] UBIFS (ubi0:1): background thread “ubifs_bgt0_1” started, PID 515
[ 12.572427] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name “rootfs_data” [ 12.580274] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 12.590165] UBIFS (ubi0:1): FS size: 106532864 bytes (101 MiB, 839 LEBs), journal size 5332992 bytes (5 MiB, 42 LEBs)
[ 12.600734] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[ 12.607344] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 21935D8A-D225-40D3-A666-E450DC973C82, small LPT model
[ 12.629208] mount_root: loading kmods from internal overlay
[ 12.664300] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[ 12.692358] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[ 13.071886] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[ 13.083646] block: extroot: not configured
[ 13.129348] mount_root: switching to ubifs overlay
[ 13.173926] urandom-seed: Seeding with /etc/urandom.seed
[ 13.228468] mtk_soc_eth 1e100000.ethernet: 0×100 = 0x6060000c, 0x10c = 0×80818 [ 13.246171] procd: - early -
[ 13.249146] procd: - watchdog -
[ 13.906017] procd: - watchdog -
[ 13.909468] procd: - ubus -
[ 13.942750] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.970840] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.977620] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.984803] procd: - init -
[ 14.410244] kmodloader: loading kernel modules from /etc/modules.d/*
[ 14.425773] Key type dns_resolver registered
[ 14.442969]
RPC
: Registered named UNIX socket transport module.
[ 14.448975]
RPC
: Registered udp transport module.
[ 14.453662]
RPC
: Registered tcp transport module.
[ 14.458384]
RPC
: Registered tcp NFSv4.1 backchannel transport module.
[ 14.473260] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[ 14.503423] NFS: Registering the id_resolver key type
[ 14.508539] Key type id_resolver registered
[ 14.512703] Key type id_legacy registered
[ 14.520614] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 14.532829] Netfilter messages via NETLINK v0.30.
[ 14.539712] ip_set: protocol 6
[ 14.575766] u32 classifier
[ 14.578554] input device check on
[ 14.582198] Actions configured
[ 14.587452] Mirror/redirect action on
[ 14.618603] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[ 14.633299] fuse init (
API
version 7.26)
[ 14.644825] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[ 14.652411] Backport generated by backports.git v4.19.7-1-0-g148b072d
[ 14.663681] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 14.731389] usbcore: registered new interface driver ums-alauda
[ 14.739326] usbcore: registered new interface driver ums-cypress
[ 14.747208] usbcore: registered new interface driver ums-datafab
[ 14.754968] usbcore: registered new interface driver ums-freecom
[ 14.762729] usbcore: registered new interface driver ums-isd200
[ 14.770872] usbcore: registered new interface driver ums-jumpshot
[ 14.779258] usbcore: registered new interface driver ums-karma
[ 14.787767] usbcore: registered new interface driver ums-sddr09
[ 14.795491] usbcore: registered new interface driver ums-sddr55
[ 14.803544] usbcore: registered new interface driver ums-usbat
[ 14.828519] xt_time: kernel timezone is -0000
[ 15.017536] bus=0×1, slot = 0×0, irq=0xff
[ 15.021747] mt7603e 0000:01:00.0: ASIC revision: 76030010
[ 15.071105] mt7603e 0000:01:00.0: Firmware Version: 1
[ 15.076217] mt7603e 0000:01:00.0: Build Time: 20161027164355
[ 15.115839] mt7603e 0000:01:00.0: firmware init done
[ 15.296005] ieee80211 phy0: Selected rate control algorithm ‘minstrel_ht’ [ 15.311234] bus=0×2, slot = 0×1, irq=0xff
[ 15.315503] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[ 15.992700] mt76x2e 0000:02:00.0: ROM patch build: 20141115060606a
[ 16.042948] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[ 16.048457] mt76x2e 0000:02:00.0: Build: 1
[ 16.052533] mt76x2e 0000:02:00.0: Build Time: 201507311614
[ 16.075834] mt76x2e 0000:02:00.0: Firmware running!
[ 16.083574] ieee80211 phy1: Selected rate control algorithm ‘minstrel_ht’ [ 16.092227] PPP generic driver version 2.4.2
[ 16.098473] NET: Registered protocol family 24
[ 16.106671] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 16.532730] urandom_read: 5 callbacks suppressed
[ 16.532742] random: jshn: uninitialized urandom read (4 bytes read)
[ 17.956058] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 17.991262] scsi host0: uas
[ 17.995050] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 4
[ 18.003510] xhci-mtk 1e1c0000.xhci: @000000000f58b1d0 0f7b0000 00000000 05000000 01058001
[ 18.011671] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 6
[ 18.020090] xhci-mtk 1e1c0000.xhci: @000000000f58b1e0 0f7b0100 00000000 05000000 01078001
[ 21.022658] random: crng init done
[ 21.910600] mtk_soc_eth 1e100000.ethernet: PPE started
[ 21.920277] device eth0 entered promiscuous mode
[ 21.926642] br-lan: port 1(eth0.1) entered blocking state
[ 21.932045] br-lan: port 1(eth0.1) entered disabled state
[ 21.938331] device eth0.1 entered promiscuous mode
[ 21.947215] br-lan: port 1(eth0.1) entered blocking state
[ 21.952659] br-lan: port 1(eth0.1) entered forwarding state
[ 21.958842] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 22.916769] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 26.541100] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 26.552690] br-lan: port 2(wlan0) entered blocking state
[ 26.558025] br-lan: port 2(wlan0) entered disabled state
[ 26.564016] device wlan0 entered promiscuous mode
[ 28.812174] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 28.818943] br-lan: port 2(wlan0) entered blocking state
[ 28.824348] br-lan: port 2(wlan0) entered forwarding state
[ 39.575873] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
[ 39.583441] scsi 0:0:0:0: tag#0 CDB: opcode=0×12 12 00 00 00 24 00
[ 39.589751] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[ 39.599543] xhci-mtk 1e1c0000.xhci: ep deq seg = 8e949d00, deq ptr = ae8c8010
[ 40.665870] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -16
[ 40.673097] scsi 0:0:0:0: Device offlined - not ready after error recovery