summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2022-08-10 01:42:12 -0700
committerH. Peter Anvin <hpa@zytor.com>2022-08-10 01:42:12 -0700
commitf9c92995ca03dc97e77558934713903db9c85d27 (patch)
tree5753da24594e957cd288bfa4e97c4915019cddb3
parentcf4bde9bf6568e4c030688b266e8adb44725ba6b (diff)
downloadblinktest-f9c92995ca03dc97e77558934713903db9c85d27.tar.gz
blinktest-f9c92995ca03dc97e77558934713903db9c85d27.tar.xz
blinktest-f9c92995ca03dc97e77558934713903db9c85d27.zip
udev: add udev rules for a Linux host, for those so interested
-rw-r--r--udev/99-max80.rules31
-rw-r--r--udev/99-usbblaster.rules8
2 files changed, 39 insertions, 0 deletions
diff --git a/udev/99-max80.rules b/udev/99-max80.rules
new file mode 100644
index 0000000..85fcee8
--- /dev/null
+++ b/udev/99-max80.rules
@@ -0,0 +1,31 @@
+# MAX80
+
+SUBSYSTEM=="tty", \
+ENV{ID_BUS}=="usb", \
+ENV{ID_VENDOR_ID}=="303a", \
+ENV{ID_MODEL_ID}=="0002", \
+MODE="0666", \
+SYMLINK+="max80/esp"
+
+SUBSYSTEM=="tty", \
+ENV{ID_BUS}=="usb", \
+ENV{ID_VENDOR_ID}=="4680", \
+ENV{ID_MODEL_ID}=="0882", \
+MODE="0666", \
+SYMLINK+="max80/esp"
+
+SUBSYSTEM=="tty", \
+ENV{ID_BUS}=="usb", \
+ENV{ID_VENDOR_ID}=="4680", \
+ENV{ID_MODEL_ID}=="0881", \
+ENV{ID_USB_INTERFACE_NUM}=="00", \
+MODE="0666", \
+SYMLINK+="max80/console"
+
+SUBSYSTEM=="tty", \
+ENV{ID_BUS}=="usb", \
+ENV{ID_VENDOR_ID}=="4680", \
+ENV{ID_MODEL_ID}=="0881", \
+ENV{ID_USB_INTERFACE_NUM}=="02", \
+MODE="0666", \
+SYMLINK+="max80/net"
diff --git a/udev/99-usbblaster.rules b/udev/99-usbblaster.rules
new file mode 100644
index 0000000..1853ee0
--- /dev/null
+++ b/udev/99-usbblaster.rules
@@ -0,0 +1,8 @@
+# For Altera USB-Blaster permissions.
+
+SUBSYSTEM=="usb", \
+ENV{DEVTYPE}=="usb_device", \
+ATTR{idVendor}=="09fb", \
+ATTR{idProduct}=="6001", \
+MODE="0666", \
+SYMLINK+="usb-blaster"