THE INFORMATION PROVIDED BY XVERVE TECHNOLOGIES INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL XVERVE TECHNOLOGIES INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
Revision |
Date |
Notes |
Author |
|
0.01 |
2011-08-01 |
Initial Release |
OS |
|
|
|
|
|
|
|
|
|
|
[]
This tutorial uses the Ubuntu 8.04 (Hardy Heron) distribution of Linux. As Linux distributions vary these instructions are a guide to installation and use and may require some investigation on other distributions.
Following tutorial assumes version 0.4.15 of libftd2xx is being used.
Unzip and untar the file given to a suitable directory
gunzip libftd2xx0.4.15.tar.gz
tar -xvf libftd2xx0.4.15.tar
As root user copy the following files to /usr/local/lib
sudo cp libftd2xx.so.0.4.15 /usr/local/lib
Change directory to /usr/local/lib
cd /usr/local/lib
Make symbolic links to these files using the following commands:
sudo ln -s libftd2xx.so.0.4.15 libftd2xx.so
sudo ln -s libftd2xx.so.0.4.15 libftd2xx.so.0
Change directory to /usr/lib
cd /usr/lib
Make symbolic links to these files using the following commands:
sudo ln -s /usr/local/lib/libftd2xx.so.0.4.15 libftd2xx.so
sudo ln -s /usr/local/lib/libftd2xx.so.0.4.15 libftd2xx.so.0
Activate usbfs for current session by issuing following command:
sudo mount –t usbfs usbfs /proc/bus/usb
To ensure the usbfs is enabled and active for subsequent log ins, edit /etc/init.d/mountdevsubfs.sh:
sudo gedit /etc/init.d/mountdevsubfs.sh
Scroll down to line 39 and find following lines:
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount --rbind /dev/bus/usb /proc/bus/usb
Uncomment (remove #) 4 lines of code:
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb
Save the file and exit the editor.
Reboot
To enable usbfs on other distributions following line may need to be added to /etc/fstab:
none /proc/bus/usb usbfs defaults,mode=0666 0 0 (use usbfs in 2.6 kernels)
and remount all in the fstab file
mount -a