Hi all,
I am using Amontec JTAG-Key 2 probe and openocd.udev rules that are in
the current git repo are not working for me once placed into
/etc/udev/rules.d, notably because these two lines :
SUBSYSTEM!="usb", GOTO="openocd_rules_end"
ENV{DEVTYPE}!="usb_device", GOTO="openocd_rules_end"

Commenting out these two lines, it works.

Looking at these posts :
http://forum.sparkfun.com/viewtopic.php?t=5676
https://www.millennium.berkeley.edu/pipermail/tinyos-2-contrib-commits/2008-May/001510.html

I tried changing SUBSYSTEM!="usb" to SUBSYSTEM!="usb_device"  (
ENV{DEVTYPE} line still commented out ), and this worked.

Can somebody explain why for Amontec probe udev SUBSYSTEM is
"usb_device" and not "usb", and why  udevinfo gives wrong information
that SUBSYSTEM is "usb" ?

~# udevinfo -a -p /sys/bus/usb/devices/8-3.4/
looking at device '/devices/pci0000:00/0000:00:1d.7/usb8/8-3/8-3.4':
   KERNEL=="8-3.4"
   SUBSYSTEM=="usb"
   DRIVER=="usb"
   ATTR{configuration}==""
   ATTR{bNumInterfaces}==" 2"
   ATTR{bConfigurationValue}=="1"
   ATTR{bmAttributes}=="80"
   ATTR{bMaxPower}=="100mA"
   ATTR{urbnum}=="12"
   ATTR{idVendor}=="0403"
   ATTR{idProduct}=="cff8"
   ATTR{bcdDevice}=="0700"
   ATTR{bDeviceClass}=="00"
   ATTR{bDeviceSubClass}=="00"
   ATTR{bDeviceProtocol}=="00"
   ATTR{bNumConfigurations}=="1"
   ATTR{bMaxPacketSize0}=="64"
   ATTR{speed}=="480"
   ATTR{busnum}=="8"
   ATTR{devnum}=="107"
   ATTR{version}==" 2.00"
   ATTR{maxchild}=="0"
   ATTR{quirks}=="0x0"
   ATTR{authorized}=="1"
   ATTR{manufacturer}=="Amontec"
   ATTR{product}=="Amontec JTAGkey-2"
   ATTR{serial}=="53SFKCPU"


Also, can anybody explain ENV{DEVTYPE}!="usb_device",
GOTO="openocd_rules_end" line, and what value ENV{DEVTYPE} can and
should take ( "usb_device" obviously does not work ).


BR,
Drasko
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to