Subject: 1/1 Kernel doesn't like my keyboard anymore.
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Mike Long <mike.long@analog.com>
List: current-users
Date: 01/13/1994 03:28:10
I'm having problems with a kernel made with the sources from the 1/1
sys.tar.gz (and the swap_pager.c patch).  It's probing my keyboard
improperly during autoconfiguration, so that by the time I get to a
login: prompt the system won't respond to the keyboard.

I originally ran into this problem with FreeBSD-1.0EPSILON, and I can
get around it the same way I did then: I have to toggle a key on the
keyboard (I use NumLock) during the autoconfiguration phase of system
boot.  I reboot my machine often, though, so having to pound a key
during the process is a real pain in the butt; this problem was one of
the main reasons I switched to NetBSD in the first place.  One thing
I've noticed is that the NumLock LED toggles in response to my
keypresses before the beginning of autoconfiguration (probe of pc0)
and after the biomask/ttymask/netmask line is printed, but not in
between.

The timestamp in /sys/arch/i386/isa/pccons.c is 12/20/93; I'm
wondering what change was made between 12/4 and 12/20 that is causing
my problems.  Or should I look elsewhere?

My hardware is a Gateway 2000 DX66V with the non-green Micronics JX-30
motherboard and 16 MB of RAM.  I've included below my config file and
the output of dmesg from both the old kernel and the new kernel.

----------------------------------------------------------------------
#
# AZATHOTH -- tailored system, boot from wd0 or fd0
#

machine		"i386"
cpu		"I486_CPU"
ident		AZATHOTH
timezone	5
maxusers	10
maxfdescs	2048
options		SWAPPAGER,VNODEPAGER,DEVPAGER
options		KTRACE
options		FIFO
options		INET
options		"COMPAT_43"
options		"TCP_COMPAT_42"
options		XSERVER,UCONSOLE
options		MFS
options		MSDOSFS
options		KERNFS
options		"COMPAT_NOMID"
options		"MACHINE_NONCONTIG"

config		netbsd	root on wd0 swap on wd0

controller	isa0
controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0

device		pc0	at isa? port "IO_KBD" tty irq 1 vector pcrint
device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr
device		com0	at isa? port "IO_COM1" tty irq 4 vector comintr
device		com1	at isa? port "IO_COM2" tty irq 3 vector comintr
device		com2	at isa? port "IO_COM3" tty irq 9 vector comintr

device		lpa0	at isa? port "IO_LPT3" tty

pseudo-device	log
pseudo-device	loop
pseudo-device	pty	16
pseudo-device	sl	1
pseudo-device	speaker
----------------------------------------------------------------------

----------------------------------------------------------------------
NetBSD 0.9a (AZATHOTH) #6: Sat Dec 25 22:20:16 EST 1993
  root@azathoth.boston.ma.us:/usr/src/sys/arch/i386/compile/AZATHOTH
CPU: i486DX (486-class CPU)
real mem  = 16773120
avail mem = 14536704
using 230 buffers containing 942080 bytes of memory
pc0 at 0x60-0x6f irq 1 on isa
pc0: color
com0 at 0x3f8-0x3ff irq 4 on isa
com1 at 0x2f8-0x2ff irq 3 on isa
com2 at 0x3e8-0x3ef irq 9 on isa
lpa0 at 0x3bc-0x3c3 on isa
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wd0 at wdc0 targ 0: 405MB 989 cyl, 15 head, 56 sec <WDC AC2420H>
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fd0 at fdc0 targ 0: 1.44MB 80 cyl, 2 head, 18 sec
npx0 at 0xf0-0xff on isa
npx0: using exception 16
biomask 4040 ttymask 21a netmask 8000 impmask 21a
wdc0: extra interrupt
syncing disks... done
----------------------------------------------------------------------
NetBSD 0.9a (AZATHOTH) #1: Thu Jan 13 02:11:43 EST 1994
  root@azathoth.boston.ma.us:/usr/src/sys/arch/i386/compile/AZATHOTH
CPU: i486DX (486-class CPU)
real mem  = 16384000
avail mem = 14708736
using 200 buffers containing 819200 bytes of memory
pc0 at 0x60-0x6f irq 1 on isa
pc0: color
com0 at 0x3f8-0x3ff irq 4 on isa
com1 at 0x2f8-0x2ff irq 3 on isa
com2 at 0x3e8-0x3ef irq 9 on isa
lpa0 at 0x3bc-0x3c3 on isa
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wd0 at wdc0 targ 0: 405MB 989 cyl, 15 head, 56 sec <WDC AC2420H>
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fd0 at fdc0 targ 0: 1.44MB 80 cyl, 2 head, 18 sec
npx0 at 0xf0-0xff on isa
npx0: using exception 16
biomask 4040 ttymask 21a netmask 0
wdc0: extra interrupt
----------------------------------------------------------------------

A final note: the "wdc0: extra interrupt" message always appears, but
has never caused me any problems before.
-- 
Mike Long                                         Mike.Long@Analog.com
VLSI Design Engineer                              voice: (617)461-4030
Analog Devices, SPD Div.                            FAX: (617)461-3010
Norwood, MA 02062                            *this = !opinion(Analog);

------------------------------------------------------------------------------