Subject: Re: pc532 console problems
To: NetBSD/pc532 mailing list <port-pc532@NetBSD.ORG>
From: 51482) <etorwi@etn.ericsson.se (Raymond A. Wiker>
List: port-pc532
Date: 03/28/1995 15:21:33
	The console problems reported earlier is caused by different
settings in the (autoboot) monitor and the Unix kernel. Some
experimentation has shown that the monitor uses 8 bits data, 1 stop
bit and no parity, while the kernel uses 7 bits data, 2 stop bits and
even parity. This can be fixed by changing the value for TTYDEF_CFLAG,
in a similar manner to the way that TTYDEF_SPEED is changed. My
suggestion is to add the following to
.../src/sys/arch/pc532/dev/scnreg.h: 

#ifdef PC532MONCOMPAT
#undef TTYDEF_CFLAG
#define TTYDEF_CFLAG (CREAD | CS8 | HUPCL)
#endif

	(The previous value for TTYDEF_CFLAG was
CREAD|CS7|PARENB|HUPCL, which gives seven data bits and even parity.)

	Next, add the line
options		"PC532MONCOMPAT"
	to the kernel config file, configure, make depend and make,
and install the new kernel as /netbsd.new or something.

	Then, add the following lines to /etc/gettytab:

np.9600|9600-baud-np:\
	:sp#9600:np:
np.19200|19200-baud-np:\
	:sp#19200:np:

	(The np flag specifies that there should be no parity on the
data output on the tty. The ap flag, which is default, specifies that
parity is discarded from input.)

	/etc/ttys must also be modified; replace std.9600 and
std.19200 with np.9600 or np.19200.

	Reboot with the new kernel.

	//Raymond.