Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How can I change usb-disk driver "UAS" to "usb-storage" ?

Featured Replies

I run "armbianmonitor -u" and I got this : https://paste.armbian.com/bapohonaja

 

My SBC is orangepi zero 2, and I tried to use it as a NAS.

But sometime the system hangup because I push to much file in my usb-disk. And I G**gle about it. Somebody said because usb driver is "UAS".

So I use command "lsusb -t" and bingo, my usb driver is "uas":

```

>: lsusb

Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 152d:0562 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

>: lsusb -t

/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ehci/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ehci/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ehci/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 480M

```

I tried "/etc/modprobe.d/disable_uas.conf" with "options usb-storage quirks=152d:0562:u" and "update-alternatives -u" and reboot but failed.

I tried "/boot/armbianEnv.txt" with "usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u,0x152d:0x0562:u" and "update-alternatives -u" and reboot but failed.

Still "uas" there!

 

Is that posible to change "uas" driver to "usb-storage"?

Solved by TheOWL

8 hours ago, TheOWL said:

update-alternatives -u

You are aware that this command has noting to do with boot stuff? Maybe update-initramfs -u is what you are looking for after adjusting such things...

  • Author

@Werner "update-alternatives -u" is a typing mistake...... I check .bash_history file and I'm quite sure I'm using "update-initramfs -u"......

===========================

root@orangepizero2:/etc/modprobe.d# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.9.318-sun50iw9
update-initramfs: Converting to u-boot format

===========================

After I change everything in /etc/modprobe.d/ , I will "update-initramfs -u" and reboot.

Or eachtime I modify /boot/armbianEnv.txt, I will "update-initramfs -u" and reboot, too.

"uas" still in "lsusb -t"......

 

@ning Do you mean write "blacklist uas" into /etc/modprobe.d/blacklist-orangepizero2.conf, and "update-initramfs -u" and reboot? Yes, I tried it .

  • Author

Echo from "lsusb" and "lsusb -t":

===================================

root@orangepizero2:/boot# lsusb
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 152d:0562 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@orangepizero2:/boot# lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ehci/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ehci/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ehci/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 480M

===================================

 

 

Echo from "cat /boot/armbianEnv.txt"

===================================

root@orangepizero2:/boot# cat armbianEnv.txt
verbosity=1
console=serial
disp_mode=1080p60
fb0_width=1280
fb0_height=720
rootdev=UUID=bb376e29-2786-497f-97de-2a9dbcb6b443
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u,0x152d:0x0562:u,0x1d6b:0x0001:u,0x1d6b:0x0002:u

===================================

 

 

Echo from "cat /proc/cmdline":

===================================

root@orangepizero2:/boot# cat /proc/cmdline
root=UUID=bb376e29-2786-497f-97de-2a9dbcb6b443 rootwait rootfstype=ext4 splash=verbose console=ttyS0,115200 consoleblank=0 loglevel=1 ubootpart=f85e630b-01 disp_reserve=3686400,0x7bf4fcc0

===================================

 

That's all what I get here...

Edited by TheOWL

  • Author
  • Solution

OK, I change boot.cmd, add "usb-storage.quirks=0x152d:0x0562:u,0x1d6b:0x0002:u" to the cmd file, and recompile boot.scr. And I got "usb-storage" in my usb disk now.

It's a solution for me...

I had same problem with RTL9210 based NVME enclosure. But I could not find one of them boot.cmd or boot.scr.

So I did it old fashion way like on Raspbian OS and added usb-storage.quirks parameter into /boot/firmware/cmdline.txt and after reboot UAS driver was replaced with basic usb one.

 

Note: I tried to edit /boot/armbianEnv.txt but it did not work. 

Edited by technik007_cz

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
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.