Public bug reported:

Binary package hint: udev

Some information about my system:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

The version of udev installed:
$ apt-cache policy udev
udev:
  Installed: 113-0ubuntu17

Problem description:

I have an usb to rs-232 convertor with an FTDI chip (ftdi_sio kernel
module). With the standard permissions set by udev, this device is not
working correctly as a normal user.

For example, if I am trying to program a micaZ sensor node with uisp:

$ make micaz install,17 mib510,/dev/ttyUSB0
<snip>
    installing micaz binary using mib510
uisp -dprog=mib510 -dserial=/dev/ttyUSB0 --wr_fuse_h=0xd9 -dpart=ATmega128  
--wr_fuse_e=ff   --erase --upload if=build/micaz/main.srec.out-17 --verify
Firmware Version: .
Failed to enter programming mode.
make: *** [program] Error 2

When I issue the same command as root, everything works as expected:
$ sudo /home/wouterh/local/tos2/bin/uisp -dprog=mib510 -dserial=/dev/ttyUSB0 
--wr_fuse_h=0xd9 -dpart=ATmega128  --wr_fuse_e=ff   --erase --upload 
if=build/micaz/main.srec.out-17 --verify
Firmware Version: 2.1
Atmel AVR ATmega128 is found.
Uploading: flash
Verifying: flash

Fuse High Byte set to 0xd9

Fuse Extended Byte set to 0xff

Solution:

I have changed the following line in /etc/udev/rules.d/40-permissions.rules:
SUBSYSTEM=="usb_device",                MODE="0664"
to
SUBSYSTEM=="usb_device",                GROUP="plugdev", MODE="0664"

and restarted udev, and now everything is working as expected:
$ /home/wouterh/local/tos2/bin/uisp -dprog=mib510 -dserial=/dev/ttyUSB0 
--wr_fuse_h=0xd9 -dpart=ATmega128  --wr_fuse_e=ff   --erase --upload 
if=build/micaz/main.srec.out-17 --verify
Firmware Version: 2.1
Atmel AVR ATmega128 is found.
Uploading: flash
Verifying: flash

Fuse High Byte set to 0xd9

Fuse Extended Byte set to 0xff

** Affects: udev (Ubuntu)
     Importance: Undecided
         Status: New

-- 
ftdi_sio device does not work correctly as a normal user
https://bugs.launchpad.net/bugs/198757
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to