add udev rules based on openOCD
This commit is contained in:
parent
5a3c78c1c3
commit
d9e00cc8d8
|
|
@ -0,0 +1,21 @@
|
|||
# Copy this file to /etc/udev/rules.d/
|
||||
|
||||
ACTION!="add|change", GOTO="openfpgaloader_rules_end"
|
||||
SUBSYSTEM!="usb|tty|hidraw", GOTO="openfpgaloader_rules_end"
|
||||
|
||||
# Original FT232/FT245 VID:PID
|
||||
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="664", GROUP="plugdev"
|
||||
|
||||
# Original FT2232 VID:PID
|
||||
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="664", GROUP="plugdev"
|
||||
|
||||
# Original FT4232 VID:PID
|
||||
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", MODE="664", GROUP="plugdev"
|
||||
|
||||
# Original FT232H VID:PID
|
||||
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", MODE="664", GROUP="plugdev"
|
||||
|
||||
# Original FT231X VID:PID
|
||||
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", MODE="664", GROUP="plugdev"
|
||||
|
||||
LABEL="openfpgaloader_rules_end"
|
||||
14
README.md
14
README.md
|
|
@ -65,6 +65,20 @@ $ sudo make install
|
|||
The default install path is `/usr/local`, to change it, use
|
||||
`-DCMAKE_INSTALL_PREFIX=myInstallDir` in cmake invokation.
|
||||
|
||||
## access right
|
||||
|
||||
By default, users have no access to converters. A rule file
|
||||
(*99-openfpgaloader.rules*) for *udev* is provided at the root directory
|
||||
of this repository. These rules set access right and group (*plugdev*)
|
||||
when a converter is plugged.
|
||||
|
||||
```bash
|
||||
$ sudo cp 99-openfpgaloader.rules /etc/udev/rules.d/
|
||||
$ sudo udevadm control --reload-rules && udevadm trigger # force udev to take new rule
|
||||
$ sudo usermod -a YourUserName -G plugdev # add user to plugdev group
|
||||
```
|
||||
After that you need to unplug and replug your device.
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Reference in New Issue