[pups] 2.11BSD boot hangs.

Tom Ivar Helbekkmo tih at Hamartun.Priv.NO
Wed Feb 28 04:27:24 AEST 2001


"Steven M. Schultz" <sms at moe.2bsd.com> writes:

> > BTW: What serial parameters does 2.11BSD use? The first time I booted
> > UNIX I got garbage after "user mem  = 307200". I seted the vt220 to 7e1
> > and this worked, but is it correct?
> 
> 	Yes, 7e1 is correct - a legacy setting from eons ago.

This bothered me enough, a handful years ago, to change things a bit:

For getty/main.c:

*** main.c.ORIG	Thu Dec 29 17:22:13 1994
--- main.c	Thu Dec 29 17:21:28 1994
***************
*** 383,391 ****
--- 383,393 ----
  	char c;
  
  	c = cc;
+ #ifdef notdef /* hack to get rid of parity in getty */
  	c |= partab[c&0177] & 0200;
  	if (OP)
  		c ^= 0200;
+ #endif /* parity hack */
  	if (!UB) {
  		outbuf[obufcnt++] = c;
  		if (obufcnt >= OBUFSIZ)

For pdp/cons.c:

*** cons.c.ORIG	Sun May 11 11:21:01 1997
--- cons.c	Sun May 11 11:26:05 1997
***************
*** 62,68 ****
  	if ((tp->t_state&TS_ISOPEN) == 0) {
  		ttychars(tp);
  		tp->t_state = TS_ISOPEN|TS_CARR_ON;
! 		tp->t_flags = EVENP|ECHO|XTABS|CRMOD;
  	}
  	if (tp->t_state&TS_XCLUDE && u.u_uid != 0)
  		return (EBUSY);
--- 62,68 ----
  	if ((tp->t_state&TS_ISOPEN) == 0) {
  		ttychars(tp);
  		tp->t_state = TS_ISOPEN|TS_CARR_ON;
! 		tp->t_flags = ANYP|ECHO|XTABS|CRMOD;
  	}
  	if (tp->t_state&TS_XCLUDE && u.u_uid != 0)
  		return (EBUSY);

For sys/tty.c:

*** tty.c.ORIG	Sun May 11 11:21:40 1997
--- tty.c	Sun May 11 11:27:40 1997
***************
*** 48,53 ****
--- 48,54 ----
   */
  
  char partab[] = {
+ #ifdef notdef /* even parity setup */
  	0001,0201,0201,0001,0201,0001,0001,0201,
  	0202,0004,0003,0201,0005,0206,0201,0001,
  	0201,0001,0001,0201,0001,0201,0201,0001,
***************
*** 64,69 ****
--- 65,88 ----
  	0200,0000,0000,0200,0000,0200,0200,0000,
  	0200,0000,0000,0200,0000,0200,0200,0000,
  	0000,0200,0200,0000,0200,0000,0000,0201,
+ #else /* no parity setup follows */
+ 	0001,0001,0001,0001,0001,0001,0001,0001,
+ 	0002,0004,0003,0001,0005,0006,0001,0001,
+ 	0001,0001,0001,0001,0001,0001,0001,0001,
+ 	0001,0001,0001,0001,0001,0001,0001,0001,
+ 	0000,0000,0000,0000,0000,0000,0000,0000,
+ 	0000,0000,0000,0000,0000,0000,0000,0000,
+ 	0000,0000,0000,0000,0000,0000,0000,0000,
+ 	0000,0000,0000,0000,0000,0000,0000,0000,
+ 	0000,0000,0000,0000,0000,0000,0000,0000,
+ 	0000,0000,0000,0000,0000,0000,0000,0000,
+ 	0000,0000,0000,0000,0000,0000,0000,0000,
+ 	0000,0000,0000,0000,0000,0000,0000,0000,
+ 	0000,0000,0000,0000,0000,0000,0000,0000,
+ 	0000,0000,0000,0000,0000,0000,0000,0000,
+ 	0000,0000,0000,0000,0000,0000,0000,0000,
+ 	0000,0000,0000,0000,0000,0000,0000,0001,
+ #endif /* end of parity selection stuff */
  
  	/*
  	 * 7 bit ascii ends with the last character above,

Hmm.  It's been a while.  I should fire up the old /83 and get all the
latest patches from Steven applied, while it's still winter, and I can
run it and the VAX without overheating my machine room.  :-)

-tih
-- 
Popularity is the hallmark of mediocrity.  --Niles Crane, "Frasier"


Received: (from major at localhost)
	by minnie.cs.adfa.edu.au (8.9.3/8.9.3) id HAA62202
	for pups-liszt; Wed, 28 Feb 2001 07:12:45 +1100 (EST)
	(envelope-from owner-pups at minnie.cs.adfa.edu.au)


More information about the TUHS mailing list