I recently installed JLink_Linux_V614f_x86_64.deb in Debian Debian GNU/Linux 8.7 (jessie), and discovered that the udev rules never take effect. After some tweaking I have found the following:
After making those changes my devices get the correct permissions. I have attached a version of the file which works for me: 99-jlink.rules.txt.
If anyone is testing this at home, a good way of verifying your changes is to run udevadm test --action=add $(udevadm info -q path -n /dev/bus/usb/001/010), where /dev/bus/usb/001/010 is the device name of your J-Link. As soon as the output starts mentioning MODE 0666 you can reload your udev rules using udevadm control --reload.
- The file has quite a few Windows newlines in it, which makes those rules be ignored
- A lot of rules have e.g. ATTR{idProduct}=="0x1001", while the correct format is ATTR{idProduct}=="1001", without the "0x"
- SUBSYSTEM!="usb_device" should probably be changed to either SUBSYSTEM!="usb" or DEVTYPE!="usb_device"
After making those changes my devices get the correct permissions. I have attached a version of the file which works for me: 99-jlink.rules.txt.
If anyone is testing this at home, a good way of verifying your changes is to run udevadm test --action=add $(udevadm info -q path -n /dev/bus/usb/001/010), where /dev/bus/usb/001/010 is the device name of your J-Link. As soon as the output starts mentioning MODE 0666 you can reload your udev rules using udevadm control --reload.