Configuring HP-UX For Peripherals
124 Chapter4
Configuring Terminals and Modems
Additionally Configuring HP-UX for a Modem
appropriate for terminals. To create a device file with modem syntax
(that is, /dev/cua#p#), you need to execute mksf with the -i option. The
-i is used for only direct connect; it is not necessary for dial-out or dial-in
modem files.
Here is an example of creating device special files with mksf for a Series
700 whose modem is connected to hardware path 2/0/4. Note that one
file each is created for direct connect (-a0), dial-out modem (-a1) and
dial-in modem (-a2).
/usr/sbin/mksf -d asio0 -H 2/0/4 -a0 -i -v
making cua0p0 c 1 0x000000
/usr/sbin/mksf -d asio0 -H 2/0/4 -a1 -v
making cul0p0 c 1 0x000001
/usr/sbin/mksf -d asio0 -H 2/0/4 -a2 -v
making ttyd0p0 c 1 0x000002
Series 800 requires yet another additional option when creating device
special files for a modem: you must cite the port number for the Series
800 in your mksf command. (In the following example, the card instance
is used instead of the hardware path and the port is 2.)
Step 7. Verify the creation of the device special files by using the lssf command.
For the Series 700 example,
/usr/sbin/lssf /dev/cua0p0
asio0 card instance 0 hardwired at address 2/0/4 /dev/cua0p0
/usr/sbin/lssf /dev/cul0p0
asio0 card instance 0 callout at address 2/0/4 /dev/cul0p0
/usr/sbin/lssf /dev/ttyd0p0
asio0 card instance 0 callin at address 2/0/4 /dev/cul0p0
For the Series 800 example,
/usr/sbin/lssf /dev/cua0p2
mux2 card instance 0 port 2 hardwired at address 56/0 /dev/cua0p2
/usr/sbin/lssf /dev/cul0p2
mux2 card instance 0 port 2 callout at address 56/0 /dev/cul0p2
/usr/sbin/lssf /dev/ttyd0p2
mux2 card instance 0 port 2 callin at address 56/0 /dev/cul0p2
Step 8. With your modem still disconnected from the port, edit the
/etc/inittab file to add a getty entry for the modem port that will
receive incoming calls. The entries must conform to the format