关于 N1 接USB3.0 的 有硬盘盒,USB驱动 异常复位问题!

TMODER】 在 https://github.com/istoreos/istoreos/issues/2051 发布:
接了个USB3.0 硬盘盒,但发现USB 驱动经常异常:
[276225.475729] sd 0:0:0:0: [sda] tag#24 uas_eh_abort_handler 0 uas-tag 7 inflight: CMD
[276225.475734] sd 0:0:0:0: [sda] tag#24 CDB: opcode=0x8a 8a 00 00 00 00 00 02 81 31 70 00 00 00 08 00 00
[276225.475743] sd 0:0:0:0: [sda] tag#23 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD
[276225.475749] sd 0:0:0:0: [sda] tag#23 CDB: opcode=0x8a 8a 00 00 00 00 00 02 80 31 70 00 00 00 08 00 00
[276225.475758] sd 0:0:0:0: [sda] tag#22 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD
[276225.475764] sd 0:0:0:0: [sda] tag#22 CDB: opcode=0x8a 8a 00 00 00 00 00 02 80 30 f0 00 00 00 08 00 00
[276225.475773] sd 0:0:0:0: [sda] tag#21 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD
[276225.475779] sd 0:0:0:0: [sda] tag#21 CDB: opcode=0x8a 8a 00 00 00 00 00 02 80 10 08 00 00 00 08 00 00
[276225.475788] sd 0:0:0:0: [sda] tag#20 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD
[276225.475793] sd 0:0:0:0: [sda] tag#20 CDB: opcode=0x8a 8a 00 00 00 00 00 02 80 10 00 00 00 00 08 00 00
[276225.475803] sd 0:0:0:0: [sda] tag#0 uas_eh_abort_handler 0 uas-tag 12 inflight: CMD
[276225.475809] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x8a 8a 00 00 00 00 00 0f 01 47 20 00 00 00 08 00 00
[276225.535950] scsi host0: uas_eh_device_reset_handler start
[276225.536564] usb 1-1: cmd cmplt err -2
[276225.697303] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
[276225.884404] scsi host0: uas_eh_device_reset_handler success

找到一个遇到相同问题的 issue,链接:https://github.com/istoreos/istoreos/issues/1006,
提供了 修改 /boot/grub/grub.cfg 方案,但N1 下boot 没这些配置。

使用 echo ‘0080:a001:u’ > /sys/module/usb_storage/parameters/quirks
将 驱动类型 由 usa 修改为 Driver=usb-storage 后,重新插拔USB后正常,USB 驱动不再复位!

但上述修改在重启系统后失效,有无大佬知道,如何将这个修改 写入启动配置中?