From owner-freebsd-stable@FreeBSD.ORG Mon Sep 13 16:25:36 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D33A106564A for ; Mon, 13 Sep 2010 16:25:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 082218FC0A for ; Mon, 13 Sep 2010 16:25:36 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 73F8C46B9E; Mon, 13 Sep 2010 12:25:35 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 619338A04E; Mon, 13 Sep 2010 12:25:34 -0400 (EDT) From: John Baldwin To: Oliver Fromme Date: Mon, 13 Sep 2010 12:23:24 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100819; KDE/4.4.5; amd64; ; ) References: <201009131555.o8DFtRZX042007@lurza.secnetix.de> In-Reply-To: <201009131555.o8DFtRZX042007@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201009131223.25011.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 13 Sep 2010 12:25:34 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-stable@freebsd.org, Stefan Bethke , freebsd@jdc.parodius.com Subject: Re: Serial console problems with stable/8 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: Mon, 13 Sep 2010 16:25:36 -0000 On Monday, September 13, 2010 11:55:27 am Oliver Fromme wrote: > John Baldwin wrote: > > On Monday, September 13, 2010 8:49:48 am Oliver Fromme wrote: > > > Now I get your point ... Yes, -P does probe the keyboard > > > first. That's probably why I see the boot0/boot2 on the > > > VGA console, not on the serial port. As far as I know, > > > /boot.config is read by the boot0/boot2 stage, not by > > > loader(8). > > > > But loader inherits the settings from boot2, so if you set it in > > /boot.config you do not need to set anything in loader.conf. Also, > > having boot2 use serial is good in that you can boot loader.old if > > you ever get a broken /boot/loader. Using '-Dh' in /boot.config is > > what I do on all the boxes where I use a serial console. > > Makes sense. I'll change -P to -Dh. > > But having console="comconsole" in loader.conf should also > enable the serial console, except that it happens a little > later (in loader instead of boot2), right? Correct. > I think the boot.config stuff might be a red herring. > The console breaks (i.e. freezes) as soon as I try to run > a getty process on it -- That seems to indicate that getty > does *something* to the console device which causes the > problem. The wchan "ttydcd" seems to indicate is has > something to do with carrier detection or flow control. > This points to the uart driver as the culprit which > replaced sio. Well, /dev/ttyXX have always waited for carrier detect, whereas /dev/cuaXX (the call-out devices) have not. That was so that you could hook a modem up to a serial port and getty would not return from open(2) and print a login banner until someone dialed the modem and connected. I think Jeremy has already given you some good things to try (such as 3wire.9600) to debug this instead. > > > Anyway, I don't care too much for boot0/boot2; I've never > > > had to interact with them on that machine. The important > > > thing for me is that loader(8) and the kernel use the > > > serial port for the console, and that I can login on it > > > (i.e. there must be a getty running). All of that seemed > > > to be accomplished with the console="comconsole" entry in > > > /boot/loader.conf ... At least it worked when I first > > > installed that machine in September 2000 (yeah, exactly 10 > > > years ago) with FreeBSD 4.1, then updated it roughly every > > > two years ... And it stopped working in 8.x. > > > > Did you update your hints to rename the 'sio' hints to 'uart'? > > Yes, mergemaster did that for me. I double-checked it. > > hint.uart.0.at="isa" > hint.uart.0.port="0x3F8" > hint.uart.0.flags="0x10" > hint.uart.0.irq="4" Ok. I know that for machines I have at work that run 7, if I boot a 8.x kernel have to explicitly unset the sio hints and set the uart hints for the serial console to work in 8. -- John Baldwin