Subject: Re: BusLogic 445S on NetBSD-current
To: None <prallon@fis.puc-rio.br>
From: Randy Terbush <sierra!randy>
List: current-users
Date: 01/29/1994 09:48:00
> Should this controller work?

  >> For sure it works, as I am a happy user. But...

That's good to know.  I am beginning to suspect that I have a bad
controller.

  >> ... The GENERICAHBBT kernel doesn't work with it as it comes out of the box.
  >> There is a misterious conflict with the ahb0 driver. The solution I found was
  >> to remove it from the config file. Also note that the bt0 driver is configured
  >> to work with a board set to IRQ 12 not 11. I not that up to date with the
  >> -current tree (I'm waiting for a bigger disk to install the source tree), but
  >> I can send you a kernel with a working bt0 driver to test.

I have not used the GENERICAHBBT kernel.  I am rolling my own kernel
with the following config.  If there is a way that you can make your
kernel ftp'able, I would love to try it.  That would help me confirm
my problems.

What version of the boot blocks are you running?  I am using the 1.8
blocks due to recent problems with the latest ones.  I have also tried
the board at irq 12 and 11.

Right after I see the drive information for the first target, there is
a long delay, then the message "cmd fail" is printed to screen.  That
information is followed by the following printf from sd.c.

	if (sd_scsi_cmd(unit, (struct scsi_generic *)&scsi_cmd,
	    sizeof(scsi_cmd), (u_char *)&scsi_sense, sizeof(scsi_sense),
	    2000, flags) != 0) {
		printf("could not mode sense (4) for unit %d\n", unit);
		printf(" using ficticious geometry\n");

Any help is greatly appreciated.  I am also sending this to the list.

#
#

# architecture type and name of kernel; REQUIRED
machine		"i386"
ident		SIERRA
cpu		"I486_CPU"

options		MACHINE_NONCONTIG

timezone	6 dst

maxusers	32
maxfdescs	2048

options		SWAPPAGER
options		VNODEPAGER,DEVPAGER
options		KTRACE
options		FIFO
options         UCONSOLE, XSERVER
options		NEW_AVERUNNABLE

# console options
options		PCVT_NETBSD
options		"PCVT_VT220KEYB"
options		"PCVT_FAKE_SYSCONS10"

# System V-like memory sharing; BROKEN
options         SYSVMSG
options         SYSVSEM
options		SYSVSHM
options		SHMMAXPGS=512

# filesystem options
options		FFS
options         FASTLINKS
options		SCSI
options		MFS
options		NFSSERVER
options		NFSCLIENT
options		ISOFS
options		MSDOSFS
options		FDESC
options		KERNFS
options		PROCFS
options         LKM

# various types of networks and protocols
options		ASYNC_NFS
options		INET
options		GATEWAY
options		COM_BIDIR

# Allows user to create an i386 LDT (Used by Wine to run Windows programs)
options		"USER_LDT"

options		"COMPAT_NOMID"
options		"COMPAT_43"
options		"TCP_COMPAT_42"

config		netbsd	root on sd0 swap on sd0

#buses
controller	isa0

#console
device     vt0     at isa? port "IO_KBD" tty irq 1 vector pcrint


#math co-processor
device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

#serial ports
device		com0	at isa? port "IO_COM1" tty irq 4 vector comintr
device		com1	at isa? port "IO_COM2" tty irq 3 vector comintr
#device		com2	at isa? port "IO_COM3" tty irq 5 vector comintr
#device		com3	at isa? port "IO_COM4" tty irq 9 vector comintr

#parallel ports
device		lpa0	at isa? port "IO_LPT1" tty

#non-scsi floppy controllers
controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
disk		fd1	at fdc0 drive 1

#scsi
controller	bt0	at isa? port "IO_BT0" bio irq 11 vector btintr
disk		sd0	at bt0 flags 0 drive ?
disk		sd1	at bt0 flags 0 drive ?
disk		sd2	at bt0 flags 0 drive ?
disk		sd3	at bt0 flags 0 drive ?
tape		st0	at bt0 flags 1 drive ?
tape		st1	at bt0 flags 1 drive ?
disk		cd0	at bt0 flags 2 drive ?
disk		cd1	at bt0 flags 2 drive ?

device		ed0 	at isa? port 0x300 net irq 10 iomem 0xcc000 vector edintr

pseudo-device pty	64
pseudo-device loop
pseudo-device ether     1
pseudo-device log
pseudo-device bpfilter	4
pseudo-device sl
pseudo-device ppp
pseudo-device vn        4
pseudo-device tb
pseudo-device tun
pseudo-device speaker

------------------------------------------------------------------------------