Subject: port-sparc/7409: SS2, PROM version 2.2 serial console problems
To: None <>
From: Brad Spencer <>
List: netbsd-bugs
Date: 04/17/1999 07:50:54
>Number:         7409
>Category:       port-sparc
>Synopsis:       SS2, PROM version 2.2 serial console problems
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc-maintainer (NetBSD/sparc Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 17 07:50:01 1999
>Originator:     Brad Spencer
	Sitting at home
>Release:        NetBSD-1.4_ALPHA supped around 4/14/1999
System: NetBSD 1.4_ALPHA NetBSD 1.4_ALPHA (VALINOR) #2: Fri Apr 16 23:45:35 EDT 1999 sparc


When updating my Sparc 2, which uses a serial console, with PROM
version 2.2 from NetBSD 1.3E to NetBSD 1.4_ALPHA, the new kernel would
not boot.  It complained with the following lines:

ok boot netbsd.new2 -s
Boot device: /sbus/esp@0,800000/sd@3,0   File and args: netbsd.new2 -s

Boot a new kernel on a Sparc 2 with older PROMs.


Well...  I don't have a proper fix, however, the PROM does have a
couple of "variables" that are set to ttya.  If possible, falling back
to those might be a good thing.

[BTW - this particular machine appears to *not* fall back to the
serial console when the keyboard is removed.  When I fist installed
this machine, I had to borrow a 13W3<->HD-15 video adaptor so I could
set the eeprom to use ttya as the console input and output device]

>> NetBSD BOOT [$Revision: 1.4 $]
Booting netbsd.new2 @ 0x4000
OBP version 2, revision 2.2 (plugin rev 2)
Warning: unparseable stdin-path property
Warning: unparseable stdout-path property
cninit: invalid inSource=0xffffffff
Type  'go' to resume

The messages are from /sys/arch/sparc/dev/zs.c.  In particular, the

	int io;



failed to figure out anything from the properties 'stdin-path' and
'stdout-path'.  Adding some more debugging would seem to indicate that
these properties do not exist or are set to nothing.

Wiring down the above function to return PROMDEV_TTYA allowed things
to proceed along.

Prior to updating my Sparc 2, I updated my IPX which is basically the
same in terms of OS and the like.  Except that it has PROM version
2.3.  There was not a single complaint.