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=13. 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 n5. 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.sysconYou 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).