Building the linux driver, Creating linux tty device names – Multi-Tech Systems INTELLIGENT SERIAL INTERFACE ISI9234PCIE User Manual

Page 14

Advertising
background image

ISI Quick Start Guide

14

Building the Linux Driver

1 . Create a temporary directory: "mkdir

/mtsi_upci"

2.

Copy the tar file to the temporary directory "cp
ISI_U_PCI_LINUX_V_1 01 .tar.gz /mtsi_upci"

3.

Go to the temporary directory "cd
/mtsi_upci"

4.

Untar the file, "tarxvfzISI_U_PCI_LINUX_V_1 01 .tar.gz". This command will
unzip the source files to the "mtsi_upci_driver" directory.

5.

Switch to the newly created directory "cd
mtsi_upci_driver"

6.

Run the "make" command. The files "mtsi_upci.o" and "resetport" will be created.

7.

Run the "make install" script. The script will create the driver module and tty
devices, and modify the rc files in order to load the driver automatically on system
reboot. Successful compilation and loading of the module is displayed on the
screen. Specifically, when the script has finished running successfully, it will
display the message "MultiTech ISIPCIE driver loaded successfully YY" The
script will also create the "ttyMUxy" ports and list the ports it has created. If this
message and a list of ports do not appear, watch for error messages.

Creating Linux TTY Device Names

1. This driver retains the standard serial device properties: dial-in port files (named

in the form "ttyMUxy"), and call-out port files (named in the form "cumxy"). File
names of these two special types become associated with each serial port.
The first file type is for the dial-in port and has a name of the form "ttyMUxy"
where the "x" denotes the card number and the final "y" denotes the port
number on that card. The second file type is for the call-out port and has a
name of the form "cumxy" where, again, the "x" denotes the card number and the
"y" denotes the port number on that card.

2. Consider the situation of installing two 8-port serial cards in the server computer.

In that case, the driver would create TTY devices "ttyMUla" to "ttyMUlh" and
devices "cumla" to "cumlh" under the "/dev" directory for card 1. Similarly,
devices ttyMU2a to ttyMU2h and devices "cum2a" to "cum2h" would be created
for card 2. (If a 4-port card were installed as card 1, the driver would create TTY
devices "ttyMUla" to "ttyMUld.")

Advertising
This manual is related to the following products: