From owner-freebsd-stable@FreeBSD.ORG Wed Jun 28 22:36:34 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0493016A417 for ; Wed, 28 Jun 2006 22:36:34 +0000 (UTC) (envelope-from fcash@ocis.net) Received: from smtp.sd73.bc.ca (mailtest.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C0C843DDF for ; Wed, 28 Jun 2006 22:36:28 +0000 (GMT) (envelope-from fcash@ocis.net) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id 79F268A004E; Wed, 28 Jun 2006 15:43:19 -0700 (PDT) Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (smtp.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05924-01-28; Wed, 28 Jun 2006 15:43:13 -0700 (PDT) Received: from webmail.sd73.bc.ca (unknown [10.10.10.17]) by smtp.sd73.bc.ca (Postfix) with ESMTP id 0889A8A004D; Wed, 28 Jun 2006 15:43:04 -0700 (PDT) Received: from webmail.sd73.bc.ca (localhost.localdomain [127.0.0.1]) by webmail.sd73.bc.ca (Postfix) with ESMTP id 909E6900044D; Wed, 28 Jun 2006 15:36:13 -0700 (PDT) Received: from 192.168.0.10 (SquirrelMail authenticated user fcash) by webmail.sd73.bc.ca with HTTP; Wed, 28 Jun 2006 15:36:13 -0700 (PDT) Message-ID: <42130.192.168.0.10.1151534173.squirrel@webmail.sd73.bc.ca> In-Reply-To: <20060628185711.K43909@ganymede.hub.org> References: <20060628185711.K43909@ganymede.hub.org> Date: Wed, 28 Jun 2006 15:36:13 -0700 (PDT) From: "Freddie Cash" To: "User Freebsd" User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new using ClamAV at sd73.bc.ca Cc: stable@freebsd.org Subject: Re: configuring sio1 for serial console ... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fcash@ocis.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 22:36:34 -0000 On Wed, June 28, 2006 2:58 pm, User Freebsd wrote: > Following hte instructions in the Handbook, I've added the following > line to my kernel config: > > device sio1 at isa? port IO_COM2 flags 0x10 irq 3 > > but, when I try to build it: > > config: /usr/src/sys/i386/conf/kernel:71: syntax error > *** Error code 1 > > so, obviously that is wrong for 6.x? :( Here's how I did it (taken from our internal wiki so there's no real formatting): Enabling a Serial Console The following will allow you to use the Tyan SMDC hardware and Tyan TSO software to remotely connect to a FreeBSD box and control it as if you were sitting in front of it. It works at the hardware level, giving you remote access to the boot sequence, BIOS messages, hardware monitoring, and a serial console (over TCP/IP). You'll need to configure the OS to use a serial console in order to see anything once the boot loader and OS kernel take over. The following instructions will get things working on FreeBSD. 1. Edit /boot/loader.conf to enable output to serial and video consoles simultaneously: hint.sio.1.flags="0x30" console="comconsole vidconsole" comconsole_speed="19200" boot_multicons="yes" 2. Edit /etc/make.conf to set the serial console speed (used when we recompile the boot blocks): BOOT_COMCONSOLE_PORT=0x2F8 BOOT_COMCONSOLE_SPEED=19220 3. Edit /etc/ttys to enable the serial console and set the console speed used: ttyd1 "/usr/libexec/getty std.19200" vt100 on secure 4. Rebuild the boot loader cd /usr/src/sys/boot make clean make make install 5. Install the new boot blocks bsdlabel -B /dev/ad4s1 6. Reboot shutdown -r now 7. Voila! All output will now go to the serial console and the video console simultaneously. Once the init process starts, a separate getty process will be loaded for the serial console. Connecting via the serial console will display a login screen, same as connecting via the video console, SSH, telnet, etc. ---- Freddie Cash fcash@ocis.net