On Mon, Sep 12, 2011 at 3:45 PM, Nick Rout <[email protected]> wrote:
> On Mon, Sep 12, 2011 at 1:57 PM, Eliot Blennerhassett
> <[email protected]> wrote:
>> On Mon, Sep 12, 2011 at 1:21 PM, <[email protected]> wrote:
>>> 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. to
>>
>> Surely only download code to the board?
>> Building should not require root in any case?
>>
>>> 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"
>>
>> Should be ATTRS I think.
>
> This document http://reactivated.net/writing_udev_rules.html would
> indicate it is ATTRS not ATTR.
>
actually man udev specifies both:
ATTR{filename}
Match sysfs attribute values of the event device. Trailing
whitespace in the attribute values is ignored, if the specified match
value does not contain trailing whitespace itself.
ATTRS{filename}
Search the devpath upwards for a device with matching sysfs
attribute values. If multiple ATTRS matches are specified, all of them
must match on the same device. Trailing whitespace in the attribute
values is ignored, if the specified match value does not contain
trailing whitespace itself.
Not that this helps my understanding any more, i am lost for sure.
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users