Subject: Re: Serial console on 425e?
To: None <port-hp300@netbsd.org>
From: Andreas Voegele <andreas.voegele@nikocity.de>
List: port-hp300
Date: 09/11/1999 19:53:02
    > However, I can't get any characters _to_ the box once the kernel
    > is running (input works fine with the bootblocks).  I've tried
    > on and off to find the reason but haven't been sucessful.

Is it possible to build a kernel that outputs to the console but accepts
input from the HIL keyboard?

After booting the kernel over the network and mounting the miniroot
filesystem from the hard disk the kernel crashes, when I'm pressing a
key on my HIL keyboard:

Terminal type? [hp300h] trap: bad kernel read access at 0x4
trap type 8, code = 0x505, v = 0x4
kernel program counter = 0xd73cc
kernel: MMU fault trap
pid = -1, pc = 000D73CC, ps = 2100, sfc = 1, dfc = 1

I'm using miniroot-14.fs.  The kernel outputs the following messages:

NetBSD 1.4I (DEBUG) #5: Fri Aug 13 23:10:47 MEST 1999
    bad@sweet-and-full-of-grace:/u/0/src/sys/arch/hp300/compile/DEBUG
HP 9000/425e (25 MHz MC68040 CPU+MMU+FPU, 4k on-chip physical I/D caches)
cpu: delay divisor 30, mmuid 9
total memory = 16372 KB
avail memory = 12400 KB
using 230 buffers containing 920 KB of memory
Parity detection enabled
hilconfig: unknown keyboard type 0xf, using default
hil1: US ASCII keyboard
mainbus0 (root)
intio0 at mainbus0
frodo0 at intio0 addr 0x41c000
dnkbd at frodo0 offset 0x0 not configured
apci0 at frodo0 offset 0x20: console, no fifo
apci0 at frodo0 offset 0x40: no fifo
apci0 at frodo0 offset 0x60: no fifo
dio0 at mainbus0: 98620C, 2 channels, 32 bit DMA
WARNING: select code size unknown for id = 0x13 secid = 0x0
device id = 0x13 secid = 0x0 at dio0 scode 8 not configured
internal parallel at dio0 scode 12 not configured
oscsi0 at dio0 scode 14 ipl 4: 32 bit dma, async, scsi id 7
sd0 at oscsi0 targ 0 lun 0: <DEC, DSP3053LS, X442> (SCSI-2)
sd0: 3117 cylinders, 4 heads, 1046532 blocks, 512 bytes/block
sd1 at oscsi0 targ 1 lun 0: <IBM, DPES-31080, S31Q> (SCSI-2)
sd1: 4903 cylinders, 4 heads, 2118144 blocks, 512 bytes/block
le0 at dio0 scode 21 ipl 5: address XX:XX:XX:XX:XX:XX
le0: 8 receive buffers, 2 transmit buffers
psl: bio = 0x2400, net = 0x2500, tty = 0x2500, imp = 0x2500
interrupt levels: bio = 4, net = 5, tty = 5
boot device: le0
[...]
root device (default le0): sd0b
dump device (default sd0b): none
file system (default generic): ffs
root on sd0b
WARNING: bad date in battery clock
init: copying out path `/sbin/init' 11
erase ^H, werase ^W, kill ^U, intr ^C
Terminal type? [hp300h]

At startup my 425e outputs the following text:

BOOTROM Rev. 3.0 11 APR 91
MD11 REV 3.0 1991/03/25.17:03:08
Bit Mapped Video
MC68040 Processor
Configuration EEPROM
Utility Chip at 41
HP-HIL.Keyboard
DMA-C0
RAM 16776874 Bytes
Digital Audio at 8
HP PARALLEL at 12
HP98658 (SCSI S 32) at 14
HP98643 (LAN) at 21, THIN, XXXXXXXXXXXX
EVRX at SGC slot 0 (Console)