On Sat, Jul 11, 2009 at 8:33 AM, Xiaofan Chen<xiaof...@gmail.com> wrote:
> I was using similar udev rules for some USB device (mostly PIC
> related) as the udev contrib directory.
>
> udev seems to be a changing target in Linux. Many support
> questions raided in libusb mailing list and pickit-devel mailing
> list are related in usb device permissions. For the PICkit 2
> programmer, I've written several blogs and most of them
> deal with udev under different Linux distros and even FreeBSD.
> http://mcuee.blogspot.com/search/label/PICKit
>
> Here is a Wiki entry we are using for the Piklab project.
> http://piklab.wiki.sourceforge.net/USB+Port+Problems
>
> It seems to me that the udev rules in the contrib directory
> may work for some Linux distros. It may not work for
> other distros. For example, OpenSuse and Arch Linux
> may need to use the following syntax.
>
> # IAR J-Link USB
> ATTR{idVendor}=="1366", ATTR{idProduct}=="0101", OWNER:="root",
> GROUP:="plugdev",MODE:="0660"
>
> Personally I think a wiki is the best for this kind of topics.
>

By the way, it you are using a later version of udev and you are the
only user of your PC, you can probably use a lazy rule (which I
am using for Ubuntu 9.04, Fedora 10, Arch Linux but not OpenSuse 11.1).

You can modify the following file.
/lib/udev/rules.d/50-udev-default.rules

Change the line
# libusb device nodes
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",
NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0664"
to
# libusb device nodes
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",
NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666"

This should work for many libusb device like J-Link and R-Link.

-- 
Xiaofan http://mcuee.blogspot.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to