From owner-freebsd-stable@FreeBSD.ORG Wed Sep 9 20:44:34 2009 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 94E091065676 for ; Wed, 9 Sep 2009 20:44:34 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp003.apm-internet.net (smtp003.apm-internet.net [85.119.248.52]) by mx1.freebsd.org (Postfix) with SMTP id 03AAF8FC1D for ; Wed, 9 Sep 2009 20:44:33 +0000 (UTC) Received: (qmail 65900 invoked from network); 9 Sep 2009 20:44:32 -0000 Received: from unknown (HELO titania.njm.me.uk) (86.141.186.210) by smtp003.apm-internet.net with SMTP; 9 Sep 2009 20:44:32 -0000 Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.3/8.14.3) with ESMTP id n89KiWJZ092554; Wed, 9 Sep 2009 21:44:32 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.3/8.14.3/Submit) id n89KiV07092553; Wed, 9 Sep 2009 21:44:31 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Wed, 9 Sep 2009 21:44:31 +0100 From: "N.J. Mann" To: Michael Sperber Message-ID: <20090909204431.GB88622@titania.njm.me.uk> Mail-Followup-To: Michael Sperber , Robert Watson , Mikael Bak , freebsd-stable@freebsd.org, Miroslav Lachman <000.fbsd@quip.cz> References: <4A8EAE86.2000108@t-online.hu> <4A8ECB9C.2020909@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 7.2-STABLE User-Agent: mutt-NJM (2009-07-16) Cc: Mikael Bak , freebsd-stable@FreeBSD.org, Robert Watson , Miroslav Lachman <000.fbsd@quip.cz> Subject: Re: Upgrade FreeBSD 7.1 to 7.2 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, 09 Sep 2009 20:44:34 -0000 In message , Michael Sperber (sperber@deinprogramm.de) wrote: > > Robert Watson writes: > > > FWIW, the main problem I ran into with my 8.0 upgrade is that 8.0 uses > > the uart(4) driver for serial ports, and sio(4), 7.2's default, has > > been removed. They require mutually exclusive lines in device.hints > > and different /etc/ttys lines. If you rely on a serial console, I > > would recommend first switching 7.2 to using uart, pausing for a bit, > > and then switching forward to 8 so that you separate the risks > > associated with changing console drivers from those associated with > > sliding a major kernel version. > > Could you briefly elaborate on how that's done with 7.x? I.e. is > changing device.hints and /etc/ttys enough (what changes?), or do I need > to recompile the kernel? (I'm a bit confused because both uart and sio > seem to be in GENERIC, but I haven't been able to active uart through > device.hints. I couldn't find anything on freebsd.org or the internets, > either.) A few hints would be much appreciated! Robert's comment prompted me to try this on my home server which runs 7-STABLE, but which I will probably upgrade to 8-STABLE in a few months time. What I did was: 1. Replace 'device sio' with 'device uart' in the kernel configuration file. 2. In /etc/ttys change all ttydX to ttyuX, where X was 0 to 3 in my case. 3. In /boot/device.hints change all hint.sio.X.Y to hint.uart.X.Y I then rebooted with my fingers crossed since said machine is headless. I need not have worried since it worked first time. If anyone thinks I forgot something please _do_ speak up. HTH Cheers, Nick. --