On 12 September 2011 13:21, <[email protected]> wrote:
> Hi,
>
> I have a programmable board connected via USB that is only writeable by
> root, so I have to run every make command as root, which is not good.
> This is for a class, and the lecturer has given us some udev rules to
> use, but they don't work on Debian stable. I new enough versions of the
> development tools, so that's not the problem.
>
> Here are the instructions from the lecturer...
>
>
> set up the USB permissions by creating a file called
> /etc/udev/rules.d/52-**bootloadDFU.rules containing:
>
> ATTR{idVendor}=="03eb", ATTR{idProduct}=="2fee", MODE="666"
> ATTR{idVendor}=="03eb", ATTR{idProduct}=="2ff0", MODE="666"
>
> To activate this new rule, reboot or use
>
> sudo udevadm control --reload-rules
>
> Note, with older versions of udev (prior to Ubuntu 10.04 Lucid Lynx) you
> need the following syntax:
>
> SYSFS{idVendor}=="03eb", SYSFS{idProduct}=="2fee", MODE="666"
> SYSFS{idVendor}=="03eb", SYSFS{idProduct}=="2ff0", MODE="666"
>
>
> I tried both syntaxes and even rebooted when neither worked after
> running udevadm.
>
> I'm going crazy here. I can just run make commands as sudo, but that's
> rather unsafe, especially when it comes to writing our own make files.
> Anyone know what on Earth the problem could be? I've attached the (I
> think) the relevant part of my syslog. It does not appear to even be
> trying to load the new rule file.
>
> Ripping hair out,
> Aidan
>
> _______________________________________________
> Linux-users mailing list
> [email protected]
> http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
>
>
I have a USB I2C adapter that also needs a udev rule to make it read/write
by everyone. It has the following rules:
# Beagle Protocol Analyzers
ACTION=="add", SUBSYSTEM=="usb_device", SYSFS{idVendor}=="1679",
SYSFS{idProduct}=="2001", MODE="0666"
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1679",
ATTR{idProduct}=="2001", MODE="0666"
This comes from the manufacturer (TotalPhase), I just put the file in the
right place and did not try to understand it. This works for Ubuntu 10.04
and 11.04.
To get these to work, you need to reload the rules (as described
previously), and perhaps unplug and replug the module.
Also note that the name of the file is important: it must end with '.rules'
Hope this helps
Stephen Irons
--
Stephen Irons
Senior Designer
Tait Radio Communications
175 Roydvale Ave, Christchurch, New Zealand
DDI: +64 - 3 - 357-0713
www.taitworld.com
[email protected]
TAIT: THE RIGHT FIT
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users