Subject: HP-IB voodoo
To: None <port-hp300@NetBSD.ORG>
From: Michael Wolfson <mw34@cornell.edu>
List: port-hp300
Date: 10/06/1996 10:32:00
Hi all!

I've been having a problem with my HP-IB bus ever since I hooked up my
system last November.  The symptoms are as follows:

Sometimes I just can't get my system to recognize (during autoconf) that a
drive is available.  I'm quite certain that the drives work (this happens
with several) and sometimes by changing the ID number it is recognized
immediately at the next reboot.

I know these drives work, since they are fine under HP-UX (yuk) and if they
have boot blocks they show up when searching for a system at boot-time.
Also, it can't be the wiring, since ofttimes the non-recognized drive is in
the *middle* of the chain and drives after it work fine.

As a consequence, when I try to do anything with the drive, I get a "Device
not configured" message.

On a related note, I have never gotten NetBSD to recognize my 9145 tape
drive (which works fine in HP-UX and I can boot off it).  I had hoped the
upgrade to NetBSD 1.2 would fix this problem, but apparently not.

My current system is composed of the binary tarballs of NetBSD 1.2
(fatmac) ~> uname -a
NetBSD fatmac 1.2 NetBSD 1.2 (GENERIC) #7: Sun Sep 15 16:15:20 PDT 1996
thor
pej@basalt:/u3/NetBSD-1.2/src/sys/arch/hp300/compile/GENERIC hp300


My HP-IB chain is as follows (it's not longer than the 18 meter(?) limit):
System Interface Board
7937H, ID 0
7937H, ID 2
7959B, ID 1
9145 , ID 3
7937H, ID 4
7937H, ID 5	(I usually keep this one turned off, since it's really noisy)

Also another problem I've been having is that my system cannot boot from
any device other than ID 0.  When I specify (e.g.) rd9:/netbsd -a, it
starts to boot from the drive with ID 1, and then it says:

Oct  3 17:39:16 fatmac /netbsd: hpib1 at scode14 ipl 4: 98625A or 98625B
fast HP
-IB
Oct  3 17:39:16 fatmac /netbsd: rd0 at hpib1 slave 0: 7937H
Oct  3 17:39:16 fatmac /netbsd: rd0: 698 cylinders, 13 heads, 1116102
blocks, 51
2 bytes/block
Oct  3 17:39:16 fatmac /netbsd: rd1 at hpib1 slave 1: 7959B
Oct  3 17:39:16 fatmac /netbsd: rd1: 1572 cylinders, 9 heads, 594216
blocks, 512
 bytes/block
Oct  3 17:39:16 fatmac /netbsd: rd2 at hpib1 slave 2: 7937H
Oct  3 17:39:16 fatmac /netbsd: rd2: 698 cylinders, 13 heads, 1116102
blocks, 51
2 bytes/block
Oct  3 17:39:17 fatmac /netbsd: rd3 at hpib1 slave 4: 7937H
Oct  3 17:39:17 fatmac /netbsd: rd3: 698 cylinders, 13 heads, 1116102
blocks, 51
2 bytes/block
Oct  3 17:39:17 fatmac /netbsd: le0 at scode21 ipl 5: address 08:00:09:05:05:b9
Oct  3 17:39:17 fatmac /netbsd: le0: 8 receive buffers, 2 transmit buffers
Oct  3 17:39:17 fatmac /netbsd: Changing root device to rd0a


Any help would be appreciated.  Let me know if/how I can provide more
information.

Thanks in advance,
  -- MW