Hi,
I am using a nano pi r2s.
After an upgrade from my compiled from source 22.01 (i am not sure) to 23.05 build using image builder, the usb storage become unstable.
on the log:
uas_eh_abort_handler
ad described here : https://leo.leung.xyz/wiki/How_to_disable_USB_Attached_Storage_(UAS)
The workaround is to do:
echo 152d:1580:u >/sys/module/usb_storage/parameters/quirks
then unplug and plug again the usb disk
before :
root@OpenWrt:~# lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=, Driver=r8152, 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=ohci-platform/1p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
|__ Port 1: Dev 2, If 0, Class=, Driver=uas, 480M
after:
root@OpenWrt:~# lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=, Driver=r8152, 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=ohci-platform/1p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
|__ Port 1: Dev 3, If 0, Class=, Driver=usb-storage, 480M
But after reboot the usb disk use again the uas driver.
How to build an image with permanent change?
i tryed:
- add a custom file /etc/modules.d/usb-storage to the files parameter
- add a custom file sys/module/usb_storage/parameters/quirks
files
└──sys
└── module
└── usb_storage
└── parameters
└── quirks
- add to /etc/rc.local
echo 152d:1580:u >/sys/module/usb_storage/parameters/quirks
usbreset 152d:1580
But nothing work