NetBSD Problem Report #30896

From www@netbsd.org  Tue Aug  2 18:54:16 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 263BD63B117; Tue,  2 Aug 2005 18:54:16 +0000 (UTC)
Message-Id: <20050802185416.263BD63B117@narn.netbsd.org>
Date: Tue,  2 Aug 2005 18:54:16 +0000 (UTC)
From: jmmv84@gmail.com
Reply-To: jmmv84@gmail.com
To: gnats-bugs@netbsd.org
Subject: Incorrect serial configuration after installation
X-Send-Pr-Version: www-1.0

>Number:         30896
>Category:       install
>Synopsis:       Incorrect serial configuration after installation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 02 18:55:00 +0000 2005
>Last-Modified:  Tue Aug 02 22:53:01 +0000 2005
>Originator:     Julio M. Merino Vidal
>Release:        NetBSD 3.99.5
>Organization:
>Environment:
NetBSD asha.home.network 3.99.5 NetBSD 3.99.5 (GENERIC) #0: Thu Jun  9 16:25:45 UTC 2005  jmmv@dawn.home.network:/var/build/obj/home/jmmv/NetBSD/src/sys/arch/i386/compile/GENERIC i386
>Description:
sysinst does not configure NetBSD correctly after doing an installation
in which serial boot blocks are selected.  The problem only arises when
using a serial speed different than 9600 bauds.

sysinst correctly configures the boot program to the chosen speed, but
does not change getty's configuration in /etc/gettytab.

Therefore, at the first boot, you see the system booting up correctly
(i.e., the kernel shows its messages, rc prints all startup items
correctly, etc.) but when you get to the login prompt, the screen gets
corrupted because the speed is changed in between.
>How-To-Repeat:
During the installation of NetBSD on a new box, select the serial boot
blocks.  Then, choose a speed different than 9600; in my case, 57600.
Finish the installation and notice how the system boots.  When you reach
getty, messages do not appear.
>Fix:
I fixed the issue by manually patching console's entry in /etc/gettytab
to use the correct speed.  sysinst should do the same automatically.

>Audit-Trail:
From: David Laight <david@l8s.co.uk>
To: gnats-bugs@netbsd.org
Cc: netbsd-bugs@netbsd.org
Subject: Re: install/30896: Incorrect serial configuration after installation
Date: Tue, 2 Aug 2005 23:51:34 +0100

 On Tue, Aug 02, 2005 at 06:55:00PM +0000, jmmv84@gmail.com wrote:

 > I fixed the issue by manually patching console's entry in /etc/gettytab
 > to use the correct speed.  sysinst should do the same automatically.

 I suspect it would be better if gettytab didn't request the baud rate
 be changed for the console.
 Editing files from sysinst is a PITA (can go badly wrong too easily).

 I'm also sure I've used a serial console at a non-standard rate and
 the stty 9600 got removed from one of the .profile scripts to make it
 work - but my memory might be faulty!

 	David

 -- 
 David Laight: david@l8s.co.uk

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.