*BSD News Article 44929


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!gatech!newsxfer.itd.umich.edu!news.cic.net!locust.cic.net!pauls
From: pauls@locust.cic.net (Paul Southworth)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Chinon SCSI CDROM problems on NCR 810
Date: 3 Jun 1995 18:36:51 GMT
Organization: CICNet, Inc.
Lines: 62
Message-ID: <3qqa43$nr8@spruce.cic.net>
NNTP-Posting-Host: locust.cic.net


I'm running FreeBSD current (current to last Saturday) on a PCI-bus
486DX4-100 (24Mb).

I have an NCR 810 SCSI controller which works fine serving a Toshiba
MK438FB Fast SCSI-2 hard drive.  The NCR controller is set as "secondary"
since FreeBSD boots off IDE and the Toshiba is just for sources.

Today I bought a cheap-o Chinon double-speed CDROM drive (CDS-525).

I set it to ID#1 (disk at ID#0), removed the terminators, stuck it
in the middle of the existing chain, set it to parity off and 2048-byte
blocks.  (Setting to 512-byte blocks made FreeBSD blow up at probe-time.)

I built a new kernel with support for CD9660 and cd0 device.

On start-up, the probe results in this output:

ncr0 <ncr 53c810 scsi> rev 1 int a irq 11 on pci0:12
        reg20: virtual=0xf378a000 physical=0xfc400000 size=0x100
ncr0: restart (scsi reset).
ncr0 scanning for targets 0..6 (V2 pl21 95/03/21)
ncr0 waiting for scsi devices to settle
(ncr0:0:0): "TOSHIBA MK438FB 5061" type 0 fixed SCSI 2
sd0(ncr0:0:0): Direct-Access 
sd0(ncr0:0:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8.
838MB (1717912 512 byte sectors)
(ncr0:1:0): "Chinon CD-ROM CDS-525 V10" type 5 removable SCSI 2
cd0(ncr0:1:0): CD-ROM 
cd0(ncr0:1:0): UNIT ATTENTION asc:28,0
cd0(ncr0:1:0):  Not ready to ready transition, medium may have changed
cd present.[400000 x 2048 byte records]

Then it proceeds to boot happily.

When I try to access the CDROM drive, by doing something like this
(have tried using /dev/cd0a and /dev/cd0c):

mount -t cd9660 -o ro /dev/cd0c /cdrom

It replies:

ncr0: reset by timeout.
ncr0 targ 1?: ERROR (0:140) (a-2a-0) (0/13) @ (4f8:1a000000).
	      reg: da 10 80 13 47 0 1 1f ff a 1 2a 0 20 a 0.
ncr0: have to clear fifos.
ncr0: restart (fatal error).
cd0(ncr0:1:0): COMMAND FAILED (9 ff) @f07c5c00.
ncr0: timeout ccb=f07c5c00 (skip)
ncr0: reset by timeout.
ncr0 targ 1?: ERROR (0:140) (a-2a-0) (0/13) @ (508:1a000000).
	      reg: da 10 80 13 47 0 1 1f 2 a 1 2a 80 20 a 0.
ncr0: have to clear fifos.
ncr0: restart (fatal error).
cd0(ncr0:1:0): COMMAND FAILED (9 2) @f07c5c00.

Anyone know if this drive is bad with this controller, or if I've
screwed something up?  Or if this drive is bad with all controllers?

--
Paul Southworth
pauls@cic.net