# Hot-plug support for mote hardware on Linux
# Syntax varies based on udev version:
# - For RHEL5 (udev 095), use SUBSYSTEM and SYSFS
# - For Fedora (udev 120), use SUBSYSTEMS and ATTRS
# Convert with:
# sed -e 's...@\bsysfs{\b@att...@g' -e 's...@\b\(SUBSYSTEM\)=...@\1s=@g' <
udev-mote.rules > udev-mote-f9.rules
# To see device attributes:
# udevadm info -a -p `udevadm info -q path -n /dev/mote/0`
# install -o root -g root -m 444 udev-mote.rules
/etc/udev/rules.d/60-mote.rules
# install -o root -g root -m 444 udev-mote-f9.rules
/etc/udev/rules.d/60-mote.rules
# Upon addition of a USB device, try the rules; for other events, skip this
# module
ACTION=="add", SUBSYSTEM=="usb", GOTO="mote_rules"
GOTO="mote_rules_end"
# Start rules to identify Mote hardware
LABEL="mote_rules"
# 0403:6001 = "Future Technology Devices International FT232 USB-Serial UART
IC"
# Used by MoteIV Mote Sky and other devices
SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6001", SYMLINK+="mote/%n",
MODE="0666"
# 0451:f430 = "Texas Instruments MSP-FET430UIF JTAG Tool"
SYSFS{idVendor}=="0451", SYSFS{idProduct}=="f430", SYMLINK+="tifet/%n",
MODE="0666"
# 1d6b:0002 = "Prolific PL2303 USB to serial adapter"
SYSFS{idVendor}=="1d6b", SYSFS{idProduct}=="0002", SYMLINK+="serial/%n",
MODE="0666"
# No more devices
LABEL="mote_rules_end"
On Wed, Mar 24, 2010 at 4:08 PM, <[email protected]> wrote:
> John Porubek writes:
> > However, I ran into a problem that may affect other users as well. As
> > of kernel version 2.6.31-20, support for usbfs has been removed. Thus
> > the instructions you give on your download page will no longer work. I
> > discovered this the hard way when I went to perform the mount and was
> > met with the following message: "mount: unknown filesystem type
> > 'usbfs'". My workaround for now is to boot into version 2.6.31-19. Do
> > you have a better solution that will work going forward with newer
> > kernels?
>
> If you reconfigure your kernel with CONFIG_USB_DEVICEFS=y, you can bring
> back usbfs and remount it with:
>
> umount /proc/bus/usb
> mount -t usbfs none /proc/bus/usb devuid=1000,devmode=0644
>
> However, usbfs has been marked as deprecated. From the documentation
> from the kernel configuration option:
>
> Modern Linux systems do not use this.
>
> Usbfs entries are files and not character devices; usbfs can't
> handle Access Control Lists (ACL) which are the default way to
> grant access to USB devices for untrusted users of a desktop
> system.
>
> The usbfs functionality is replaced by real device-nodes managed by
> udev. These nodes lived in /dev/bus/usb and are used by libusb.
>
> Presumably you could alter a udev rule to give normal users access to
> the files in /dev/bus/usb... unfortunately I don't know enough about
> udev to suggest anything at this point.
>
> - Daniel
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>