NetBSD Problem Report #17904
Received: (qmail 17513 invoked by uid 605); 10 Aug 2002 17:03:43 -0000
Message-Id: <20020810170340.E9B6111125@narn.netbsd.org>
Date: Sat, 10 Aug 2002 10:03:40 -0700 (PDT)
From: olt@bogosoft.com
Sender: gnats-bugs-owner@netbsd.org
Reply-To: olt@bogosoft.com
To: gnats-bugs@gnats.netbsd.org
Subject: sysinst should change /etc/ttys when serial bootblock is selected
X-Send-Pr-Version: www-1.0
>Number: 17904
>Category: install
>Synopsis: sysinst should change /etc/ttys when serial bootblock is selected
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: fredb
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Aug 10 17:04:00 +0000 2002
>Closed-Date: Wed Sep 04 02:48:24 +0000 2002
>Last-Modified: Wed Sep 04 02:48:24 +0000 2002
>Originator: Oliver Tonnhofer
>Release: 1.5.3
>Organization:
.
>Environment:
NetBSD rod 1.5.3 NetBSD 1.5.3 (GENERIC) #34: Mon Jul 1 21:36:06 CEST 2002 he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
When you want to have access to your NetBSD Box via serial console and select 'serial bootblock' during the installation, you have to modify /etc/ttys manualy for a successful serial access.
>How-To-Repeat:
Install with 'serial bootblock' and reboot the machine. When the Box is booted you can't login.
>Fix:
Change sysinst to do something like the following commands, when a serial bootblock is selected. It would be nice if this is added before the 1.6 release :)
# cd /mnt/etc/
# ed ttys
7
s/Pc/std.9600/
s/pc3/vt220/
s/off/on/
p
w
q
# reboot
>Release-Note:
>Audit-Trail:
From: David Laight <david@l8s.co.uk>
To: netbsd-bugs@netbsd.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: install/17904: sysinst should change /etc/ttys when serial bootblock is selected
Date: Sat, 10 Aug 2002 18:31:19 +0100
> Change sysinst to do something like the following commands,
> when a serial bootblock is selected.
>
> # cd /mnt/etc/
> # ed ttys
> 7
> s/Pc/std.9600/
> s/pc3/vt220/
> s/off/on/
> p
> w
> q
Is that the 'correct' - or even a reasonable fix?
It is certainly a dangerous edit!
Surely you actually want to turn on the getty for tty00 (or which
ever line the console actually is?)
Actually the default (under source control) seems to be to
run a getty on the 'console' and nowhere else.
Presumably /dev/console is being picked up correctly???
The differnce between 'Pc' and 'std.9600' is trivial (8 bit data).
And any term type difference won't stop you logging in.
David
--
David Laight: david@l8s.co.uk
From: Oliver Tonnhofer <olt@bogosoft.com>
To: netbsd-bugs@netbsd.org
Cc: gnats-bugs@gnats.netbsd.org, david@l8s.co.uk
Subject: Re: install/17904: sysinst should change /etc/ttys when serial bootblock is selected
Date: Sat, 10 Aug 2002 21:24:08 +0200
Hallo David,
david@l8s.co.uk (David Laight) wrote:
>> Change sysinst to do something like the following commands,
>> when a serial bootblock is selected.
[snip]
>Is that the 'correct' - or even a reasonable fix?
>It is certainly a dangerous edit!
I wrote "something like the following". If I select serial bootblock I
want to be able to login via serial console. The code was just the way
I made this possible. It worked for me, but I think that someone else
will find a better way for solving this 'problem', surley.
>Surely you actually want to turn on the getty for tty00 (or which
>ever line the console actually is?)
I don't know the real different between console and tty00.
>Actually the default (under source control) seems to be to
>run a getty on the 'console' and nowhere else.
>Presumably /dev/console is being picked up correctly???
>
>The differnce between 'Pc' and 'std.9600' is trivial (8 bit data).
>And any term type difference won't stop you logging in.
Ok. But console or tty00 should set to 'on' when serial bootblock is
selected, IMHO.
~
Oliver
From: fredb@immanent.net (Frederick Bruckman)
To: olt@bogosoft.com (Oliver Tonnhofer), david@l8s.co.uk (David Laight),
netbsd-bugs@netbsd.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: install/17904: sysinst should change /etc/ttys when serial bootblock is selected
Date: Sat, 10 Aug 2002 18:26:37 -0500 (CDT)
In article <20020810212408.6b385647.olt@bogosoft.com>,
olt@bogosoft.com (Oliver Tonnhofer) writes:
> david@l8s.co.uk (David Laight) wrote:
>
>>Actually the default (under source control) seems to be to
>>run a getty on the 'console' and nowhere else.
>>Presumably /dev/console is being picked up correctly???
>>
>>The differnce between 'Pc' and 'std.9600' is trivial (8 bit data).
>>And any term type difference won't stop you logging in.
Yes.
> Ok. But console or tty00 should set to 'on' when serial bootblock is
> selected, IMHO.
It looks like it's already "console" in current and netbsd-1-6, just not in
*netbsd-1-5*, so it didn't make it into NetBSD 1.5.3.
I don't know for sure if there is going to be a NetBSD 1.5.4, but I will
request that revision 1.12 of "etc/etc.i386/ttys" be pulled up to netbsd-1-5,
and close this, when it is.
--
Frederick
State-Changed-From-To: open->analyzed
State-Changed-By: fredb
State-Changed-When: Sat Aug 10 19:41:20 CDT 2002
State-Changed-Why:
A pullup to netbsd-1-5 has been requested.
Responsible-Changed-From-To: install-manager->fredb
Responsible-Changed-By: fredb
Responsible-Changed-When: Sat Aug 10 19:41:20 CDT 2002
Responsible-Changed-Why:
I'll follow up, and close this once the pullup has been approved and executed.
From: Oliver Tonnhofer <olt@bogosoft.com>
To: fredb@immanent.net (Frederick Bruckman), david@l8s.co.uk (David Laight),
netbsd-bugs@netbsd.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: install/17904: sysinst should change /etc/ttys when serial bootblock is selected
Date: Sun, 11 Aug 2002 03:07:13 +0200
Hallo Frederick,
fredb@immanent.net (Frederick Bruckman) wrote:
>In article <20020810212408.6b385647.olt@bogosoft.com>,
>> Ok. But console or tty00 should set to 'on' when serial bootblock is
>> selected, IMHO.
>
>It looks like it's already "console" in current and netbsd-1-6, just not in
>*netbsd-1-5*, so it didn't make it into NetBSD 1.5.3.
I never tested 1.6_BETA* and so I didn't know this. Thanks for the
hint, that it is already implemented in 1.6 and current.
~
Oliver
From: grant beattie <grant@netbsd.org>
To: Oliver Tonnhofer <olt@bogosoft.com>
Cc: netbsd-bugs@netbsd.org, gnats-bugs@gnats.netbsd.org, david@l8s.co.uk
Subject: Re: install/17904: sysinst should change /etc/ttys when serial bootblock is selected
Date: Sun, 11 Aug 2002 11:09:58 +1000
On Sat, Aug 10, 2002 at 09:24:08PM +0200, Oliver Tonnhofer wrote:
> >Is that the 'correct' - or even a reasonable fix?
> >It is certainly a dangerous edit!
>
> I wrote "something like the following". If I select serial bootblock I
> want to be able to login via serial console. The code was just the way
> I made this possible. It worked for me, but I think that someone else
> will find a better way for solving this 'problem', surley.
This is on i386, yes?
I've been rigorously testing installations of 1.6 on i386, and I was
able to use the serial console just fine without any of the changes
you suggest (I was using 'consdev com0', however, at the bootblock).
> >The differnce between 'Pc' and 'std.9600' is trivial (8 bit data).
> >And any term type difference won't stop you logging in.
>
> Ok. But console or tty00 should set to 'on' when serial bootblock is
> selected, IMHO.
Does it need to be, or is it just a preference?
grant.
From: Frederick Bruckman <fredb@immanent.net>
To: grant beattie <grant@netbsd.org>
Cc: Oliver Tonnhofer <olt@bogosoft.com>, <david@l8s.co.uk>,
<netbsd-bugs@netbsd.org>, <gnats-bugs@gnats.netbsd.org>
Subject: Re: install/17904: sysinst should change /etc/ttys when serial
bootblock is selected
Date: Sat, 10 Aug 2002 20:19:41 -0500 (CDT)
On 11 Aug 2002, grant beattie wrote:
> I've been rigorously testing installations of 1.6 on i386, and I was
> able to use the serial console just fine without any of the changes
> you suggest (I was using 'consdev com0', however, at the bootblock).
>
> > >The differnce between 'Pc' and 'std.9600' is trivial (8 bit data).
> > >And any term type difference won't stop you logging in.
> >
> > Ok. But console or tty00 should set to 'on' when serial bootblock is
> > selected, IMHO.
>
> Does it need to be, or is it just a preference?
Without the console or tty0 on, you fail to get a getty when you boot
multi-user. Though the work-around is simple enough -- boot
single-user and edit "/etc/ttys" -- the default in the head (and 1.6!)
has been to enable a getty on "console" for quite some time, it just
needs to go into NetBSD 1.5.4, and this issue is resolved forever and
for all time (on i386).
Frederick
State-Changed-From-To: analyzed->closed
State-Changed-By: itojun
State-Changed-When: Tue Sep 3 19:47:55 PDT 2002
State-Changed-Why:
pulled up to 1.5
>Unformatted:
(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.