I have added the usb-enclosure to use quirck but I get uas

This forum is for supported devices using an ARMv7 Samsung SoC.

I have added the usb-enclosure to use quirck but I get uas

Postby rezad » Fri Mar 22, 2024 10:20 pm

in the past I has seen error with UAS for usb so I tried to disable them with
usb-storage.quirks=174c:55aa:u in /boot/boot.txt

but for sometimes now I still get hdd error so i checked and my usb-hdd still gets connected as UAS.

how do I make my odroid xu4 archlinux to apply that quirk?\
adding them to
cat /etc/modprobe.d/disable_uas.conf
options usb-storage quirks=2109:0715:u
options usb-storage quirks=174c:55aa:u
doesnt help either


sometimes later (I dont know if related) I had error upon any packman update that was kernel image rebuild hook related as described heremake_clickable_callback(MAGIC_URL_LOCAL, ' ', 'https://archlinuxarm.org/forum', 'viewtopic.php?f=15&t=16672&start=40', ' class="postlink-local"')

today I removed KMS from hooks in mkinitcpo and those error for hook errors.


but I still have my usb bugs that is uas loading and not being blacklisted.

can someone help me fix that?
rezad
 
Posts: 29
Joined: Fri Jun 10, 2016 11:28 am

Re: I have added the usb-enclosure to use quirck but I get u

Postby karog » Sat Mar 23, 2024 1:09 am

@rezad,

I too have an XU4 and also N2 and N2+. I have problems sometimes with my XU4 under heavy I/O and my root dir becomes read-only and things go to hell. A reboot works until some later time it happens again. I have quirks for a seagate drive but I put that there so long ago I completely forgot about it. Your post got me thinking again.

I checked with lsusb and lsusb -t to see that my root drive is an SSD attached with USB to SATA converter from ASMedia and it is using uas. My N2's are the same but I have never had problems with them. So I googled and found this file:

URL=http://www.linux-usb.org/usb.ids

which has vendor and model IDs for 25000 or so devices. I found ASMedia there and only one of their devices was 6Gb/s like mine but the model number was a bit different (the values are same as one of yours 174c:55aa:u). Nonetheless I gave it a try and added a quirk (it is a comma separated list) to my /boot/boot.txt setenv bootargs and then ran ./mkscr when in /boot dir to create boot.scr. I rebooted and it worked, turned from uas to usb-storage.

I tried the modprobe.d method rather than bootargs which would be more convenient but it does not work for me.

I also found the following URLs useful:
URL=https://smitchell.github.io/how-to-bind-to-the-right-usb-storage-driver
URL=https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html

It has booted fine and is running. Only time will tell if my problems go away as they have happened rather randomly.

Can you tell me what kind of problems you have been seeing? I am curious if they manifest like mine. And thanks for posting and getting me to look at this again.
karog
 
Posts: 301
Joined: Thu Jan 05, 2012 7:55 pm

Re: I have added the usb-enclosure to use quirck but I get u

Postby rezad » Sat Mar 23, 2024 6:52 pm

my hdd goes mount readonly after sometime.

I have this
[code]cat /proc/cmdline
console=tty1 console=ttySAC2,115200n8 root=PARTUUID=04a7932c-01 rw rootwait smsc95xx.macaddr= usb-storage.quirks=174c:55aa:u usb-storage.quirks=2109:0715:u[/code]
so the quircks are added to boot parameters but....
[code]
[ +0.001268] sd 0:0:0:0: [sda] Attached SCSI disk
[Mar23 19:20] usb 4-1.1: USB disconnect, device number 4
[ +0.079874] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ +0.240024] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=DRIVER_OK
[ +2.047984] usb 4-1.1: new SuperSpeed USB device number 5 using xhci-hcd
[ +0.025590] usb 4-1.1: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[ +0.007025] usb 4-1.1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ +0.007347] usb 4-1.1: Product: ASM1153E
[ +0.004290] usb 4-1.1: Manufacturer: asmedia
[ +0.003794] usb 4-1.1: SerialNumber: 123456789012
[ +0.015376] scsi host0: uas
[/code]

as you see it is loaded as uas
I am using linux6.2 arm7 but even with linux-xu4 and reboot I still have this "uas".

the weird thing is that if I remember correctly, this quirks thing used to work. (or maybe I am confusing it with my laptop that I also added quircks too)
rezad
 
Posts: 29
Joined: Fri Jun 10, 2016 11:28 am

Re: I have added the usb-enclosure to use quirck but I get u

Postby karog » Sun Mar 24, 2024 1:46 am

Here is my boot log snippet:

[ 6.246984] usb 4-1.2: new SuperSpeed USB device number 4 using xhci-hcd
[ 6.272091] usb 4-1.2: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[ 6.279001] usb 4-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 6.286299] usb 4-1.2: Product: ASMT1051
[ 6.290175] usb 4-1.2: Manufacturer: asmedia
[ 6.294417] usb 4-1.2: SerialNumber: 12345678D170
[ 6.300657] usb 4-1.2: UAS is ignored for this device, using usb-storage instead
[ 6.306711] usb 4-1.2: UAS is ignored for this device, using usb-storage instead
[ 6.313987] usb-storage 4-1.2:1.0: USB Mass Storage device detected
[ 6.320766] usb-storage 4-1.2:1.0: Quirks match for vid 174c pid 55aa: c00000
[ 6.327575] scsi host1: usb-storage 4-1.2:1.0

You show your cmdline with the quirks but did not say how you set them. As I stated before I add to setenv bootargs in boot.txt/boot.scr. If you do it some other way, maybe there is a sequence issue where for you they get added to the cmdline after they are needed. Just guessing here. If you are adding them some other way, try boot.txt/boot.scr instead. Clearly it works for me.

And I am on linux kernel 6.2.10-1-ARCH
karog
 
Posts: 301
Joined: Thu Jan 05, 2012 7:55 pm


Return to Samsung

Who is online

Users browsing this forum: No registered users and 2 guests