
NPort 5000 Series User Manual
138
8.
Linux Real TTY Drivers
Basic Procedures
To map an NPort 5000 serial port to a Linux host’s tty port, follow these instructions:
1.
Set up the NPort 5000. After verifying that the IP configuration works and you can access the NPort
5000 (by using ping, telnet, etc.), configure the desired serial port on the NPort 5000 to Real COM
mode.
2.
Install the Linux Real tty driver files on the host
3.
Map the NPort serial port to the host’s tty port
Hardware Setup
Before proceeding with the software installation, make sure you have completed the hardware installation.
Note that the default IP address for the NPort 5000 is 192.168.127.254.
NOTE
After installing the hardware, you must configure the operating mode of the serial port on your NPort 5000
to Real COM mode.
Installing Linux Real TTY Driver Files
NOTE
The newest information, please refer to readme.txt on Linux Real TTY Driver
1.
Obtain the driver file from Moxa’s website, at
http://www.moxa.com
. You may find it in the
Resource
section under your product page.
2.
Log in to the console as a super user (root).
3.
Execute cd / to go to the root directory.
4.
Copy the driver file npreal2xx.tgz to the / directory.
5.
Execute tar xvfz npreal2xx.tgz to extract all files into the system.
6.
Execute /tmp/moxa/mxinst.
For RedHat AS/ES/WS and Fedora Core1, append an extra argument as follows:
# /tmp/moxa/mxinst SP1
The shell script will install the driver files automatically.
7.
After installing the driver, you will be able to see several files in the /usr/lib/npreal2/driver folder:
> mxaddsvr (Add Server, mapping tty port)
> mxdelsvr (Delete Server, unmapping tty port)
> mxloadsvr (Reload Server)
> mxmknod (Create device node/tty port)
> mxrmnod (Remove device node/tty port)
> mxuninst (Remove tty port and driver files)
At this point, you will be ready to map the NPort serial port to the system tty port.