From owner-freebsd-ports Wed Aug 26 11:35:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA19983 for freebsd-ports-outgoing; Wed, 26 Aug 1998 11:35:49 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from plunger.gdeb.com (plunger.gdeb.com [153.11.11.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA19964 for ; Wed, 26 Aug 1998 11:35:24 -0700 (PDT) (envelope-from CGiordano@gdeb.com) Received: from clcrtr.clc.gdeb.com ([153.11.109.11]) by plunger.gdeb.com with ESMTP (1.37.109.16/CSC-E_1.8) id AA288416316; Wed, 26 Aug 1998 14:31:57 -0400 Received: from gdeb.com (klr [153.11.109.139]) by clcrtr.clc.gdeb.com (8.8.8/8.7.3) with ESMTP id OAA10763; Wed, 26 Aug 1998 14:29:18 -0400 (EDT) Message-Id: <35E456BF.87A99C74@gdeb.com> Date: Wed, 26 Aug 1998 14:41:03 -0400 From: "Christopher M. Giordano" Reply-To: CGiordano@gdeb.com Organization: Electric Boat Corporation X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.6-STABLE i386) Mime-Version: 1.0 To: freebsd-ports@FreeBSD.ORG Cc: oliver.fromme@heim3.tu-clausthal.de Subject: tosha-0.05 patch for Yamaha CRW4260 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Several days ago I was having problem with tosha and my new new Yamaha CRW4260 drive. I was experiencing SCSI request errors as follows: # ./tosha -t 1 -o /opt/CD/junk.cdr Device: /dev/cd0c YAMAHA CRW4260 1.0h Output file: /opt/CD/junk.cdr track playing start end raw size mp3 size # of number time sector sector in bytes 128 kbps frames -------------------------------------------------------------- 1 4:22'23 32 19704 46270896 4197741 10042 SCIOCCOMMAND ioctl: Command accepted. return status 3 (Sense Returned) host adapter status 2 Command out (10 of 10): 28 00 00 00 00 20 00 00 0a 00 Data in (0 of 23520): Error code is "current errors" Segment number is 00 Sense key is "Illegal request" The Information field is not valid but contains 00000000 (0). The Command Specific Information field is 00000000 (0). Additional sense code: 64 Additional sense code qualifier: 00 sense (32 of 48): 70 00 05 00 00 00 00 0a 00 00 00 00 64 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 09 30 01 06 I have since come up with a patch that allows me to read CD DA from the drive. Note that it is not fully tested; so far I have only done simple commands like: $ tosha -i and $ tosha -t X -o file but it seems to be working fine. The patch file is below. Basically it changes the the default read command in the SCSI request. I am posting it in the hope that it might help someone else. FYI: FreeBSD 2.2.7-STABLE tosha v0.05, 21-May-1997 Yamama CRW4260 1.0h Adaptec 2940UW onboard (aic7880 chipset) Chris Giordano cgiordano@ids.net ------------8<------------ cut here ----------8<------------ --- tosha.c.orig Wed Aug 26 11:10:09 1998 +++ tosha.c Wed Aug 26 11:01:22 1998 @@ -536,7 +536,9 @@ } else if (!strncmp(vendor, "SONY", 4) || - !strncmp(vendor, "PLEXTOR", 7)) { + !strncmp(vendor, "PLEXTOR", 7) || + (!strncmp(vendor, "YAMAHA", 6) && + !strncmp(product, "CRW4260", 7))) { modechange = FALSE; readcmd = 0xd8; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message