Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2005 21:57:13 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        current@FreeBSD.org
Subject:   Re: serial ttys broken?
Message-ID:  <20050920185713.GA3316@ip.net.ua>
In-Reply-To: <6136.1127217196@critter.freebsd.dk>
References:  <20050920110023.GA468@ip.net.ua> <6136.1127217196@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help

--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

JFYI, everyone I've asked (several people now) can easily
reproduce this: when serial console is NOT configured,
getty doesn't work on ttyd0, but it appears to work on
cuad0!  The same holds true for uart(4) instead of sio(4).
Odd.

Also, and I think this is related, resetting console
via TIOCCONS(0) on /dev/console appears to be broken
when serial console is configured.

In my setup, i.e. when booted WITHOUT serial console
configured (no -h in boot2, no console=3Dcomconsole in
loader, etc.) but with serial port serving as a
potential console (i.e., hint...flags=3D0x10), doing the
following blocks:

: hammer# conscontrol=20
: Configured: consolectl
:  Available: ttyd0,consolectl
:     Muting: off
: hammer# conscontrol add ttyd0
: Configured: ttyd0,consolectl
:  Available: ttyd0,consolectl
:     Muting: off
: hammer# conscontrol set /dev/ttyv1
: Configured: ttyd0,consolectl
:  Available: ttyd0,consolectl
:     Muting: off
: hammer# conscontrol unset
: load: 0.03  cmd: conscontrol 1397 [ttydcd] 0.00u 0.00s 0% 660k
: load: 0.03  cmd: conscontrol 1397 [ttydcd] 0.00u 0.00s 0% 660k
: load: 0.03  cmd: conscontrol 1397 [ttydcd] 0.00u 0.00s 0% 660k
: ^C

Removing ttyd0 from console list leads to a success with
TIOCCONS(0) on /dev/console:

: hammer# conscontrol delete ttyd0
: Configured: consolectl
:  Available: ttyd0,consolectl
:     Muting: off
: hammer# conscontrol unset
: Configured: consolectl
:  Available: ttyd0,consolectl
:     Muting: off

> I won't have time to look at it for the next several weeks
> (unless it happens on my machine and forces me to handle it).
>=20
I'm not urging you, but not having getty working over serial
is a bit annoying.  And I'm pretty sure you can easily
reproduce this on any of your machines:

1.  Boot with GENERIC that has sio0 as potential console
    but without serial console.
2.  Try to make getty over ttyd0 working, as in default
    /etc/ttys file.

Can you at least please try and confirm it works for you,
or not?


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--0F1p//8PRICkK4MW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFDMFuJqRfpzJluFF4RAnvKAJ9EVXgRI0c+opQyd7opNKpX4rSvbwCdHip4
aGsLb6x6fsIwMqSnLi6uInI=
=f77O
-----END PGP SIGNATURE-----

--0F1p//8PRICkK4MW--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050920185713.GA3316>