Debian Codegraph @

readme

raw
1 =============================================================================
2
3 Advantech PCIe Multiport Device Driver Installation Guide for Linux
4 Copyright (C) 2020, Advantech.
5 =============================================================================
6
7 Changes log:
8 Version 5.0.7.0 <2020-12-30>
9 -change for make test command and some build errors on new kernels.
10
11 Version 5.0.6.1 <2019-10-16>
12 -support for make test command
13
14 Version 5.0.6.0 <2019-10-16>
15 -support for CentOS7.6
16
17 Version 5.0.5.1 <2019-07-22>
18 -fix compile error in kernel 4.15 and later version;
19
20 Version 5.0.4.0 <2018-03-21>
21 - Add XON ANY support;
22 - Support termios2 for non-standard baud rate;
23 - Fix RTS, DTR incorrect issue;
24 - Support new products;
25
26 Version 5.0.3.0 <2017-03-06>
27 - Add fixed number;
28 - Add a parameter to enable/disable internal loopback;
29 - Add non-standard baud rates support;
30 - Improve Software flow control and Hardware flow control behavior;
31 - Support kernel 2.6.9;
32
33 Version 5.0.2.0 <2016-08-29>
34 - Support kernel up to 4.2.x;
35 - Fix data error issue on Fedora 21/23;
36
37 Version 5.0.1.0 <2015-08-28>
38 - Original version
39
40
41 -----------------------------------------------------------------------------
42 1. Introduction
43
44 The PCI/PCIe Multiport serial driver, supports the following multiport
45 boards.
46
47 - PCIE-1602 PCIe Multiport (2 Channels) Boards
48 - PCIE-1604 PCIe Multiport (2 Channels) Boards
49 - PCIE-1610 PCIe Multiport (4 Channels) Boards
50 - PCIE-1612 PCIe Multiport (4 Channels) Boards
51 - PCIE-1620 PCIe Multiport (8 Channels) Boards
52 - PCIE-1622 PCIe Multiport (8 Channels) Boards
53 - PCM-2602C PCM Multiport (2 Channels) Boards
54 - PCM-2604C PCM Multiport (2 Channels) Boards
55 - PCM-2610B PCM Multiport (4 Channels) Boards
56 - PCM-2612B PCM Multiport (4 Channels) Boards
57 - PCM-3612I PCM Multiport (4 Channels) Boards
58 - PCI-1602 PCI Multiport (2 Channels) Boards
59 - PCI-1604 PCI Multiport (2 Channels) Boards
60 - PCI-1610 PCI Multiport (4 Channels) Boards
61 - PCI-1612 PCI Multiport (4 Channels) Boards
62 - PCI-1620 PCI Multiport (8 Channels) Boards
63 - PCI-1622 PCI Multiport (8 Channels) Boards
64
65 This driver and installation procedure have been tested on various
66 kernel versions.
67
68 All the drivers and utilities are published in form of source code under
69 GNU General Public License in this version. Please refer to GNU General
70 Public License announcement in each source code file for more detail.
71
72 This version of driver can be installed as Loadable Module (Module driver)
73 or built-in into kernel (Static driver). You may refer to following
74 installation procedure for suitable one. Before you install the driver,
75 please refer to hardware installation procedure in the User's Manual.
76
77 We assume the user should be familiar with following documents.
78 - Serial-HOWTO
79 - Kernel-HOWTO
80
81 -----------------------------------------------------------------------------
82 2. System Requirement
83
84 - Hardware platform: Intel x86
85 - Maximum of 256 ports can be installed in any PCI/PCIe board combination
86 - This driver has been tested on various kernel versions.
87
88 It is tested in follow systems:
89 ------------------------------------------ -------------- ----------------
90 | Distribution | Kernel version |
91 ------------------------------------------ -------------------------------
92 | Ubuntu 12.04/14.04/15.10(Desktop)/18.04 | 3.2/3.13/4.2/4.15 |
93 ------------------------------------------ -------------------------------
94 | Redhat Enterprise Linux Server 7.2 | 3.10.0 |
95 ------------------------------------------ -------------------------------
96 | OpenSUSE 15.0 | 4.12.14 |
97 ------------------------------------------ -------------------------------
98 | Debian 9.5 | 4.9.0 |
99 ------------------------------------------ -------------------------------
100 | CentOS 7.6 | 3.10.0 |
101 ------------------------------------------ -------------------------------
102
103 It is strongly recommended that the user do a complete install of all
104 components to ensure that this driver works correctly.
105
106 -----------------------------------------------------------------------------
107 3. Installation
108
109 3.1. Login as 'root' before executing the following instructions.
110
111 3.2. Uncompress the driver
112 # tar zxvf adv_17V35X-VerX.tar.gz
113
114 3.3. Build the driver
115 # cd adv_17V35X
116 # make
117 Note:
118 To compile the source code, you must install kernel development header
119 file package,"gcc" and "make" command.
120
121 3.4. Install the driver module
122 # make install
123 or
124 #insmod ./adv17v35x.ko
125 to see whether ttyAPn or ttyBnPn ( n = 1,2,3...) exist in /dev/ folder.
126
127 3.5. Uninstall the driver module and clean
128 # make uninstall
129 # make clean
130 or
131 #rmmod adv17v35x
132
133 3.6 Verify driver installation
134 You may run command "dmesg" to check the latest status log reported by
135 this driver whenever it's activated.
136
137 This module registers Advantech ports as "/dev/ttyAP0", "/dev/ttyAP1", etc.
138 Use "minicom" or your custom serial application to test the ports
139
140 Attention! The name of PCIE-16XX ports are the same as Old cards which use
141 Oxford chip, so don't use them at the same time.
142
143 3.7. Test the serial port mode.
144 #make test
145 use make test command to get the serial mode of the ports.
146 ---------------------------------------------------------------------------------------------------------------
147 4. Driver files and device naming convention
148
149 The driver file may be obtained via email. The first step, anyway, is to
150 copy driver file "adv_17V35X-VerX" into specified
151 directory. e.g. /advantech. The execute commands as below.
152
153 # cd /advantech/adv_17V35X-VerX
154
155 You may find the driver source code in /advantech/adv_17V35X-VerX.
156
157 Driver creates traditional serial device names, "/dev/ttyBxxPxx" onwards,xx is a number.For example,B10 means Board ID is 10,P0 means port0.
158
159 Device naming when multiple boards are installed
160 -----------------------------------------------
161 assuming 2 PCIE-1602 boards, 1 PCIE-1610 board and
162 1 PCIE-1622 board.
163
164 Board Num. Port Name
165 1st board (1602) ttyAP0 - ttyAP1
166 2nd board (1602) ttyAP2 - ttyAP3
167 3rd board (1610) ttyAP4 - ttyAP7
168 4th board (1622) ttyAP8 - ttyAP15
169
170 Note. We don't know which card be found first, maybe 1602, or 1610, or
171 1622. This depends on the sequence that operating system scanning.
172 -----------------------------------------------------------------------------
173 5. How to use Fixed Number
174
175 From the latest version (v5.0.3.0) on, we'll add the new feature
176 callled Fixed Number.
177
178 This function enables the user to alternate the PCI/PCIE card slot without
179 changing the name of the device node generated by each port.
180
181 5.1 Using the old naming "ttyAPn"
182 You'll find a switch called "Board ID" on the card. Adjust the switch
183 to "ON".
184
185 5.2 Using Fixed Number "ttyBnPn"
186 Naming: "ttyB" + Board ID + "P" + Index, such as "ttyB03P0", "ttyB15P1", etc.
187 You'll find a switch called "Board ID" on the card. Adjust the switch to
188 the opposite side of "ON", i.e. the non-zero value. For example, if you
189 want to generate a device node for "ttyB03Pn", you need to set "Board ID"
190 to 0x3.
191 -----------------------------------------------------------------------------
192 6. Troubleshooting
193
194 The boot time error messages and solutions are stated as clearly as
195 possible. If all the possible solutions fail, please contact our technical
196 support team to get more help.