On Mon, 2011-09-12 at 13:21 +1200, [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
When you plug the device in, does
lscpi -n
show a device entry for either 03eb:2fee or 03eb:2ff0
is the first thing I'd try if the device is found. If not, try a
different cable / different port ( some boxes have a few only usb1
ports ) / direct connection ( not through any kind of external hub ) /
known working device.
Should the MODE be "0666" ??
SUBSYSTEMS=="usb", ATTR{idVendor}=="03eb", ATTR{idProduct}=="2fee",
MODE="0666"
SUBSYSTEMS=="usb", ATTR{idVendor}=="03eb", ATTR{idProduct}=="2ff0",
MODE="0666"
I might also set the GROUP= and OWNER= options and limit the device
access?
hth
Steve
--
Steve Holdoway BSc(Hons) MNZCS <[email protected]>
http://www.greengecko.co.nz
MSN: [email protected]
Skype: sholdowa
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Linux-users mailing list [email protected] http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
