Configuring HP-UX For Peripherals

108 Chapter4
Configuring Terminals and Modems
Configuring HP-UX for an HP Terminal or for a Modem
to the port number of 1. (See Appendix C for explanation of bit
assignments.)
/usr/sbin/lssf /dev/tty0p1
mux4 card instance 0 port 1 hardwired at address 56/0 /dev/tty0p1
ll /dev/tty0p1
crw-rw-rw- 1 bin bin 178 0x000100 Mar 16 18:29 /dev/tty0p1
If you are configuring a terminal without having to install an
interface card, you can physically connect the terminal, as
described in its owner's manual. Then, skip ahead to Additionally
Configuring HP-UX for a Terminal”, the next section.
If you are configuring a modem to an existing port, note the
hardware address (or card instance number) and port number you
will be using from the ioscan output. Then, skip ahead to
Additionally Configuring HP-UX for a Modem”, later in this
chapter.
If the necessary driver is not present in the kernel, and is a
static driver, you will need to rebuild the kernel to include the
additional driver. If the driver is a dynamic driver, no rebuild is
necessary. (This situation might occur if you have to add hardware to
configure additional terminals or if you are running a minimal
kernel.)
Step 3. To rebuild your kernel and include an additional driver, here is what to
do:
a. Identify the needed driver by consulting the table in “Selecting Device
Drivers for Terminals and Modems”, earlier in this chapter.
b. Change directory to the build environment (/stand/build). There,
execute a system preparation script, system_prep, which extracts the
system file from the current kernel and writes a system file in your
current directory. (That is, it creates /stand/build/system.) The -v
provides verbose explanation as the script executes.
cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system
c. Modify the /stand/build/system file to add the absent driver(s) by
invoking the kmsystem command. The -c Y specifies that
driver-name is to be configured into the system.
/usr/sbin/kmsystem -S /stand/build/system -c Y
driver-name