Technical article 109670

How can I configure a serial console to run at 19200 baud?

OpenServer 5.0.4

Written · Last revised

Problem

How can I configure a serial console to run at 19200 baud?

Solution

Follow these steps:

1. Configure the terminal to run at 19200 baud, using 8-bit characters, 1 stop-bit and no parity. Connect the terminal to the first dumb serial port on the system (COM1).

2. Edit /etc/default/boot and ensure that these parameters are set:

SERIAL=EXTA CS8
SERIAL8=YES
SYSTTY=1

3. Add the following to the end of "DEFBOOTSTR=...":

systty=sio(0,EXTA,CS8)

4. Edit /etc/inittab and /etc/conf/init.d/sio, and ensure that the entry for tty1a is:

Se1a:234:respawn:/etc/getty tty1a n

5. Run "telinit q", and make sure you can log in on the serial terminal; if you have any problems, check the terminal's settings as per step 1 above.

6. Reboot the system using shutdown(ADM).

7. Enter single-user mode, and run the following to set the console default settings as used by init(M):

# stty -g > /etc/ioctl.syscon

You may now enter multiuser mode (run level 2) and use the system as usual.

NOTE:     Subsequent system reboots do not require step 6.

See also

The manual pages for bootstring(HW), boot(HW), boot(F), inittab(F),
init(M) and stty(C).

From the Xinuos technical article database, record 109670. Reproduced with permission. The original is at www.sco.com/ta/109670, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.