Subject: Re: Apollo keyboard driver for hp9000/4xx series - feedback
To: mike smith <miff@spam.frisbee.net.au>
From: Michael Joosten <joost@c-lab.de>
List: port-hp300
Date: 04/05/1997 00:09:19
Well, I just started to compile a new kernel (my first on a hp400..)

Unfortunately, the beast panics on me. But, at least, the frodo chip is
recognized:
NetBSD 1.2D (TEST) #0: Fri Apr  4 23:09:16 MEST 1997
    root@hp400:/usr/src/sys/arch/hp300/compile/TEST
HP9000/345/375 (50MHz MC68030 CPU+MMU, 50MHz MC68882 FPU, 32K physical-address
cache)
delay constant for this cpu: 40
real mem  = 33542144
avail mem = 27156480
using 818 buffers containing 3350528 bytes of memory
Parity detection enabled
dma0: 98620C, 2 channels, 32 bit
mainbus0 (root)
intio0 at mainbus0
frodo0 at intio0 addr 0x81c000
apci0 at frodo0,1: 8250-like UART
apci1: disabled due to conflict with dca0
apci2 at frodo0,3: 8250-like UART
apkbd0 at frodo0,0: Apollo keyboard
dio0 at mainbus0
dca0 at dio0 scode 9 ipl 5: console, working fifo
device id = 0x6 secid = 0x0 at dio0 scode 12 not configured
oscsi0 at dio0 scode 14 ipl 4: 32 bit dma, async, scsi id 7
sd0 at oscsi0 targ 1 lun 0: <MAXTOR, LXT-200S, 2.11>
sd0: 1224 cylinders, 7 heads, 392056 blocks, 512 bytes/block
le0 at dio0 scode 21 ipl 5: address 08:00:09:10:21:b4
le0: 8 receive buffers, 2 transmit buffers
interrupt levels: bio = 4, net = 5, tty = 5
boot device: sd0
root on sd0a swap on sd0b
trap type 2, code = 0x0, v = 0x0
kernel program counter = 0x1ffe
kernel: Illegal instruction trap
pid = 0, pc = 00001FFE, ps = 2704, sfc = 0001, dfc = 0001
Registers:
             0        1        2        3        4        5        6        7
dreg: 00003911 0000000C 00000000 00000000 00000000 00000000 00000402 00000000
areg: 000A3030 0010C000 0010C040 000B9B7C 0201FC00 FE002000 0010DE6C FFEFFFFC

Kernel stack (000A2F64):
0A2F64: 
panic: Illegal instruction
Stopped at      _Debugger+0x6:  unlk    a6
db> t
_Debugger(2704,a2fa0,96cd8,9693e,0) + 6
db> n

Surprising, isn't it? No stack to trace... I'll recompile a different kernel
this night and see if that problems persists. I'm running the last snapshot 
from Jason with a sys.tar.gz from March 31. But I did not bother to upgrade the
other source stuff. Interestingly, I had to recompile 'config', as the one in
the snapshot complained about syntax error inf ....../conf/files:7:.

I'm now recompiling, as I forgot to include a options HP375, as I've a 400t
here. Anyways:
frodo0 at intio0 addr 0x81c000
apci0 at frodo0,1: 8250-like UART
apci1: disabled due to conflict with dca0
apci2 at frodo0,3: 8250-like UART
apkbd0 at frodo0,0: Apollo keyboard

It was discovered, but I think the order of apcis is worng by one. Either there
are four of them, incl. keyboard, or three plus keyboard. But then, the
conflicting port is the first one, not the second one, so apci0 should be
disabled. Of course only true if apkbd0 is the first SIO, apci0 the second and
so on in the Frodo chip.

And the compiler grinds away... let's see what happens tomorrow (good morning,
mike ! 8-)