Subject: kern/1661: kernel config should be able to specify 8 bit console
To: None <gnats-bugs@NetBSD.ORG>
From: None <abs@mono.org>
List: netbsd-bugs
Date: 10/20/1995 19:13:22
>Number: 1661
>Category: kern
>Synopsis: kernel config should be able to specify 8 bit console
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Oct 20 14:35:01 1995
>Last-Modified:
>Originator: David Brownlee
>Organization:
Monochrome
>Release: Sat Sep 30 1995
>Environment:
sparc, 1.0A, current
System: NetBSD gluon.mono.org 1.0A NetBSD 1.0A (_SUN4C_) #1: monoadm@gluon.mono.org:/mono/netbsd/src/sys/arch/sparc/compile/_SUN4C_ sparc
>Description:
Currently the only way to ensure an 8 bit serial console is to
patch /sys/sys/ttydefaults.h with the following.
--- sys/sys/ttydefaults.h.orig Wed Jun 29 11:33:17 1994
+++ sys/sys/ttydefaults.h Wed Sep 20 13:29:08 1995
@@ -52,7 +52,7 @@
#define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY)
#define TTYDEF_OFLAG (OPOST | ONLCR | OXTABS)
#define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
-#define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL)
+#define TTYDEF_CFLAG (CREAD | CS8 | HUPCL)
#define TTYDEF_SPEED (B9600)
>How-To-Repeat:
Run netbsd on a terminal which needs 8 bits & rejects characters with
parity, and watch it get blown away between starting init and going
multi user (assuming you have set /etc/ttys correctly :)
>Fix:
One of (In order of reducing niceness :)
* Make the default console 8 bit (who needs a serial console
with 7 bits nowdays anyway!?!)
* Have an option for 'SERIAL_CONSOLE_8BIT' in the config file
(toggles the value of TTYDEF_CFLAG in /sys/sys/ttydefaults.h.
* Make the kernal (or init) read /etc/ttys and parse the
'console' line (Uck - Not _more_ in the kernel please :)
>Audit-Trail:
>Unformatted: