From owner-freebsd-questions Tue May 12 12:31:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA07464 for freebsd-questions-outgoing; Tue, 12 May 1998 12:31:28 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from camel14.mindspring.com (camel14.mindspring.com [207.69.200.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA07428 for ; Tue, 12 May 1998 12:31:18 -0700 (PDT) (envelope-from jjyuill@mindspring.com) Received: from default (user-38ldbqv.dialup.mindspring.com [209.86.175.95]) by camel14.mindspring.com (8.8.5/8.8.5) with SMTP id PAA29077 for ; Tue, 12 May 1998 15:31:11 -0400 (EDT) Message-Id: <3.0.1.32.19980512153053.0069d650@pop.mindspring.com> X-Sender: jjyuill@pop.mindspring.com X-Mailer: Windows Eudora Light Version 3.0.1 (32) Date: Tue, 12 May 1998 15:30:53 -0400 To: freebsd-questions@FreeBSD.ORG From: Jim Yuill Subject: seeking advice re: configuring a serial console Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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