chipsalliance / Cores-SweRV-Support-Package

Processor support packages
15 stars 7 forks source link

Cannot Install USB Rules on Ubuntu 18.04 Virtual Machine #5

Open Dueschen opened 2 years ago

Dueschen commented 2 years ago

OS: Ubuntu 18.04 x86_64, installed w/ Oracle VM VirtualBox under Windows 10

Hello, currently I'm trying to install USB rules for ARM-USB-TINY-H on my Ubuntu VM I've already installed USB 3.0 on VirtualBox and appended the USB hub to Ubuntu VM then I followed the instructions in 1.1 Install rules for USB device access but the group didn't change to "plugdev" and the permission didn't change from "crw-rw-r--" to "crw-rw-rw-"

I've also tried some other USB rules, but still can't change the group & permission... Could anyone please help? Thanks in advance!

The

dues@dues:~/RISCV/Cores-SweRV-Support-Package/usb-rules$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 15ba:002a Olimex Ltd. ARM-USB-TINY-H JTAG interface
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
dues@dues:~/RISCV/Cores-SweRV-Support-Package/usb-rules$ ls -l /dev/bus/usb/001/004
crw-rw-r-- 1 root root 189, 3 十一  5 14:29 /dev/bus/usb/001/004

dues@dues:~/RISCV/Cores-SweRV-Support-Package/usb-rules$ sudo cp 97-Olimex-tiny-h.rules /etc/udev/rules.d
dues@dues:~/RISCV/Cores-SweRV-Support-Package/usb-rules$ sudo cp 99-nexys-a7.rules      /etc/udev/rules.d
dues@dues:~/RISCV/Cores-SweRV-Support-Package/usb-rules$ sudo udevadm control --reload-rules
dues@dues:~/RISCV/Cores-SweRV-Support-Package/usb-rules$ sudo udevadm trigger

dues@dues:~/RISCV/Cores-SweRV-Support-Package/usb-rules$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 15ba:002a Olimex Ltd. ARM-USB-TINY-H JTAG interface
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
dues@dues:~/RISCV/Cores-SweRV-Support-Package/usb-rules$ ls -l /dev/bus/usb/001/004
crw-rw-r-- 1 root root 189, 3 十一  5 14:31 /dev/bus/usb/001/004
Dueschen commented 2 years ago

Hi again. Afterwards I tried to edit the rules. I changed SUBSYSTEMS to SUBSYSTEM, and deleted ATTRS{manufacturer}=="Olimex", then it worked.

The 97-Olimex-tiny-h.rules I use for now:

# Add permissions to all users to access the FTDI peripheral (mode 0666):
SUBSYSTEM=="usb", ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="002a", MODE="0666", GROUP="plugdev"