Date: Tue, 12 May 1998 15:30:53 -0400 From: Jim Yuill <jjyuill@mindspring.com> To: freebsd-questions@FreeBSD.ORG Subject: seeking advice re: configuring a serial console Message-ID: <3.0.1.32.19980512153053.0069d650@pop.mindspring.com>
next in thread | raw e-mail | index | archive | help
Can anyone please provide advice about configuring a serial console? I can't figure out how to get the "boot:" prompt, and the preceding boot messages, to show up on the serial console. When the system first boots, the initial messages- including the "boot:" prompt- show up on ttyv0 (the monitor connected to the video card). After the "boot:" prompt about three lines of messages appear on ttyv0. After that all the boot console-messages go to the serial terminal ttyd0. I'd like all the console messages- especially the "boot:" prompt- to go to the serial terminal. Any advice would be most appreciated. I've probably just neglected a step in the configuration process. Listed below is the steps I've taken so far. Thanks, Jim *************** what I've done so far: 1. I set /etc/ttys to this: >>>>>>>>> Begin /etc/ttys excerpt # # @(#)ttys 5.1 (Berkeley) 4/17/89 # # name getty type status comments # # This entry needed for asking password when init goes to single-user mode # If you want to be asked for password, change "secure" to "insecure" here console none vt100 off secure # ttyv0 "/usr/libexec/getty Pc" cons25 on secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" cons25 on secure ttyv2 "/usr/libexec/getty Pc" cons25 on secure ttyv3 "/usr/libexec/getty Pc" cons25 on secure # Serial terminals ttyd0 "/usr/libexec/getty std.9600" vt100 on secure ttyd1 "/usr/libexec/getty std.115200" vt100 off secure ttyd2 "/usr/libexec/getty std.9600" unknown off secure ttyd3 "/usr/libexec/getty std.9600" unknown off secure >>>>>>>> End /etc/ttys excerpt The serial terminal worked okay on ttyd0. 2. Next, I updated the kernel configuration file in /usr/src/sys/i386/conf. It now looks like this: >>>>>>>>>> Begin /usr/src/sys/i386/conf configuration-file excerpt: device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr device sio2 at isa? disable port "IO_COM3" tty irq 5 vector siointr device sio3 at isa? disable port "IO_COM4" tty irq 9 vector siointr #I added these to the GENERIC configuration: options COMCONSOLE options FORCE_COMCONSOLE >>>>>>>>>>> End /usr/src/sys/i386/conf configuration-file excerpt: 3. I then re-compiled the kernel. .---------------------------------------------. | This note was written using voice-input-- | | strange typos may be present :-) | '---------------------------------------------' Jim Yuill, graduate student Computer Science Department North Carolina State University 919-546-0537 (h/w) 2718 Clark Ave; Raleigh, NC 27607 (h/w) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.1.32.19980512153053.0069d650>