Subject: st device not recognized
To: None <port-macppc@netbsd.org>
From: Sean Sweda <sweda@advantageit.com>
List: port-macppc
Date: 06/25/2003 01:41:51
I recently upgraded from 1.5.2 to 1.6.1 over the weekend, and now the
kernel recognizes my DDS-3 tape drive as a disk.  I could not boot
reliably (sometimes it would hang forever after probing the mesh
controller) without ejecting the tape (it now reports "sd2:  drive
offline").  This is a Beige G3 with the boot drives conected to the
PCI scsi card (now siop driver it appears).  The only thing that could
be considered "odd" about this install is that I untarred 1.6.1 on the
second scsi disk and used the 1.5.2 version of installboot to add the
bootloader.  I even ran /dev/MAKEDEV a second time after booting
into 1.6.1, in case some major/minor number had changed in the 1.6.1 kernel.

What could be causing this?  This machine is co-located, so I don't have
easy physical access to the machine.  Also, I don't appear to have an
old dmesg left around from a 1.5.2 boot.  I haven't yet tried hardwiring
a st device to scsi ID 5 on the mesh controller.  Would this even help
if the kernel isn't recognizing the tape drive as a sequential device?

here's the dmesg:

NetBSD 1.6.1 (GENERIC) #0: Tue Apr  8 15:07:52 UTC 2003
    autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/macppc/OBJ/autobuild/netbsd-1-6/src/sys/arch/macppc/compile/GENERIC
total memory = 320 MB
avail memory = 285 MB
using 2048 buffers containing 16484 KB of memory
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 2.2), ID 0 (primary)
cpu0: HID0 8290c0a4<EMCP,ECLK,DOZE,DPM,ICE,DCE,SGE,BTIC,BHT>
cpu0: 305.09 MHz
cpu0: 1MB backside cache
grackle0 at mainbus0
pci0 at grackle0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Motorola MPC106 "Grackle" Host Bridge (rev. 0x40)
siop0 at pci0 dev 13 function 0: Symbios Logic 53c875 (ultra-wide scsi)
siop0: using on-board RAM
siop0: interrupting at irq 23
scsibus0 at siop0: 16 targets, 8 luns per target
obio0 at pci0 dev 16 function 0: addr 0xf3000000
mesh0 at obio0 offset 0x10000 irq 12: 50MHz, SCSI ID 7
scsibus1 at mesh0: 8 targets, 8 luns per target
bm0 at obio0 offset 0x11000 irq 42,33: address 00:05:02:fb:26:e9
zsc0 at obio0 offset 0x13000: irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
davbus at obio0 offset 0x14000 not configured
swim3 at obio0 offset 0x15000 not configured
nvram0 at obio0 offset 0x60000
wdc0 at obio0 offset 0x20000 irq 13: DMA transfer
wd0 at wdc0 channel 0 drive 0: <ST310232A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 9768 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 20005650 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wdc1 at obio0 offset 0x21000 irq 14: DMA transfer
atapibus0 at wdc1 channel 0: 2 targets
cd0 at atapibus0 drive 0: <MATSHITA CR-587, , 7S14> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
adb0 at obio0 offset 0x16000 irq 18: 1 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: extended keyboard
wskbd0 at akbd0: console keyboard
ofb0 at pci0 dev 18 function 0: ATI Technologies 3D Rage Pro
ofb0: 1024 x 768, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <QUANTUM, VIKING II 4.5WSE, 5520> SCSI2 0/direct fixed
sd0: 4350 MB, 8338 cyl, 5 head, 213 sec, 512 bytes/sect x 8910423 sectors
sd0: sync (50.0ns offset 16), 16-bit (40.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 1 lun 0: <IBM, DNES-309170W, SA30> SCSI3 0/direct fixed
sd1: 8748 MB, 11474 cyl, 5 head, 312 sec, 512 bytes/sect x 17916240 sectors
sd1: sync (50.0ns offset 16), 16-bit (40.000MB/s) transfers, tagged queueing
scsibus1: waiting 2 seconds for devices to settle...
sd2 at scsibus1 target 5 lun 0: <, , > SCSI0 0/direct fixed
sd2: drive offline
boot device: sd1
root on sd1a dumps on sd1b
root file system type: ffs


---
Sean Sweda
sweda@ibl.org                     http://www.ibl.org/~sweda