NetBSD Problem Report #43829

From www@NetBSD.org  Thu Sep  2 15:27:51 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 59ED363BC69
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  2 Sep 2010 15:27:51 +0000 (UTC)
Message-Id: <20100902152751.25C4263BC5B@www.NetBSD.org>
Date: Thu,  2 Sep 2010 15:27:51 +0000 (UTC)
From: Joachim.Thiemann@gmail.com
Reply-To: Joachim.Thiemann@gmail.com
To: gnats-bugs@NetBSD.org
Subject: OF set console baudrate is changed once multiuser login starts
X-Send-Pr-Version: www-1.0

>Number:         43829
>Category:       port-sparc
>Synopsis:       OF set console baudrate is changed once multiuser login starts
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 02 15:30:01 +0000 2010
>Last-Modified:  Thu Sep 02 17:40:02 +0000 2010
>Originator:     Joachim Thiemann
>Release:        5.1_RC3
>Organization:
McGill University
>Environment:
NetBSD rigel.ece.mcgill.ca 5.1_RC3 NetBSD 5.1_RC3 (GENERIC) #0: Sun Jun 13 10:49:53 UTC 2010  builds@b7.netbsd.org:/home/builds/ab/netbsd-5-1-RC3/sparc/201006130031Z-obj/home/builds/ab/netbsd-5-1-RC3/src/sys/arch/sparc/compile/GENERIC sparc
>Description:
The getty process running on the serial console (if machine booted without keyboard) will force the baudrate to 9600, even if the machine OF console is set to 19200.
>How-To-Repeat:
Boot with serial terminal on port A, and no keyboard plugged in.  The sparc will put console on serial port.  In OF prompt, set baud rate to 19200 ("setenv ttya-mode 19200,8,n,1" IIRC).  Boot freshly installed NetBSD 5.1_RC3. (Or, I suspect, many older versions).  Kernel messages will appear normally (at 19200) but the login prompt is line noise, until you switch your terminal to 9600.

>Fix:
Delete "sp#9600" parameter from the "suncons" entry:

*** gettytab    Thu Sep  2 11:46:01 2010
--- gettytab.bak        Wed Sep  1 14:59:56 2010
***************
*** 125,131 ****

  # 8 bit clean Sun console
  suncons|Sun Console:\
!       :np:

  #
  # Plugboard, and misc other terminals
--- 125,131 ----

  # 8 bit clean Sun console
  suncons|Sun Console:\
!       :np:sp#9600:

  #
  # Plugboard, and misc other terminals

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc/43829: OF set console baudrate is changed once multiuser login starts
Date: Thu, 2 Sep 2010 18:51:58 +0200

 suncons does not sound like a good choice for serial console anyway...

 Martin

From: Joachim Thiemann <joachim.thiemann@gmail.com>
To: gnats-bugs@netbsd.org
Cc: port-sparc-maintainer@netbsd.org, gnats-admin@netbsd.org, 
	netbsd-bugs@netbsd.org
Subject: Re: port-sparc/43829: OF set console baudrate is changed once
 multiuser login starts
Date: Thu, 2 Sep 2010 13:35:05 -0400

 On Thu, Sep 2, 2010 at 12:55, Martin Husemann <martin@duskware.de> wrote:
 > =A0suncons does not sound like a good choice for serial console anyway...
 >
 > =A0Martin

 Probably true - but atm the user cannot specify this at install.  Is
 there any reason for getty to force a baudrate change if on a
 "default" console?  (I also notice that sp#9600 is in the Xwindow
 entry as well)
 The miniroot install works on 19200 without problems since getty is not use=
 d.

 Joe.
 --=20
 Joachim Thiemann :: http://www.tsp.ece.mcgill.ca/~jthiem

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.