Subject: Re: sparc kbd patch for headless machines (PR port-sparc/4208)
To: None <tv@pobox.com>
From: Gordon W. Ross <gwr@mc.com>
List: port-sparc
Date: 10/03/1997 19:46:09
> Date: Fri, 3 Oct 1997 12:48:31 -0400 (EDT)
> From: Todd Vierling <tv@pobox.com>
[ Make the sparc use sys/dev/ic/z8530* etc. ]
> Actually finished doing this for sparc already--I dunno if my new post has
> reached you yet, but there's a full blown patch in place of the prliminary
> one on the ftp site:
>
> ftp://ftp.duh.org/pub/NetBSD-hacks/sparc/kbdmsfb.diffs
>
> I don't actually see anything relevant to change in sys/dev/ic/z8530*,
> unless sparc doesn't yet use the MI version of these files [...]
Right, the sparc does not use the stuff in sys/dev/ic at present.
Anyway, I decided to take a stab at porting the above code to the
sparc. The results can be found at:
ftp.netbsd.org:/pub/NetBSD/arch/sparc/newzs/newzs.tgz
The that is a gzipped tar of the following files:
(relative to /usr/src/sys/arch/sparc)
dev/kd.c
dev/cons.h
dev/zs_kgdb.c
include/z8530var.h
conf/GENERIC
conf/files.sparc
dev/zs.c
include/conf.h
include/kbd.h
include/kbio.h
sparc/conf.c
It builds for me, and makes it throuth autoconfig, but then
the first attempt to read the console appears to hang...
If anyone would like to try debugging it, I'd be pleased.
Gordon
[ Here is what the autoconfig will look like. ]
console is ttya
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 1.2G (GENERIC) #10: Fri Oct 3 18:55:19 EDT 1997
gwr@bach2:/play/gwr/netbsd/build/sparc/GENERIC
real mem = 33161216
avail mem = 28684288
using 404 buffers containing 1654784 bytes of memory
bootpath: [...]
mainbus0 (root): SUNW,SPARCclassic
cpu0 at mainbus0: TMS390S10 @ 50 MHz, on-chip FPU
cpu0: physical4K instruction (32 b/l), 2K data (16 b/l): cache enabled
obio0 at mainbus0
clock0 at obio0 addr 0x71200000: mk48t08 (eeprom)
timer0 at obio0 addr 0x71d00000 delay constant 23
zs0 at obio0 addr 0x71100000 pri 12, softpri 6
zstty1 at zs0 channel 0 (console)
zstty0 at zs0 channel 1
zs1 at obio0 addr 0x71000000 pri 12, softpri 6
ms0 at zs1 channel 0
kbd0 at zs1 channel 1
[slavioconfig at obio0] addr 0x71800000 not configured
auxreg0 at obio0 addr 0x71900000