ftdi_eeprom: Fix flashing FT245R
[libftdi] / README.build
CommitLineData
648d71fe
XC
1Here is a short tutorial on how to build libftdi git under
2Ubuntu 12.10, But it is similar on other Linux distros.
3
41) Install the build tools
5sudo apt-get install build-essential
6sudo apt-get install git-core
7sudo apt-get install cmake
8sudo apt-get install doxygen (for building documentations)
9
102) Install dependencies
11sudo apt-get install libusb-1.0-devel
12(if the system comes with older version like 1.0.8 or
13earlier, it is recommended you build libusbx-1.0.14 or later).
14
15sudo apt-get install libconfuse-dev (for ftdi-eeprom)
16sudo apt-get install swig python-dev (for python bindings)
17sudo apt-get install libboost-all-dev (for C++ binding and unit test)
18
193) Clone the git repository
20mkdir libftdi
21cd libftdi
22git clone git://developer.intra2net.com/libftdi
23
24If you are building the release tar ball, just extract the source
25tar ball.
26
274) Build the git source and install
28cd libftdi
29mkdir build
30cd build
31cmake -DCMAKE_INSTALL_PREFIX="/usr" ../
32make
33sudo make install
34
355) carry out some tests
36cd examples
37
38mcuee@Ubuntu1210VM:~/Desktop/build/libftdi/libftdi/build/examples$
39./find_all_pp -v 0x0403 -p 0x6001
40Found devices ( VID: 0x403, PID: 0x6001 )
41------------------------------------------------
42FTDI (0x8730800): ftdi, usb serial converter, ftDEH51S (Open OK)
43FTDI (0x8730918): FTDI, FT232R USB UART, A8007Ub5 (Open OK)
44
45mcuee@Ubuntu1210VM:~/Desktop/build/libftdi/libftdi/build/examples$ ./eeprom
462 FTDI devices found: Only Readout on EEPROM done. Use
47VID/PID/desc/serial to select device
48Decoded values of device 1:
49Chip type 1 ftdi_eeprom_size: 128
500x000: 00 00 03 04 01 60 00 04 a0 16 08 00 10 01 94 0a .....`.. ........
510x010: 9e 2a c8 12 0a 03 66 00 74 00 64 00 69 00 2a 03 .*....f. t.d.i.*.
520x020: 75 00 73 00 62 00 20 00 73 00 65 00 72 00 69 00 u.s.b. . s.e.r.i.
530x030: 61 00 6c 00 20 00 63 00 6f 00 6e 00 76 00 65 00 a.l. .c. o.n.v.e.
540x040: 72 00 74 00 65 00 72 00 12 03 66 00 74 00 44 00 r.t.e.r. ..f.t.D.
550x050: 45 00 48 00 35 00 31 00 53 00 02 03 00 00 00 00 E.H.5.1. S.......
560x060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
570x070: 00 00 00 00 00 00 00 00 00 00 00 00 01 00 16 02 ........ ........
58VID: 0x0403
59PID: 0x6001
60Release: 0x0400
61Bus Powered: 44 mA USB Remote Wake Up
62Manufacturer: ftdi
63Product: usb serial converter
64Serial: ftDEH51S
65Checksum : 0216
66Enable Remote Wake Up
67PNP: 1
68Decoded values of device 2:
69Chip type 3 ftdi_eeprom_size: 128
700x000: 00 40 03 04 01 60 00 00 a0 2d 08 00 00 00 98 0a .@...`.. .-......
710x010: a2 20 c2 12 23 10 05 00 0a 03 46 00 54 00 44 00 . ..#... ..F.T.D.
720x020: 49 00 20 03 46 00 54 00 32 00 33 00 32 00 52 00 I. .F.T. 2.3.2.R.
730x030: 20 00 55 00 53 00 42 00 20 00 55 00 41 00 52 00 .U.S.B. .U.A.R.
740x040: 54 00 12 03 41 00 38 00 30 00 30 00 37 00 55 00 T...A.8. 0.0.7.U.
750x050: 62 00 35 00 c9 bf 1c 80 00 00 00 00 00 00 00 00 b.5..... ........
760x060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
770x070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0f 23 ........ .......#
780x080: 2c 04 d3 fb 00 00 c9 bf 1c 80 42 00 00 00 00 00 ,....... ..B.....
790x090: 00 00 00 00 00 00 00 00 38 41 32 52 4a 33 47 4f ........ 8A2RJ3GO
80VID: 0x0403
81PID: 0x6001
82Release: 0x0000
83Bus Powered: 90 mA USB Remote Wake Up
84Manufacturer: FTDI
85Product: FT232R USB UART
86Serial: A8007Ub5
87Checksum : 230f
88Internal EEPROM
89Enable Remote Wake Up
90PNP: 1
91Channel A has Mode UART VCP
92C0 Function: TXLED
93C1 Function: RXLED
94C2 Function: TXDEN
95C3 Function: PWREN
96C4 Function: SLEEP