[160] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Seagate ST-0x and SONY CD-ROM CDU-8001 (3.2i) (Apple CD-ROM)

daemon@ATHENA.MIT.EDU (Martin Sjolin)
Sun May 7 12:12:14 1995

From: Martin Sjolin <marsj@ida.liu.se>
Date: Sun, 7 May 95 17:08:45 +0200
To: linux-scsi@vger.rutgers.edu
Cc: Eric Youngdale <eric@aib.com>

Hi,

I have an old Apple CD-ROM (one of the first models) which i would
like to connect to my Linux box. Having an old ST-0X collecting dust
on a shelv, i plugged in the ST-0X and the CD-ROM. Alas, inquiry cmd
works nice, but mounting a CD-ROM locks up the machine rock solid.

After checking out the SCSI-Howto, I added the CD-ROM to the "borken"
devices in scsi.c. After this small patch, everything worked out alright.

Patch included below,

msj
--- scsi.c.old	Wed Apr 26 22:48:15 1995
+++ scsi.c	Fri May  5 15:25:03 1995
@@ -546,9 +547,11 @@
  * borken and then change it here if it turns out that it isn't
  * a TEXEL drive.
  */
-
-		  if(strncmp("TEXEL", (char *) &scsi_result[8], 5) != 0 ||
-		     strncmp("CD-ROM", (char *) &scsi_result[16], 6) != 0
+	          if((strncmp("SONY",(char *) &scsi_result[8], 4) != 0 ||
+		      strncmp("CD-ROM CDU-8001",(char *) &scsi_result[16], 15) != 0)
+		     &&
+		     (strncmp("TEXEL", (char *) &scsi_result[8], 5) != 0 ||
+		      strncmp("CD-ROM", (char *) &scsi_result[16], 6) != 0
 /*
  * XXX 1.06 has problems, some one should figure out the others too so
  * ALL TEXEL drives don't suffer in performance, especially when I finish
@@ -556,9 +559,9 @@
  */
 
 #ifdef notyet
-		     || (strncmp("1.06", (char *) &scsi_result[[, 4) != 0)))
+		     || (strncmp("1.06", (char *) &scsi_result, 4) != 0)
 #endif
-				 )
+				 ))
 		    SDpnt->borken = 0;
 
 
--
Martin Sj\"olin | http://www.ida.liu.se/labs/iislab/people/marsj
Department of Computer Science, LiTH, S-581 83 Link\"oping, SWEDEN 
phone : +46 13 28 24 10 | fax : +46 13 28 26 66 | e-mail: marsj@ida.liu.se 

home help back first fref pref prev next nref lref last post