Subject: DAT drive and 2940UW
To: None <port-i386@NetBSD.ORG>
From: Brian C. Grayson <bgrayson@ece.utexas.edu>
List: port-i386
Date: 07/02/1998 11:47:59
  I'm having a hard time getting NetBSD-current to recognize a
SCSI DAT drive (Archive) that we have.  On bootup, the kernel
prints messages like:
ahc0: board is not responding
cmd fail
probe(ahc0:6:0): timed out in datain phase, SCSISIGI == 0x44
probe(ahc0:6:0): asserted ATN - device reset in message buffer

  Eventually, it thinks the tape drive is a 1814G (!) drive with a
very bizarre geometry.  It then falsely finds the same thing at
ID 8 and 9.  After several minutes it finally finishes booting.
Of course, since it turned the tape drive into a 1814GB sd1, and
made a fictitious sd2 and sd3 at 8 and 9, the tape drive (st0) is
not accessible.

  Once I went into the BIOS and set the maximum transfer rate to
10MHz instead of 20MHz, the tape drive was recognized (at 5MHz)
and everything is fine.  Shouldn't NetBSD be doing that
automatically?  FWIW, under Linux it ``just works.''

  The output from the successful boot is included below.  Due to
all the misprobes, the dmesg from the bad boots overflows the
dmesg buffer, and nothing useful is left over.  I'll try to
config a kernel with a larger mesg buf RSN.

Jul  2 04:28:28 latte syslogd: restart
Jul  2 04:28:29 latte /netbsd: NetBSD 1.3F (latte) #4: Thu Jul  2 04:26:35 PDT 1998
Jul  2 04:28:29 latte /netbsd:     root@latte:/usr/src/sys/arch/i386/compile/latte
Jul  2 04:28:29 latte /netbsd: cpu0: family 6 model 3 step 3
Jul  2 04:28:29 latte /netbsd: cpu0: Intel Pentium II (686-class)
Jul  2 04:28:29 latte /netbsd: real mem  = 268042240
Jul  2 04:28:29 latte /netbsd: avail mem = 248000512
Jul  2 04:28:29 latte /netbsd: using 2822 buffers containing 13504512 bytes of memory
Jul  2 04:28:29 latte /netbsd: mainbus0 (root)
Jul  2 04:28:29 latte /netbsd: pci0 at mainbus0 bus 0: configuration mode 1
Jul  2 04:28:29 latte /netbsd: pci0: i/o enabled, memory enabled
Jul  2 04:28:30 latte /netbsd: pchb0 at pci0 dev 0 function 0
Jul  2 04:28:30 latte /netbsd: pchb0: Intel 82441FX PCI and Memory Controller (PMC) (rev. 0x02)
Jul  2 04:28:30 latte /netbsd: pcib0 at pci0 dev 13 function 0
Jul  2 04:28:30 latte /netbsd: pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
Jul  2 04:28:30 latte /netbsd: Intel 82371SB IDE Interface (PIIX3) (IDE mass storage, interface 0x80) at pci0 dev 13 function 1 not configured
Jul  2 04:28:30 latte /netbsd: ppb0 at pci0 dev 14 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x02)
Jul  2 04:28:30 latte /netbsd: pci1 at ppb0 bus 1
Jul  2 04:28:30 latte /netbsd: pci1: i/o enabled, memory enabled
Jul  2 04:28:30 latte /netbsd: ep0 at pci1 dev 8 function 0: 3Com 3C905 Ethernet
Jul  2 04:28:30 latte /netbsd: ep0: MAC address 00:c0:4f:a3:03:40
Jul  2 04:28:30 latte /netbsd: ep0: 8KB word-wide FIFO, 3:5 Rx:Tx split, mii default mii, autoselect
Jul  2 04:28:30 latte /netbsd: ep0: interrupting at irq 14
Jul  2 04:28:30 latte /netbsd: ahc0 at pci1 dev 9 function 0
Jul  2 04:28:30 latte /netbsd: ahc0: interrupting at irq 14
Jul  2 04:28:30 latte /netbsd: ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
Jul  2 04:28:30 latte /netbsd: scsibus0 at ahc0 channel 0: 16 targets
Jul  2 04:28:31 latte /netbsd: ahc0: target 0 using 16Bit transfers
Jul  2 04:28:31 latte /netbsd: ahc0: target 0 synchronous at 10.0MHz, offset = 0x8
Jul  2 04:28:31 latte /netbsd: sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST34371W, 0484> SCSI2 0/direct fixed
Jul  2 04:28:31 latte /netbsd: sd0: 4095MB, 5172 cyl, 10 head, 162 sec, 512 bytes/sect x 8388314 sectors
Jul  2 04:28:31 latte /netbsd: ahc0: target 5 synchronous at 10.0MHz, offset = 0xf
Jul  2 04:28:31 latte /netbsd: cd0 at scsibus0 targ 5 lun 0: <NEC, CD-ROM DRIVE:464, 1.04> SCSI2 5/cdrom removable
Jul  2 04:28:31 latte /netbsd: ahc0: target 6 synchronous at 5.0MHz, offset = 0xf
Jul  2 04:28:31 latte /netbsd: st0 at scsibus0 targ 6 lun 0: <ARCHIVE, Python 00095-001, 5.ac> SCSI2 1/sequential removable
Jul  2 04:28:31 latte /netbsd: st0: drive empty
Jul  2 04:28:31 latte /netbsd: Mitsubishi Electronics product 0x0301 (VGA display, revision 0x03) at pci0 dev 16 function 0 not configured
Jul  2 04:28:31 latte /netbsd: isa0 at pcib0
Jul  2 04:28:31 latte /netbsd: com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
Jul  2 04:28:32 latte /netbsd: com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
Jul  2 04:28:32 latte /netbsd: lpt0 at isa0 port 0x378-0x37b irq 7
Jul  2 04:28:32 latte /netbsd: pcppi0 at isa0 port 0x61
Jul  2 04:28:32 latte /netbsd: spkr0 at pcppi0
Jul  2 04:28:32 latte /netbsd: sysbeep0 at pcppi0
Jul  2 04:28:32 latte /netbsd: npx0 at isa0 port 0xf0-0xff: using exception 16
Jul  2 04:28:32 latte /netbsd: vt0 at isa0 port 0x60-0x6f irq 1
Jul  2 04:28:32 latte /netbsd: vt0: unknown cirrus, 80 col, color, 8 scr, mf2-kbd, [R3.32]
Jul  2 04:28:32 latte /netbsd: pms0 at vt0 irq 12
Jul  2 04:28:32 latte /netbsd: vt0: console
Jul  2 04:28:32 latte /netbsd: fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
Jul  2 04:28:32 latte /netbsd: fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Jul  2 04:28:32 latte /netbsd: biomask 4040 netmask 4040 ttymask 50c2
Jul  2 04:28:32 latte /netbsd: WARNING: old BSD partition ID!
Jul  2 04:28:32 latte /netbsd: boot device: sd0
Jul  2 04:28:32 latte /netbsd: root on sd0a dumps on sd0b
Jul  2 04:28:32 latte /netbsd: WARNING: old BSD partition ID!
Jul  2 04:28:32 latte last message repeated 2 times
Jul  2 04:28:32 latte /netbsd: root file system type: ffs
Jul  2 04:28:29 latte savecore: no core dump
Jul  2 04:28:30 latte root: WARNING: /etc/exports not readable;  NFS server not started.