Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 1998 14:41:03 -0400
From:      "Christopher M. Giordano" <CGiordano@gdeb.com>
To:        freebsd-ports@FreeBSD.ORG
Cc:        oliver.fromme@heim3.tu-clausthal.de
Subject:   tosha-0.05 patch for Yamaha CRW4260
Message-ID:  <35E456BF.87A99C74@gdeb.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35E456BF.87A99C74>