From owner-freebsd-stable@FreeBSD.ORG Wed Jan 3 16:19:11 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D09A416A407 for ; Wed, 3 Jan 2007 16:19:11 +0000 (UTC) (envelope-from sven@dmv.com) Received: from smtp-gw-cl-d.dmv.com (smtp-gw-cl-d.dmv.com [216.240.97.42]) by mx1.freebsd.org (Postfix) with ESMTP id 9589613C458 for ; Wed, 3 Jan 2007 16:19:11 +0000 (UTC) (envelope-from sven@dmv.com) Received: from mail-gw-cl-b.dmv.com (mail-gw-cl-b.dmv.com [216.240.97.39]) by smtp-gw-cl-d.dmv.com (8.12.10/8.12.10) with ESMTP id l03GJAJX037861 for ; Wed, 3 Jan 2007 11:19:10 -0500 (EST) (envelope-from sven@dmv.com) Received: from lanshark.dmv.com (lanshark.dmv.com [216.240.97.46]) by mail-gw-cl-b.dmv.com (8.12.9/8.12.9) with ESMTP id l03GJA8s081277 for ; Wed, 3 Jan 2007 11:19:10 -0500 (EST) (envelope-from sven@dmv.com) From: Sven Willenberger To: freebsd-stable@freebsd.org Content-Type: text/plain Date: Wed, 03 Jan 2007 11:24:39 -0500 Message-Id: <1167841479.30890.17.camel@lanshark.dmv.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.48 on 216.240.97.42 X-Scanned-By: MIMEDefang 2.48 on 216.240.97.39 Subject: Verifying serial setup for KDB_UNATTENDED X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jan 2007 16:19:11 -0000 We have a RELENG_6 amd64 box that has been experiencing lockups/panics every 4 days or so. The box is at a remote location and trying to get a full trace has been nigh impossible with the staffing constraints. As such I would like to set up a serial console (using another FreeBSD box and minicom or cu). I would like to verify that the following will work to allow a) the other FreeBSD box to have a terminal session via COM1 b) have it work regardless of whether a keyboard and/or monitor is plugged into the target box and c) still allow terminal redirection to internal or serial console if a keyboard is attached : /boot/loader.conf hint.sio.0.flags="0x30" console="comconsole,vidconsole" boot_multicons="YES" boot_console="YES" comsconsole_speed="19200" /etc/ttys ttyd0 "/usr/libexec/getty std.19200" vt100 on secure As this is basically a 6.2 system, I assume I don't need to do anything re: boot blocks or /etc/make.conf or the like? Kernel has already been built with options DDB, options KDB_UNATTENDED, options KDB, options KDB_TRACE. Would the modifications to the 2 files listed above be sufficient to meet my wishes above and allow me to see the panic to terminal when the system does panic (and allow me to even trace, etc via the kdb debugger) ? Thanks, Sven