Subject: port-next68k/7488: nextstation color doesn't fall back to serial console
To: None <gnats-bugs@gnats.netbsd.org>
From: None <deberg@MIT.EDU>
List: netbsd-bugs
Date: 04/28/1999 13:23:42
>Number:         7488
>Category:       port-next68k
>Synopsis:       color machines should use serial console, but don't.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-next68k-maintainer (NetBSD/next68k Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 28 13:20:01 1999
>Last-Modified:
>Originator:     matt debergalis
>Organization:
matt debergalis <deberg@mit.edu> KB1CTH
finger deberg@ai.mit.edu for PGP key
>Release:        1.4_BETA
>Environment:
System: NetBSD slab.deberg.org 1.4_BETA NetBSD 1.4_BETA (SLAB) #49: Thu Apr 22 08:55:57 EDT 1999 deberg@sunrise.ne.mediaone.net:/src/netbsd/src/sys/arch/next68k/compile/SLAB next68k


>Description:
	with nextkbd/nextdisplay support compiled in, nextstation color machines
try to use the direct console, which isn't currently supported.  they should 
fall back to the serial console.
>How-To-Repeat:
	boot a color machine with a generic kernel, and watch nothing happen.
>Fix:
Index: nextcons.c
===================================================================
RCS file: /src/cvsroot-netbsd/netbsd/src/sys/arch/next68k/dev/nextcons.c,v
retrieving revision 1.1.1.1
diff -c -c -r1.1.1.1 nextcons.c
*** nextcons.c	1999/03/26 17:38:07	1.1.1.1
--- nextcons.c	1999/04/27 15:01:58
***************
*** 53,58 ****
--- 53,60 ----
  #include <next68k/dev/nextdisplayvar.h>
  #include <next68k/dev/nextkbdvar.h>
  
+ #include <next68k/next68k/nextrom.h>
+ 
  void nextcnprobe __P((struct consdev *));
  void nextcninit __P((struct consdev *));
  int nextcngetc __P((dev_t));
***************
*** 63,69 ****
  void
  nextcnprobe(struct consdev *cp)
  {
! 	cp->cn_pri = CN_INTERNAL;
  	cp->cn_dev = NODEV;
  }
  
--- 65,77 ----
  void
  nextcnprobe(struct consdev *cp)
  {
! 
! 	if ((rom_machine_type == NeXT_WARP9)
! 	    || (rom_machine_type == NeXT_X15))
! 		cp->cn_pri = CN_INTERNAL;
! 	else 
! 		cp->cn_pri = CN_DEAD;
! 
  	cp->cn_dev = NODEV;
  }
>Audit-Trail:
>Unformatted: