Jump to content

Question

Posted (edited)
Роутер KN-1811/1812 или любой другой с USB.
 
Конфигурация:
system set dev.usb.allow_uas 1
 
В любой из портов подключен:
dmesg

...
xhci-mtk 1a0c0000.usb: xHCI Host Controller
xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 2
xhci-mtk 1a0c0000.usb: Host supports USB 3.0 SuperSpeed
usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.09
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: xHCI Host Controller
usb usb2: Manufacturer: Linux 4.9-ndm-5 xhci-hcd
usb usb2: SerialNumber: 1a0c0000.usb
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci-mtk
usb 2-1: New USB device found, idVendor=2e8a, idProduct=0030, bcdDevice=11.00
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: USB Flash Drive
usb 2-1: Manufacturer: Raspberry Pi
usb 2-1: SerialNumber: <edited>
usb 2-1: UAS is whitelisted for this device
usb 2-1: UAS is whitelisted for this device
scsi host0: uas
scsi 0:0:0:0: Direct-Access     General  USB Flash Drive  1100 PQ: 0 ANSI: 6
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 501350400 512-byte logical blocks: (257 GB/239 GiB)
hw_nat: MediaTek HW NAT module v5.0.7.0-22 loaded, FoE size: 16384, AG pairs: 31
usb 1-1: new high-speed USB device number 3 using xhci-mtk
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes
 sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk
fastvpn: sizeof(bind) = 304

Через OPKG пробуем запросить smart, первый вызов отрабатывает, на следующий раз - роутер зависает и не доступен пока не отвалится накопитель:

smartctl -d sat,12 -a /dev/sda
dmesg

...
xhci-mtk 1a0c0000.usb: ERROR Transfer event for disabled endpoint or incorrect stream ring
xhci-mtk 1a0c0000.usb: @0000000057609f20 57d08100 00000000 1b000000 01058000
sd 0:0:0:0: [sda] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: IN 
sd 0:0:0:0: [sda] tag#0 CDB: opcode=0xa1 a1 08 0e 00 01 00 00 00 00 ec 00 00
scsi host0: uas_eh_bus_reset_handler start
usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using xhci-mtk
scsi host0: uas_eh_bus_reset_handler success
xhci-mtk 1a0c0000.usb: ERROR Transfer event for disabled endpoint or incorrect stream ring
xhci-mtk 1a0c0000.usb: @00000000576093e0 57d08100 00000000 1b000000 01058001

https://support.thepihut.com/hc/en-us/articles/33860320299421-SMART-not-working-on-Raspberry-Pi-USB-Flash-Drive

Хотелось бы полноценной поддержки для накопителя, где заявлено:

  • USB 3.0 gen 1×1 interface with type-A connector
  • USB Attached SCSI Protocol with fallback to USB Mass Storage
  • USB 3.0 U1/U2 idle power saving support
  • SMART drive health reporting

Спасибо. 

P.S. Отключение dev.usb.allow_uas решает проблему, но только вот Pi OS не "падает" (зависает и не обрабатывает трафик/не открывается интерфейс) от этого накопителя в любом режиме, как и любой другой линукс, например,  на Radxa E52. 

 
Edited by Namenloss
  • Upvote 1

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.