It is useful to set up a remote serial terminal
to act as the console during a debugging session.
When the remote serial console is set up,
all console output
goes to the serial terminal.
Use the script(TC) command with cu from an xterm window to the remote console to display the debug output in the xterm window and save it to a file. For example:
script cu -l /dev/tty2aWhen you quit the shell started with script, the output is in the typescript file (or another file you specify). To append more data to that same file, use script -a.
When the system boots, go into the boot command line interface and add the boot parameter:
CONSOLE=iasy(<minor> [, <line_mode>])
The serial root console does not do flow control, so data may be corrupted if the output exceeds the console's rate of data consumption. The maximum line speed of 115200 (set B115K2 as a baud rate) is usually adequate to display the data appropriately, but some problems may occur at 9600 baud and problems are likely at 2400 baud.
You can set up either another SVR5 system or an SCO OpenServer 5 system to serve as a remote console for running the kernel debuggers on a SVR5 system. Yo can also use a Linux system running the minicom terminal emulator or a Windows system running HyperTerminal. To do this:
Direct tty1a - 9600 directTo use Com2 on the local machine, add the following to the local Devices file:
Direct tty2a - 9600 Direct
cu -l tty1aThis entry matches the Devices file set up in Step #1. You can omit this step if you are using a real serial terminal.
cat /etc/passwd >> /dev/tty1aThe contents of the passwd file should appear on the remote cu session.
issue the following command if Com2 is the port being used
on the test target:
kdb>> "iasy" 6 newterm6 is the minor number of the com port on the test target. If you are using Com1, substitute 0 for the 6.
kdb>> "kd" 0 newterm
To set up a serial terminal on SCO OpenServer 5, plug a serial console into a serial port and do one of the following to set that serial port to be the system console:
This makes tty1a the system console.
To use tty2a the system console,
The defaults are 9600 baud, no parity, 8 bits.
See the ``systty'' section of the
manual page for more details.