diff --git a/README.md b/README.md index 88999daf..611399f8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,33 @@ # rcb4 +Linux users have to install `udev `_ rules for rcb4 supported boards/devices. The latest version of the rules may be found at +https://github.com/iory/rcb4/tree/master/rcb4/assets/system/99-rcb4-udev.rules + +This file must be placed at ``/etc/udev/rules.d/99-rcb4-udev.rules`` (preferred location) or ``/lib/udev/rules.d/99-rcb4-udev.rules`` (required on some broken systems). + +Please open the system Terminal and type + +```bash +curl -fsSL https://raw.githubusercontent.com/iory/rcb4/master/rcb4/assets/system/99-rcb4-udev.rules | sudo tee /etc/udev/rules.d/99-rcb4-udev.rules +sudo udevadm control --reload-rules +sudo udevadm trigger +``` + +Or you can manually download and copy the file to a destination folder + +```bash +sudo cp 99-rcb4-udev.rules /etc/udev/rules.d/99-rcb4-udev.rules +sudo udevadm control --reload-rules +sudo udevadm trigger +``` + +Ubuntu/Debian users may need to add own “username” to the “dialout” group if they are not “root”, doing this issuing + +``` +sudo usermod -a -G dialout $USER +sudo usermod -a -G plugdev $USER +``` + ## Install ```bash diff --git a/rcb4/assets/system/99-rcb4-udev.rules b/rcb4/assets/system/99-rcb4-udev.rules new file mode 100644 index 00000000..75cd279d --- /dev/null +++ b/rcb4/assets/system/99-rcb4-udev.rules @@ -0,0 +1,3 @@ +SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="ftdi-$attr{serial}", MODE="0666" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", SYMLINK+="aki-$attr{serial}", MODE="0666" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="165c", ATTRS{idProduct}=="0008", SYMLINK+="rcb4-$attr{serial}", MODE="0666"