FTDI Drivers Installation Guide For Linux
FTDI Drivers Installation Guide For Linux
AN_220
Version 1.1
The purpose of this application note is to provide users of FTDI chips with a simple procedure
to install FTDI drivers for FTDI devices used with Linux.
Use of FTDI devices in life support and/or safety applications is entirely at the user’s risk, and the
user agrees to defend, indemnify and hold FTDI harmless from any and all damages, claims, suits
or expense resulting from such use.
Table of Contents
1 Introduction ............................................................ 2
1.1 Overview.......................................................................... 2
1
P roduc t Page
D oc ument Feedback C opyright © Future T echnology D evices I nternational L imited
Application Note
AN_220 FTDI Drivers Installation Guide for Linux
V ers ion 1 .1
1 Introduction
The purpose of this application note is to provide users of FTDI chips with a simple procedure to
install FTDI drivers for FTDI devices using Linux.
1.1 Overview
FTDI has two types of drivers for all supported operating systems. These are the virtual COM port
driver (VCP) and the D2XX API drive r. Since the FTDI VCP driver is built into the Linux kernel, this
document will focus on the installation of the D2XX driver.
To ensure all FTDI devices have VCP driver support, FTDI recommends installing the latest kernel
release on the Linux system. In Linux, the VCP drivers will appear as /dev/ttyUSBx.
In Linux, the VCP driver and D2XX driver are incompatible with each other. When a FTDI device is
plugged in, the VCP driver must be unloaded before a D2XX application can be run. Use the
remove module (rmmod) command to do this:
When the FTDI device is power cycled or reset the VCP driver will be reloaded. The rmmod process
must be repeated each time this occurs. It is possible to write a simple script that unloads the VCP
driver before running the D2XX application.
2
P roduc t Page
D oc ument Feedback C opyright © Future T echnology D evices I nternational L imited
Application Note
AN_220 FTDI Drivers Installation Guide for Linux
V ers ion 1 .1
As an alternative, you can use the Linux gunzip and tar –xvf commands to extract the driver files.
Open a Linux terminal window and enter
Once the files have been extracted, change to the required architecture subdirectory (i386 for 32
bit systems, x86_64 for 64 bit systems, & arm926 for ARM v5 systems such as Raspberry Pi).
cd /usr/local/lib <ret>
sudo ln –s libftd2xx.so.1.1.12 libftd2xx.so <ret>
sudo chmod 0755 libftd2xx.so.1.1.12 <ret>
3
P roduc t Page
D oc ument Feedback C opyright © Future T echnology D evices I nternational L imited
Application Note
AN_220 FTDI Drivers Installation Guide for Linux
V ers ion 1 .1
cd /examples <ret>
make –B <ret>
cd /examples/eeprom/read <ret>
The read application will list the configuration descriptors of the attached FTDI device as follows:
opening port 0
ftHandle0 = 0x8e89220
Signature1 = 0
Signature2 = -1
Version = 2
VendorId = 0x0403
ProductId = 0x6001
Manufacturer = FTDI
ManufacturerId = FT
Description = USB-Serial Converter
SerialNumber = FTG5FL9U
4
P roduc t Page
D oc ument Feedback C opyright © Future T echnology D evices I nternational L imited
Application Note
AN_220 FTDI Drivers Installation Guide for Linux
V ers ion 1 .1
cd /release/examples/static <ret>
rm lib* <ret> (removes any previous library built for another target)
cp /usr/local/lib/libftd2xx.a . <ret>
make –B <ret>
sudo ./static_link
This application will write and read 16 bytes to port 0 of any FTDI USB ->UART device with a
loopback connector attached:
5
P roduc t Page
D oc ument Feedback C opyright © Future T echnology D evices I nternational L imited
Application Note
AN_220 FTDI Drivers Installation Guide for Linux
V ers ion 1 .1
4 Contact Information
Future Technology Devices International Limited Future Technology Devices International Limited
Unit 1, 2 Seaward Place, Centurion Business Park (USA)
Glasgow G41 1HH 7130 SW Fir Loop
United Kingdom Tigard, OR 97223-8160
Tel: +44 (0) 141 429 2777 USA
Fax: +44 (0) 141 429 2758 Tel: +1 (503) 547 0988
Fax: +1 (503) 547 0987
Future Technology Devices International Limited Future Technology Devices International Limited
(Taiwan) (C hina)
2F, No. 516, Sec. 1, NeiHu Road Room 1103, No. 666 West Huaihai Road,
Taipei 114 Shanghai, 200052
Taiwan , R.O.C. C hina
Tel: +886 (0) 2 8791 3570 Tel: +86 21 62351596
Fax: +886 (0) 2 8791 3576 Fax: +86 21 62351595
Web Site
http://ftdichip.com
Sys tem and equipment manufacturers and des igners are responsible to ens ure that their s ystems, and any Future T ec hnology
D evic es I nternational L td (F T DI) devices inc orporated in their s ystems, meet all applicable s afety, regulatory and s ystem - level
performanc e requirements. A ll application-related information in this document (including application des c riptions , s ugges ted
FT D I devic es and other materia ls ) is provided for referenc e only. While FT D I has taken c are to as s ure it is ac c urate, this
information is s ubject to c ustomer c onfirmation, and FT D I dis c laims all liability for s ys tem des igns and for any applic ations
as s istance provided by FTD I. U se of F T DI devices in life s upport and/or s afety applications is entirely at the us er’s ris k, and the
us er agrees to defend, indemnify and hold harmles s FTDI from any and all damages , c laims , s uits or expens e res ulting from
s uc h us e. T his doc ument is s ubject to c hange without notic e. N o freedom to us e patents or other intellectual property rights is
implied by the public ation of this doc ument. N either the whole nor any part of the information c ontained in, or the produc t
des c ribed in this doc ument, may be adapted or reproduc ed in any material or electronic form without the prior written c ons ent
of the c opyright holder. Future T ec hnology D evic es I nternational L td, U nit 1 , 2 Seaward P lac e, C enturion Bus ines s P ark,
G las gow G 4 1 1 H H , U nited Kingdom. Sc otland Regis tered C ompany N umber: SC 1 3 6 6 4 0
6
P roduc t Page
D oc ument Feedback C opyright © Future T echnology D evices I nternational L imited
Application Note
AN_220 FTDI Drivers Installation Guide for Linux
V ers ion 1 .1
Appendix A – References
Document References
Refer to the FTDI D2XX Programmers Guide for more information on the D2XX API.
D2XX Programmers Guide
Shared Object File (.so) Linux version of a Windows Dynamically Linked Library (dll)
7
P roduc t Page
D oc ument Feedback C opyright © Future T echnology D evices I nternational L imited
Application Note
AN_220 FTDI Drivers Installation Guide for Linux
V ers ion 1 .1
List of Figures
8
P roduc t Page
D oc ument Feedback C opyright © Future T echnology D evices I nternational L imited
Application Note
AN_220 FTDI Drivers Installation Guide for Linux
V ers ion 1 .1
9
P roduc t Page
D oc ument Feedback C opyright © Future T echnology D evices I nternational L imited