From owner-freebsd-current@FreeBSD.ORG Mon Jul 12 18:08:22 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 012C116A4D2 for ; Mon, 12 Jul 2004 18:08:22 +0000 (GMT) Received: from smtp002.bizmail.yahoo.com (smtp002.bizmail.yahoo.com [216.136.172.126]) by mx1.FreeBSD.org (Postfix) with SMTP id E524743D1D for ; Mon, 12 Jul 2004 18:08:21 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@70.240.179.251 with login) by smtp002.bizmail.yahoo.com with SMTP; 12 Jul 2004 18:08:21 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 9A92A61E2; Mon, 12 Jul 2004 13:08:20 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12247-03; Mon, 12 Jul 2004 13:08:19 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 592616156; Mon, 12 Jul 2004 13:08:19 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.12.11/8.12.11) with ESMTP id i6CI8IIx027456; Mon, 12 Jul 2004 13:08:18 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <40F2D392.70509@alumni.rice.edu> Date: Mon, 12 Jul 2004 13:08:18 -0500 From: Jon Noack User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040629) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kim Culhan References: <20040712150055.82281.qmail@web50707.mail.yahoo.com> In-Reply-To: <20040712150055.82281.qmail@web50707.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at noacks.org cc: freebsd-current@FreeBSD.org Subject: Re: serial console config -recent changes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 18:08:22 -0000 On 07/12/04 10:00, Kim Culhan wrote: > Some would say they're not that recent but > lots of google hits on serial console config > are obsolete -so what else is new.. > > On -current the best approach appears to be > something like: > > echo 'console=comconsole' > /boot/loader.conf.local > > This worked fine here. Now we want to increase the > baud rate beyond 9600. > > Google remembers a note on the -current list from > 9-1-03 in which scottl@ talks about the baud rate setting. > > In that thread theres a mention of a procedure for including > the baud rate in the boot block, which I followed and blew up > my disk -no big deal. > > At the time scottl didn't think the comconsole baud rate > stored-in-boot-block was the Right Thing but that wasn't > enough to stop me from trying. > > If anyone has some thoughts on this they would be > greatly appreciated. This has worked for me for a long time, but may not be the best way these days. Put the following in /etc/make.conf and recompile to set the serial console speed (as documented in /usr/share/examples/etc/make.conf): BOOT_COMCONSOLE_SPEED= 115200 To keep it speedy for a login, make sure you change /etc/ttys as well: ttyd0 "/usr/libexec/getty std.115200" vt100 on secure Finally, set up /etc/remote on your client so that it defaults to the new higher speed: sio1|com2:dv=/dev/cuaa1:br#115200:pa=none: I have 2 machines with criss-crossed serial ports (I grew up with windows, so I'll use com*): com1-----\ /-----com1 Computer 1 X Computer 2 com2-----/ \-----com2 Thus, on either machine I can 'tip com2' and connect to the other computer's serial console running on com1. This scheme gives me a lot more confidence when updating a machine remotely, as I can SSH in to the other machine and get serial console access to actually perform the update or to do damage control if things go awry. Jon