Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Dec 1995 13:55:14 +0100
From:      se@zpr.uni-koeln.de (Stefan Esser)
To:        Rich Scott <rxscot2@lookout.ecte.uswc.uswest.com>
Cc:        hackers@freebsd.org
Subject:   Re: 2.1.0-release: can't get Chinon CD-ROM working with ncr0
Message-ID:  <199512221255.AA29181@Sysiphos>
In-Reply-To: Rich Scott <rxscot2@lookout.ecte.uswc.uswest.com> "2.1.0-release: can't get Chinon CD-ROM working with ncr0" (Dec 22,  0:03)

next in thread | previous in thread | raw e-mail | index | archive | help
On Dec 22,  0:03, Rich Scott wrote:
} Subject: 2.1.0-release: can't get Chinon CD-ROM working with ncr0
} 
} I just received my 2.1 CD, and am not able to get it to successfully
} use my Chinon 535S CD-ROM drive. My motherboard is a Tyan Titan III,
} with 256k burst cache, 16 megabytes of RAM, and a Tyan Yorktown SCSI
} controller, which is basically an NCR 3c825, (operating in non-wide
} scsi mode to the Chinon cd). I always get SCSI phase errors. This
} configuration works fine with DOS and the Tyan-supplied (Symbios?)
} drivers, as well as the last several revisions of Linux, so I believe
} the drive "works", although I've heard that it's compliancy with SCSI
} specs is a bit shaky. I'm also using an IDE drive (the only disk on the
} system; soon I'll sell it, and go all-SCSI).
} 
} I tried compiling the kernel of 2.2-current (taken from the snapshot
} of 3 days ago), to no avail. I enclose the boot messages for my
} 2.1 kernel below. I had to install by copying over the floppy images
} to my DOS partition in a DOS session, and then specify the latter
} as my install medium, which is tedious, and I'm still not able to
} use the live fs disk from the 2.1 distribution.
} 
} Does anyone have any suggestions for fixes and/or patches? Thanks.
} BTW, other than this, I love FreeBSD! Happy Holidays to all the 
} developers!

Sorry, you are the second person within a few days 
to get hit by the Chinon problem ...

If you have your system up and running, then I'd be
glad if I could send you a small patch to add back 
support of the Chinon to the NCR driver.

The driver is broken after adding better error checks
which help increase reliability in the case of bad
cables or other SCSI bus problems. There will be a 
SCSI bus reset in certain situations, and this will
make the Chinon probe fail, which succeeded by accident
before :)

The Chinon drives (525 and 535) have already cost me 
much time and effort. I don't own one (and don't intend 
to buy one, because they are know to be buggy :), so 
I can't test driver changes with these devices myself.

Please apply the following patch, rebuild the kernel,
and let me know whether this solves your problem ...

Sorry for the inconvenience and thanks in advance,

STefan

Index: /sys/pci/ncr.c
===================================================================
RCS file: /usr/cvs/src/sys/pci/ncr.c,v
retrieving revision 1.52
diff -C2 -r1.52 ncr.c
*** ncr.c	1995/12/16 00:27:44	1.52
--- ncr.c	1995/12/21 21:27:58
***************
*** 1129,1133 ****
  	ncrcmd	skip2		[  3];
  	ncrcmd  idle		[  2];
! 	ncrcmd	select		[ 24];
  	ncrcmd	prepare		[  4];
  	ncrcmd	loadpos		[ 14];
--- 1129,1133 ----
  	ncrcmd	skip2		[  3];
  	ncrcmd  idle		[  2];
! 	ncrcmd	select		[ 22];
  	ncrcmd	prepare		[  4];
  	ncrcmd	loadpos		[ 14];
***************
*** 1573,1578 ****
--- 1573,1580 ----
  	SCR_MOVE_TBL ^ SCR_MSG_OUT,
  		offsetof (struct dsb, smsg),
+ #ifdef undef
  	SCR_JUMPR ^ IFTRUE (WHEN (SCR_MSG_OUT)),
  		-16,
+ #endif
  	SCR_CLR (SCR_ATN),
  		0,
***************
*** 4983,4987 ****
  
  	if (sist & RST) {
! 		ncr_init (np, bootverbose ? "scsi reset" : NULL, HS_RESET);
  		return;
  	};
--- 4985,4989 ----
  
  	if (sist & RST) {
! 		ncr_init (np, bootverbose ? "scsi reset" : NULL, HS_TIMEOUT);
  		return;
  	};


-- 
 Stefan Esser, Zentrum fuer Paralleles Rechnen		Tel:	+49 221 4706021
 Universitaet zu Koeln, Weyertal 80, 50931 Koeln	FAX:	+49 221 4705160
 ==============================================================================
 http://www.zpr.uni-koeln.de/~se			  <se@ZPR.Uni-Koeln.DE>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512221255.AA29181>