|
Installing PC/X and ISA ClassicBoard Adapters in Linux Installing PC/X and ISA ClassicBoard Adapters in Linux
- Initial Configuration
Determine the I/O Addresses:
- ClassicBoard:
Run DOS configuration util (cfg) or
use isapnp in linux.
- PC/4, PC/8:
Configurable via DIP switches on the board itself.
- PC/16: I/O Addresses are fixed via PAL chips on the board. See table
of I/O addresses in the manual.
Determine the IRQ used by the board.
- Create the device files
Devices are created via the mknod command. You will
need to use mknod to create a device file for each port. mknod [port] [type] [major] [minor]
[port] = the device file to be created
[type] = c
[major] = the major # of your other ttyS devices
[minor] = the next minor #, following the sequence of your existing devices
The first Digi port should be ttyS4 or higher on most systems. For Example:
# ls -l /dev/ttyS*
crw------- 1 root tty 4, 64 Mar 7 14:52 /dev/ttyS0
crw------- 1 root tty 4, 65 Mar 7 14:52 /dev/ttyS1
crw------- 1 root tty 4, 66 Mar 7 14:52 /dev/ttyS2
crw------- 1 root tty 4, 67 Mar 7 14:52 /dev/ttyS3
# mknod /dev/ttyS4 c 4 68
# mknod /dev/ttyS5 c 4 69
# mknod /dev/ttyS6 c 4 70
# mknod /dev/ttyS7 c 4 71
# chgrp tty /dev/ttyS*
# ls -l /dev/ttyS*
crw------- 1 root tty 4, 64 Mar 7 14:52 /dev/ttyS0
crw------- 1 root tty 4, 65 Mar 7 14:52 /dev/ttyS1
crw------- 1 root tty 4, 66 Mar 7 14:52 /dev/ttyS2
crw------- 1 root tty 4, 67 Mar 7 14:52 /dev/ttyS3
crw------- 1 root tty 4, 68 Mar 7 14:52 /dev/ttyS4
crw------- 1 root tty 4, 69 Mar 7 14:52 /dev/ttyS5
crw------- 1 root tty 4, 70 Mar 7 14:52 /dev/ttyS6
crw------- 1 root tty 4, 71 Mar 7 14:52 /dev/ttyS7
- Configure the ports in Linux
setserial /dev/ttyS[#] ^fourport port [IO] irq [IRQ] uart [UART] Notes:
I/O should usually be entered in as a hex address (0x100, etc) and
each port must have a unique I/O address. Digi's documentation gives
addresses in hex values.
The setserial commands need to be run again each time the machine is
rebooted. If you want them to remain configured, we recommend adding them
to the appropriate startup script in your distribution of linux. (i.e.
rc.serial)
For Example:
Some older versions of setserial require the following command, as well: setserial /dev/ttyS[first#] set_multiport port1 [IO] mask1 0xf match1 0xf
Use Oxf for 4 ports
Use 0xff for 8 ports,
or 0xffff for 16 ports.
Use port2, mask2, match2 for a second board.
|