The method required to enable the driver, however, depends on the distribution you are using and the kernel version.
Which distributions support USBFS?Known to provide USBFS support:
- Ubuntu 9.04 or older
- Ubuntu 9.10 with kernel 2.6.31-19-server
- CentOS 4.8
- CentOS 5.4
- Generally, any distribution with kernel version < 2.6.32
- Ubuntu 10.04
- Generally, any distribution with kernel version >= 2.6.32
Code: Select all
mount -t usbfs none /proc/bus/usb -o devmode=0666
Code: Select all
none /proc/bus/usb usbfs defaults,devmode=0666 0 0
Once the /etc/fstab addition is made, a simple command should work to mount the usbfs filesystem:
Code: Select all
mount /proc/bus/usb
Method 2 : No USBFS supportTo ensure that the permissions are correct on the device when plugging in either an FTDI/XTAG or XTAG-2 debug adapter, you need to configure `udev' to recognise the device.
Create a file "/etc/udev/rules.d/99-xmos.rules" with the following contents:
Code: Select all
SUBSYSTEM!="usb|usb_device", GOTO="xmos_rules_end"ACTION!="add", GOTO="xmos_rules_end"# 20b1:f7d1 for xmos xtag2ATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d1", MODE="0666", SYMLINK+="xtag2-%n"# 20b1:f7d3 for xmos startkitATTRS{idVendor}=="20b1", ATTRS{idProduct}=="f7d3", MODE="0666", SYMLINK+="startkit-%n"# 0403:6010 for XC-1 with FTDI dual-uart chipATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0666", SYMLINK+="xc1-%n"LABEL="xmos_rules_end"
Now tell udev to reload to ensure the new rules file is added:
Code: Select all
service udev reload
FTDI/XTAG additional notesThe FTDI library requires that the USB device files are available from /proc/bus/usb and does not support /dev/bus/usb as a location for the files.
However, if your distribution does not support USBFS (for Method 1 above) but does have a /proc/bus/usb empty directory, you can use the following bind mount command as a workaround:
Code: Select all
mount --bind /dev/bus/usb /proc/bus/usb