More generic stlinkv2 udev naming
authorKarl Palsson <karlp@tweak.net.au>
Tue, 1 Nov 2011 21:56:43 +0000 (21:56 +0000)
committerHakkavélin <hakkavelin@braudrist.lan>
Tue, 1 Nov 2011 21:57:46 +0000 (21:57 +0000)
Better support for F4, or anything else that appears as an stlinkv2

49-stlinkv2.rules [new file with mode: 0644]
49-stm32l-discovery.rules [deleted file]

diff --git a/49-stlinkv2.rules b/49-stlinkv2.rules
new file mode 100644 (file)
index 0000000..a11215c
--- /dev/null
@@ -0,0 +1,12 @@
+# stm32 discovery boards, with onboard st/linkv2
+# ie, STM32L, STM32F4.
+# STM32VL has st/linkv1, which is quite different
+
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \
+    MODE:="0666", \
+    SYMLINK+="stlinkv2_%n"
+
+# If you share your linux system with other users, or just don't like the
+# idea of write permission for everybody, you can replace MODE:="0666" with
+# OWNER:="yourusername" to create the device owned by you, or with
+# GROUP:="somegroupname" and mange access using standard unix groups.
diff --git a/49-stm32l-discovery.rules b/49-stm32l-discovery.rules
deleted file mode 100644 (file)
index 1f3ce77..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-# stm32l discovery board, with onboard st/linkv2
-#
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \
-    MODE:="0666", \
-    SYMLINK+="stm32l_stlink%n"
-#
-# If you share your linux system with other users, or just don't like the
-# idea of write permission for everybody, you can replace MODE:="0666" with
-# OWNER:="yourusername" to create the device owned by you, or with
-# GROUP:="somegroupname" and mange access using standard unix groups.