TheOWL Posted April 29, 2023 Share Posted April 29, 2023 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"? 0 Quote Link to comment Share on other sites More sharing options...
ning Posted April 29, 2023 Share Posted April 29, 2023 blacklist uas 0 Quote Link to comment Share on other sites More sharing options...
Werner Posted April 30, 2023 Share Posted April 30, 2023 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... 0 Quote Link to comment Share on other sites More sharing options...
TheOWL Posted April 30, 2023 Author Share Posted April 30, 2023 @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 . 0 Quote Link to comment Share on other sites More sharing options...
TheOWL Posted April 30, 2023 Author Share Posted April 30, 2023 (edited) 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 April 30, 2023 by TheOWL 0 Quote Link to comment Share on other sites More sharing options...
Solution TheOWL Posted April 30, 2023 Author Solution Share Posted April 30, 2023 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... 0 Quote Link to comment Share on other sites More sharing options...
technik007_cz Posted January 8 Share Posted January 8 (edited) 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 January 9 by technik007_cz 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.