From owner-freebsd-stable@FreeBSD.ORG Mon Sep 13 15:55:46 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 2A76E1065672; Mon, 13 Sep 2010 15:55:46 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 831CF8FC27; Mon, 13 Sep 2010 15:55:45 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o8DFtRtZ042008; Mon, 13 Sep 2010 17:55:43 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o8DFtRZX042007; Mon, 13 Sep 2010 17:55:27 +0200 (CEST) (envelope-from olli) Date: Mon, 13 Sep 2010 17:55:27 +0200 (CEST) Message-Id: <201009131555.o8DFtRZX042007@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, jhb@FreeBSD.ORG, freebsd@jdc.parodius.com, Stefan Bethke In-Reply-To: <201009131024.19883.jhb@freebsd.org> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Mon, 13 Sep 2010 17:55:43 +0200 (CEST) Cc: 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 15:55:46 -0000 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? 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. > > 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" Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "C is quirky, flawed, and an enormous success." -- Dennis M. Ritchie.