Subject: SCSI problems
To: None <netbsd-users@NetBSD.ORG>
From: None <Mark_Weaver@brown.edu>
List: netbsd-users
Date: 01/22/1995 14:40:15
I'm attempting to upgrade from NetBSD 1.0 to current, but I'm having
some problems with SCSI.  I'm not sure if it's a device driver
problem or a generic scsi problem, so I'm posting it here.

There's also a possibility I screwed up my config file, since this
is my first experience with config.new.  I get the following messages
during autoconfig:

--------------------------------------------------
...
uha0 at isa0 port 0x330-0x33f irq 11
scsibus0 at uha0
probe(uha0:0:0): timed out AGAIN
probe(uha0:0:0): timed out AGAIN
--------------------------------------------------

and it just hangs there.  Here's is the config file I'm using with
the comments stripped out.  It's based on the SUN_LAMP config,
since ALL is very out of date.

This is based on a full source tree supped yesterday afternoon
(1/21).  I did a (cd /usr/src/include;make install) over the stock
1.0 installation, compiled and installed config.new from the current
sources, then built the kernel after using config.new to create a
brand new build directory.

--------------------------------------------------
#
#	WEAVER -- kernel for mark's 486 box
#

machine		i386		# architecture, used by config; REQUIRED

options		I486_CPU
options		I586_CPU

options		DUMMY_NOPS	# speed hack; recommanded
options		XSERVER,UCONSOLE
options		MACHINE_NONCONTIG

maxusers	24		# estimated number of users
options		TIMEZONE=0	# time zone to adjust RTC time by
options		DST=0		# daylight savings time used by RTC

options		SWAPPAGER	# paging; REQUIRED
options		VNODEPAGER	# mmap() of files
options		DEVPAGER	# mmap() of devices

options		DDB		# in-kernel debugger
options		DIAGNOSTIC	# internally consistency checks
options		KTRACE		# system call tracing, a la ktrace(1)

options		SYSVMSG		# System V-like message queues
options		SYSVSEM		# System V-like semaphores
options		SYSVSHM		# System V-like memory sharing
options		SHMMAXPGS=1024	# 1024 pages is the default

options		COMPAT_NOMID	# compatibility with 386BSD, BSDI, NetBSD 0.8,
options		COMPAT_09	# NetBSD 0.9,
options		COMPAT_10	# NetBSD 1.0,
options		COMPAT_43	# and 4.3BSD
options		TCP_COMPAT_42	# TCP bug compatibility with 4.2BSD

options		LKM		# loadable kernel modules

options		FFS #,QUOTA	# UFS and quotas
options		MFS		# memory file system

options		NFSCLIENT	# Network File System client

options		CD9660		# ISO 9660 + Rock Ridge file system
options		MSDOSFS		# MS-DOS file system
options		FIFO		# FIFOs; RECOMMENDED
options		NULLFS		# loopback file system

options		INET		# IP + ICMP + TCP + UDP

config		netbsd	root on wd0 swap on wd0 and wd1 and sd0

isa0	at root

npx0	at isa? port 0xf0 irq 13	# math coprocessor

pc0	at isa? port 0x60 irq 1		# generic PC console device

com0	at isa? port 0x3f8 irq 4	# standard PC serial ports
com1	at isa? port 0x2f8 irq 5
com2	at isa? port 0x3e8 irq 9

lpt0	at isa? port 0x3bc

uha0	at isa? port 0x330 irq ? drq ?	# UltraStor [13]4f SCSI controllers
scsibus0 at uha0
sd*	at scsibus? target ? lun ?	# SCSI disk drives
st*	at scsibus? target ? lun ?	# SCSI tape drives
cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives

fdc0	at isa? port 0x3f0 irq 6 drq 2	# standard PC floppy controllers
fd*	at fdc? drive ?

wdc0	at isa? port 0x1f0 irq 14	# ST506, ESDI, and IDE controllers
wdc1	at isa? port 0x170 irq 15
wd*	at wdc? drive ?

ed0	at isa? port 0x280 iomem 0xd0000 irq 3	# WD/SMC, 3C503, and NE[12]000

pseudo-device	loop	1		# network loopback
pseudo-device	sl	2		# CSLIP

pseudo-device	pty	32		# pseudo-terminals
pseudo-device	vn	4		# paging to files
--------------------------------------------------

Here's the `dmesg` for my working 1.0 kernel:

--------------------------------------------------
NetBSD 1.0 (WEAVER) #0: Thu Jan  5 14:55:29 EST 1995
    mhw@cis-ts3-slip4.cis.brown.edu:/usr/src/sys/arch/i386/compile/WEAVER
CPU: i486DX (486-class CPU)
real mem  = 16121856
avail mem = 14024704
using 222 buffers containing 909312 bytes of memory
pc0 at isa0 port 0x60-0x6f irq 1: color
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 5: ns16550a, working fifo
com2 at isa0 port 0x3e8-0x3ef irq 9: ns16550a, working fifo
lpt0 at isa0 port 0x3bc-0x3c3: polled
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 drive 0: 325MB 1010 cyl, 12 head, 55 sec <WDC AC2340H>
wd1 at wdc0 drive 1: 515MB 1048 cyl, 16 head, 63 sec <WDC AC2540H>
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
fd1 at fdc0 drive 1: 1.2MB 80 cyl, 2 head, 15 sec
uha0 at isa0 port 0x330-0x33f irq 11
scsibus0 at uha0
uha0 targ 0 lun 0: <IMPRIMIS94601-15        4614> SCSI1 direct fixed
sd0 at scsibus0: 992MB, 1931 cyl, 15 head, 70 sec, 512 bytes/sec
uha0 targ 1 lun 0: <ARCHIVE VIPER 2525 25462-007> SCSI1 sequential removable
st0 at scsibus0: rogue, density code 0x0, 1024-byte blocks, write-protected
uha0 targ 2 lun 0: <NEC     CD-ROM DRIVE:5012.2 > SCSI2 readonly removable
cd0 at scsibus0: cd present, 295231 x 2048 byte records
npx0 at isa0 port 0xf0-0xff: using exception 16
biomask 4840 netmask 232 ttymask 232

 Aperture driver for XFree86 version 1.1
--------------------------------------------------

Any ideas?

	Mark
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu           | Brown University
PGP Key: finger mhw@cs.brown.edu       | Dept of Computer Science