Subject: problems with NetBSD on IPC
To: None <port-sparc@NetBSD.ORG>
From: Christopher Forkin <forkin@hal9000.tnet.de>
List: port-sparc
Date: 05/14/1996 21:33:20
Hi there,
I hope this isn't a FAQ, or has been discussed over and over again.
I recently bought a Sparc IPC with a QIC 150 ARCHIVE Viper tape-drive
and tried to hook up an SCSI CD-ROM from Toshiba to it, with the following
results.
---------------------------cut here---------------------------------------
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.

NetBSD 1.1 (SUNIPC) #0: Wed May  8 14:15:59 MET DST 1996
    root@sunipc.cf.net:/usr/src/sys/arch/sparc/compile/SUNIPC
real mem = 25112576
avail mem = 22102016
using 306 buffers containing 1253376 bytes of memory
bootpath: /sbus0/esp0/sd@2,0
mainbus0 (root)
cpu0 at mainbus0: Sun 4/40 (MB86900/1A or L64801 @ 25 MHz, WTL3170/2 FPU)
cpu0: 65536 byte write-through, 16 bytes/line, sw flush cache enabled
memreg0 at mainbus0 ioaddr 0xf4000000
clock0 at mainbus0 ioaddr 0xf2000000: mk48t02 (eeprom)
timer0 at mainbus0 ioaddr 0xf3000000
auxreg0 at mainbus0 ioaddr 0xf7400000
zs0 at mainbus0 ioaddr 0xf1000000 pri 12, softpri 6
zs1 at mainbus0 ioaddr 0xf0000000 pri 12, softpri 6
fdc0 at mainbus0 ioaddr 0xf7200000 pri 11, softpri 4: chip 82072
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
audio0 at mainbus0 ioaddr 0xf7201000 pri 13, softpri 4
sbus0 at mainbus0 ioaddr 0xf8000000: clock = 25 MHz
dma0 at sbus0 slot 0 offset 0x400000: rev 1
esp0 at sbus0 slot 0 offset 0x800000 pri 3: ESP100 25Mhz, target 7
scsibus0 at esp0
esp0 targ 0 lun 0: <TOSHIBA, CD-ROM XM-3401TA, 0283> SCSI2 5/cdrom removable
cd0 at scsibus0: cd present, 1276208 x 512 byte records
esp0 targ 1 lun 0: <HP, HP35480A, 1009> SCSI2 1/sequential removable
st0 at scsibus0: drive empty
esp0 targ 2 lun 0: <MICROP, 1588-15MBSUN0669, SN0C> SCSI1 0/direct fixed
sd0 at scsibus0: 639MB, 1632 cyl, 15 head, 53 sec, 512 bytes/sec
esp0 targ 3 lun 0: <MAXTOR, LXT-213S SUN0207, 4.15> SCSI1 0/direct fixed
sd1 at scsibus0: 202MB, 1310 cyl, 7 head, 45 sec, 512 bytes/sec
esp0 targ 5 lun 0: <ARCHIVE, VIPER 150  21531, -004> SCSI1 1/sequential removable
st1 at scsibus0: drive empty
le0 at sbus0 slot 0 offset 0xc00000 pri 5: hardware address 08:00:20:0a:19:6b
cgthree0 at sbus0 slot 2 offset 0x0: SUNW,501-1718, 1152 x 900 (console)
bwtwo0 at sbus0 slot 3 offset 0x0: SUNW,501-1561, 1152 x 900
root on sd0a
******* mt -f /dev/rst1 stat **************
st1(esp0:5:0): not ready, data = 00 00 00 00 00 00
******* mt -f /dev/rst1 stat **************
st0(esp0:1:0): not ready, data = 00 00 00 00 3a 00 00 00 00 00 00
******** tar tvf /dev/rst1 ***************
st1(esp0:5:0): illegal request, data = 00 00 00 00 00 00
st1: cannot set selected mode
st1(esp0:5:0): illegal request, data = 00 00 00 00 00 00
st1: cannot set selected mode
st1: bad request, must be between 0 and 512
************* mount -o ro -t cd9660 /dev/cd0a /mnt **************
************* cp /mnt/<filename> /tmp ********************
panic: pagemove 1
syncing disks... 8 8 4 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 giving up
Frame pointer is at 0xf80f56d0
Call traceback:
  pc = f80d7384  args = (0, 900fe1, f8109800, f80f57f0, c, 0) fp = f80f5738
  pc = f801e8e8  args = (100, f80fb800, 1, 0, 0, 0) fp = f80f57a0
  pc = f80de620  args = (100, f85cc098, f8bb90d0, f8bb9090, f8112800, 300) fp = f80f5808
  pc = f8034abc  args = (f8c5f800, f8bcf000, 800, 771ab, 1eab, 1) fp = f80f5870
  pc = f8033ba0  args = (f8bc6888, 100210, f8034a74, 0, ffffffff, 200) fp = f80f58d8
  pc = f80b4490  args = (f8bc6888, f991d34c, f8bc6888, 20, 1, 0) fp = f80f5940
  pc = f80b4440  args = (f85c8b00, 0, f8033a30, 0, 0, 800) fp = f80f59a8
  pc = f80b4080  args = (0, 1, ffffffff, 0, c, 0) fp = f80f5a10
  pc = f80bc874  args = (f85c8b00, 1c, 1, 0, 0, 0) fp = f80f5a78
  pc = f80be480  args = (f85cc098, f85cc098, f8bb90d0, f8bb9090, f8112800, 300) fp = f80f5ae0
  pc = f800683c  args = (f85cc000, f80bdd84, 31909428, 771ab, 1eab, 1) fp = f80f5b50
  pc = f801cc44  args = (0, 0, f80080c8, 0, ffffffff, 200) fp = f991eb50

dumping to dev 701, offset 8
dump 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 3 1 2 3 succeeded
rebooting
---------------------------cut here---------------------------------------
the stuff in between the '********' are the commands I tried. I had a look 
at st.c and patched it so that my tape-drive is recognized as one of the
rogue drives (i.e. I replaced "VIPER 150 21247" with "VIPER 150  21531", with
the result that it comes up with "st0 at scsibus0: rogue, ...") to no effect.
After mounting a CD-ROM I can "ls" the contents, but as soon as I try to
copy something, I get a "panic: pagemove 1". BTW is only part of the keyboard
supported ? no cursor keys, etc. supported in console-mode ?
I'm quite new to NetBSD (come from linux) and got the IPC up and running fine
under SunOS 4.1.3, but NetBSD has been real difficult.
Hoping for help
CU Chris.
PS: if more information is needed, just ask :)

--
_u__f____r__S_e___                  Chris Forkin         tel/fax:+49-8157-2187
_______c_________a                  Bahnhofstrasse 54, 82340 Feldafing,Germany
P__v__b______b__v_   forkin@hal9000.tnet.de , forkin@informatik.tu-muenchen.de
__e__g__u_e____x__ F916AB2925DD2F474BEF8A2ADD4C8C99 (pgp-public-keys@sw.oz.au)