National Instruments PCI-485/2 Isolated Tablet User Manual


 
Using PCI Serial with Linux 16 www.natinst.com
For more information about using setserial, refer to linux # more
/usr/doc/setserial*/README
.
1. Enter the following:
linux# cp /usr/doc/setserial*/rc.serial /etc/rc.d/
linux# pico /etc/rc.d/rc.serial
a. Make sure that SETSERIAL= points to the correct location. Check
your
/bin and /sbin directories, and change the SETSERIAL=
line to say either
SETSERIAL=/bin/setserial or
SETSERIAL=/sbin/setserial
b. Under AUTOMATIC CONFIGURATION, leave the following lines
uncommented and delete or comment out (by adding a # to the
beginning of the line) all the other lines in the section. (Depending
on your version of
setserial, ttyS might replace cua):
AUTO_IRQ=auto_irq
${SETSERIAL} /dev/cua0 ${AUTO_IRQ} skip_test
autoconfig ${STD_FLAGS}
${SETSERIAL} /dev/cua1 ${AUTO_IRQ} skip_test
autoconfig ${STD_FLAGS}
${SETSERIAL} /dev/cua2 ${AUTO_IRQ} skip_test
autoconfig ${STD_FLAGS}
${SETSERIAL} /dev/cua3 ${AUTO_IRQ} autoconfig
${STD_FLAGS}
c. Under MANUAL CONFIGURATION, comment out or delete
everything but the following lines. Change the lines concerning
/dev/cua4-/dev/cua(4+
n
) (where
n
is the number of ports on
the PCI serial interface) to the following:
# These are the first set of AST Fourport ports
#
${SETSERIAL} /dev/ttyS4 uart 16550A port <
port
address
> irq <
irq
> ^fourport
${SETSERIAL} /dev/ttyS5 uart 16550A port <
port
address
> irq <
irq
> ^fourport
${SETSERIAL} /dev/ttyS6 uart 16550A port <
port
address
> irq <
irq
> ^fourport
${SETSERIAL} /dev/ttyS7 uart 16550A port <
port
address
> irq <
irq
> ^fourport
Refer to the section Sample /etc/rc.d/rc.serial File for an example
(configured according to the
lspci example above).
2. Enter the following:
linux# pico /etc/rc.d/rc