Subject: NCR/pci problems
To: None <current-users@NetBSD.ORG>
From: Andrew Wheadon <andrew@wipux2.wifo.uni-mannheim.de>
List: current-users
Date: 12/29/1994 23:29:44
I was recently given a Pentium (with bug) PCI/Eisa Board for 
replacing my current setup consisting of 486/66 with Adaptec,
to serve as the new wipux2.wifo.uni-mannheim.de.

It came as ordered with a NCR SCSI Card, and an Eisa SMC
Elite32C Ultra. (It's an ASUS PCI/E-P54NP4 motherboard---
Does NetBSD support Dual-Processor (Intel MP-specs) ?)

I replaced the Eisa Ultra with my old working Isa SMC until
I'm told that the 'ed*' driver will work with it too, or have
time to check it out myself.

I then set about connecting my working internal and external
drives to the NCR Controller.... which failed....
	It was set up as INT-A, IRQ 11, no termination on board.
	it rebooted immediatly after the line "scsibus0 at ncr0". 
	I messed with the cache settings and every else I could find,
	but it didn't resolve.

	I tried the original kcaha-1.0 file and it booted,
	recognised the disks, but when I copied the kernel
	to the harddisk, it just hung on "changing root device"
	(probably incompatibilties between current and 1.0)

I then took my old (isa) Adaptec and put it in and connected
the drives back to it. I changed the NCR's IRQ to 9 to avoid
conflict with the Adaptec.... which worked....

I then tried connecting first the internal disk and then the
external disk (alone) to the ncr, leaving the other disks on
the Adaptec and turning on termination of the scsi-controller-
boards..... which failed .... it rebooted as above.

SO. It seems that although the kernel will recognise my ncr
controller, as soon as it finds a disk connected to it, it reboots.

I've affixed a 'dmesg' of it the way it is now working to the
end, the only change between working and not working is that
no devices are connected to ncr.

Has anybody got a working current-kernel for ncr, with internal
and external disks ? Has anybody got some Ideas ? I used 'GENERIC'
for the kernel-config.new-file and modified it, removing the
'eisa0 at root' line (since it doesn't compile otherwise) and
any uneeded controllers and options. (it's also appended after the dmesg)

Cheerio

PS Does the ed*-driver work for eisa SMC's ?
---
NetBSD 1.0A (PENT) #0: Thu Dec 29 21:39:25 MET 1994
    toor@wipux2.wifo.uni-mannheim.de:/src/src/sys/arch/i386/compile/PENT
CPU: Pentium (GenuineIntel 586-class CPU)
real mem  = 33161216
avail mem = 29712384
using 430 buffers containing 1761280 bytes of memory
isa0 (root)
npx0 at isa0 port 0xf0-0xff: using exception 16
WARNING: Pentium FDIV bug detected!
vt0 at isa0 port 0x60-0x6f irq 1: et4000, 80/132 col, color, 8 scr, mf2-kbd, [R3.00]
com0 at isa0 port 0x3f8-0x3ff irq 4: ns82450 or ns16450, no fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns82450 or ns16450, no fifo
aha0: 1542C/CF detected, unlocking mailbox
aha0 at isa0 port 0x330-0x333 irq 11 drq 5
scsibus0 at aha0
aha0 targ 0 lun 0: <FUJITSU M2266S-512      0020> SCSI2 direct fixed
sd0 at scsibus0: 1029MB, 1658 cyl, 15 head, 84 sec, 512 bytes/sec
aha0 targ 1 lun 0: <FUJITSU M2694S-512      0124> SCSI2 direct fixed
sd1 at scsibus0: 1033MB, 1819 cyl, 15 head, 77 sec, 512 bytes/sec
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
ed0 at isa0 port 0x300-0x31f iomem 0xdc000-0xdffff irq 10: address 00:00:c0:76:14:62, type WD8013EPC (16-bit) bnc
root device eisa not configured
pci0 (root): configuration mode 2
pci0 bus 0 device 0: identifier 04a38086 class 06000011 not configured
pci0 bus 0 device 2: identifier 04828086 class 00000003 not configured
ncr0 at pci0 bus 0 device 5
pci_map_mem: memory mapped at c0000000-c0000fff
pci_map_int: pin A mapped to line 9
ncr0: restart (scsi reset).
ncr0 scanning for targets 0..6 ($Revision: 1.7 $)
scsibus1 at ncr0
biomask a40 netmask 41a ttymask 1a
changing root device to sd0a
--- and config-file:

#	$NetBSD: GENERIC,v 1.7 1994/12/11 16:20:52 mycroft Exp $
#
#	GENERIC -- everything that's currently supported
#

machine		i386		# architecture, used by config; REQUIRED

options		I386_CPU	# CPU classes; at least one is REQUIRED
options		I486_CPU
options		I586_CPU
options		MATH_EMULATE	# floating point emulation

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

maxusers	32		# 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		COMPAT_SVR4	# binary compatibility with SVR4
#options	COMPAT_IBCS2	# binary compatibility with SCO and ISC

options		USER_LDT	# user-settable LDT; used by WINE
options		LKM		# loadable kernel modules

options		FFS,QUOTA	# UFS and quotas
#options		LFS		# log-structured file system
options		MFS		# memory file system

options		NFSCLIENT	# Network File System client
options		NFSSERVER	# Network File System server

options		CD9660		# ISO 9660 + Rock Ridge file system
options		MSDOSFS		# MS-DOS file system
#options		FDESC		# /dev/fd
options		FIFO		# FIFOs; RECOMMENDED
#options		KERNFS		# /kern
#options		NULLFS		# loopback file system
#options		PORTAL		# ?
#options		PROCFS		# /proc
#options		UMAPFS		# NULLFS + uid and gid remapping
#options		UNION		# union file system

#options	GATEWAY		# packet forwarding
options		INET		# IP + ICMP + TCP + UDP
#options		NS		# XNS
#options		ISO,TPIP	# OSI
#options		EON		# OSI tunneling over IP
#options		CCITT,LLC,HDLC	# X.25

config		netbsd	swap generic
options		GENERIC
options		PENT

isa0	at root
#eisa0	at root
pci0	at root

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

vt0	at isa? port 0x60 irq 1		# virtual PC console device

com0	at isa? port 0x3f8 irq 4	# standard PC serial ports
com1	at isa? port 0x2f8 irq 3

#lpt0	at isa? port 0x378 irq 7	# standard PC parallel ports
lpt1	at isa? port 0x278

aha0	at isa? port 0x330 irq ? drq ?	# Adaptec 154[02] SCSI controllers
scsibus* at aha?
ncr*	at pci? bus ? dev ?		# NCR 538XX SCSI controllers
scsibus* at ncr?
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
ch*	at scsibus? target ? lun ?	# SCSI autochangers

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

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

#sb0	at isa? port 0x220 irq 7 drq 1	# SoundBlaster
#spkr0	at isa? ...

pseudo-device	loop	1		# network loopback
pseudo-device	bpfilter 8		# packet filter
pseudo-device	sl	2		# CSLIP
pseudo-device	ppp	2		# PPP
pseudo-device	tun	2		# network tunneling over tty

pseudo-device	pty	64		# pseudo-terminals
pseudo-device	tb	1		# tablet line discipline
pseudo-device	vn	4		# paging to files

-- 
The cost of living hasn't affected it's popularity. (unknown)
current	release=doc host=wipux2.wifo.uni-mannheim.de \ "NetBSD-current mirror"
hostbase=/mit/ftp/pub/NetBSD base=/usr prefix=/usr backup delete use-rel-suffix