On Thu, Mar 25, 2010 at 7:12 AM, Peter Bigot <[email protected]> wrote:
> # 0403:6001 = "Future Technology Devices International FT232 USB-Serial UART
> IC"
> # Used by MoteIV Mote Sky and other devices
> SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6001", SYMLINK+="mote/%n",
> MODE="0666"
>
> # 0451:f430 = "Texas Instruments MSP-FET430UIF JTAG Tool"
> SYSFS{idVendor}=="0451", SYSFS{idProduct}=="f430", SYMLINK+="tifet/%n",
> MODE="0666"
>
> # 1d6b:0002 = "Prolific PL2303 USB to serial adapter"
> SYSFS{idVendor}=="1d6b", SYSFS{idProduct}=="0002", SYMLINK+="serial/%n",
> MODE="0666"
>
SYSFS is deprecated for newer udev versions. You should use something
like this (from OpenOCD).
# TI/Luminary Stellaris In-Circuit Debug Interface (ICDI) Board
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bcda", MODE="664", GROUP="plugdev"
So for TI's FTE430UIF, you can use
ATTRS{idVendor}=="0451", ATTRS{idProduct}=="f430", MODE="0666"
Or
ATTRS{idVendor}=="0451", ATTRS{idProduct}=="f430", MODE="0660", GROUP="plugdev"
And add your username to the plugdev group.
In many cases, just the above one-line will be good enough.
If you want to be a bit fancier, here is something from OpenOCD again.
ACTION!="add|change", GOTO="openocd_rules_end"
SUBSYSTEM!="usb", GOTO="openocd_rules_end"
ENV{DEVTYPE}!="usb_device", GOTO="openocd_rules_end"
...
# IAR J-Link USB
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0101", MODE="664", GROUP="plugdev"
...
# TI/Luminary Stellaris In-Circuit Debug Interface (ICDI) Board
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bcda", MODE="664", GROUP="plugdev"
...
LABEL="openocd_rules_end"
For more about udev, you can probably refer to the links here.
http://code.google.com/p/picusb/wiki/libusb_and_udev
--
Xiaofan http://mcuee.blogspot.com