From owner-freebsd-questions Sat Jan 4 20:37:31 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3C8A37B401 for ; Sat, 4 Jan 2003 20:37:25 -0800 (PST) Received: from tomts14-srv.bellnexxia.net (tomts14.bellnexxia.net [209.226.175.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8E7443EA9 for ; Sat, 4 Jan 2003 20:37:24 -0800 (PST) (envelope-from t.vanderhoek@utoronto.ca) Received: from localhost.nowhere ([64.231.127.153]) by tomts14-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20030105043724.BAAT19947.tomts14-srv.bellnexxia.net@localhost.nowhere> for ; Sat, 4 Jan 2003 23:37:24 -0500 Received: from localhost.nowhere (localhost [127.0.0.1]) by localhost.nowhere (8.12.6/8.12.5) with ESMTP id h054bPEH002741 for ; Sat, 4 Jan 2003 23:37:25 -0500 (EST) (envelope-from tim@localhost.nowhere) Received: (from tim@localhost) by localhost.nowhere (8.12.6/8.12.5/Submit) id h054bOMT002740 for freebsd-questions@FreeBSD.org; Sat, 4 Jan 2003 23:37:24 -0500 (EST) Date: Sat, 4 Jan 2003 23:37:24 -0500 From: Tim Vanderhoek To: freebsd-questions@FreeBSD.org Subject: ATAPI/CAM and ripping audio CDs Message-ID: <20030105043724.GA2116@turquoise> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I'm trying to duplicate an audio CD using my ATAPI CD-RW drive on FreeBSD-4.7-STABLE with sources dated on Dec 19, 2002. The cdda2wav utility identifies my drive+CD as: Type: ROM, Vendor 'SONY ' Model 'CD-RW CRX1611 ' Revision 'TYS3' MMC+CDDA which leads me to believe that it supports CDDA and can rip an audio CD. The drive itself is the master on the second IDE bus and has one slave. However, whenever I try using cdda2wav, cdrdao, grip, or xcdroast I get either a cryptic error message or the ripper program (usually cdrdao) locks-up and I need to reboot. I have no sound card. I don't really see how this should be a problem when I'm trying to rip an audio cd (I'm not trying to play it!). ???? Note that the track titles themselves are visible. I can see the correct number of track and track titles using cdrdao and grip. Neither program can read the actual audio data on the tracks, though. I included snippets from dmesg.boot, cdrecord -scanbus, camcontrol devlist, and cdda2wav. Thanks very much for any help that anyone can offer. Here is the (verbose) output of cdda2wav: turquoise# cdda2wav -D 1,0,0 -B -V -vall -S1 test unit ready... Executing 'test unit ready' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 00 00 00 00 00 00 cmd finished after 0.000s timeout 300s Executing 'inquiry' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 12 00 00 00 24 00 cmd finished after 0.000s timeout 300s Inquiry Data : 05 80 00 21 1F 00 00 00 53 4F 4E 59 20 20 20 20 43 44 2D 52 57 20 Type: ROM, Vendor 'SONY ' Model 'CD-RW CRX1611 ' Revision 'TYS3' Executing 'test unit ready' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 00 00 00 00 00 00 cmd finished after 0.000s timeout 300s Executing 'mode sense g1' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 5A 00 3F 00 00 00 00 00 08 00 cmd finished after 0.000s timeout 300s Mode Sense Data 00 70 02 00 00 00 00 00 Executing 'test unit ready' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 00 00 00 00 00 00 cmd finished after 0.000s timeout 300s Executing 'mode sense g1' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 5A 00 2A 00 00 00 00 00 02 00 cmd finished after 0.000s timeout 300s Mode Sense Data 00 1C Mode Sense Data (converted) 19 Executing 'test unit ready' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 00 00 00 00 00 00 cmd finished after 0.000s timeout 300s Executing 'mode sense g1' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 5A 00 2A 00 00 00 00 00 1E 00 cmd finished after 0.000s timeout 300s Mode Sense Data 00 1C 02 00 00 00 00 00 2A 14 07 07 F7 7F 29 23 1B 90 01 00 08 00 1B 90 00 00 0B 06 0B 06 Mode Sense Data (converted) 19 02 00 00 2A 14 07 07 F7 7F 29 23 1B 90 01 00 08 00 1B 90 00 00 0B 06 0B 06 Mode Sense Data 19 02 00 00 2A 14 07 07 F7 7F 29 23 1B 90 01 00 08 00 1B 90 00 00 0B 06 0B 06 Mode Page Data 2A 14 07 07 F7 7F 29 23 1B 90 01 00 08 00 1B 90 00 00 0B 06 0B 06 Executing 'test unit ready' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 00 00 00 00 00 00 cmd finished after 0.000s timeout 300s Executing 'mode sense g1' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 5A 00 2A 00 00 00 00 00 1E 00 cmd finished after 0.000s timeout 300s Mode Sense Data 00 1C 02 00 00 00 00 00 2A 14 07 07 F7 7F 29 23 1B 90 01 00 08 00 1B 90 00 00 0B 06 0B 06 Mode Sense Data (converted) 19 02 00 00 2A 14 07 07 F7 7F 29 23 1B 90 01 00 08 00 1B 90 00 00 0B 06 0B 06 Mode Sense Data 19 02 00 00 2A 14 07 07 F7 7F 29 23 1B 90 01 00 08 00 1B 90 00 00 0B 06 0B 06 MMC+CDDA Executing 'test unit ready' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 00 00 00 00 00 00 cmd finished after 0.000s timeout 300s get density and sector size... Executing 'mode sense g1' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 5A 00 01 00 00 00 00 00 10 00 cmd finished after 0.000s timeout 300s Mode Sense Data 00 0E 02 00 00 00 00 00 01 06 00 10 00 00 00 00 Mode Sense Data (converted) 0B 02 00 00 01 06 00 10 00 00 00 00 266240 bytes buffer memory requested, 4 buffers, 27 sectors Read Full TOC MMC... Executing 'read full toc mmc' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 43 00 02 00 00 00 01 04 9D 00 cmd finished after 0.001s timeout 300s Read TOC CD Text size ... Executing 'read toc size (text)' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 43 00 05 00 00 00 00 00 04 00 cmd finished after 0.000s timeout 300s #Cdda2wav version 1.11a39_freebsd_4.7-stable_i386_i386, real time sched., soundcard, libparanoia support Warning: first track has negative start sector! Setting to zero. AUDIOtrack pre-emphasis copy-permitted tracktype channels 0- 0 no no audio 2 Table of Contents: total tracks:1, (total time 0:02.00) 0.( 0:00.00) Table of Contents: starting sectors 0.( 0), lead-out( 0) CDINDEX discid: cGNbCcEyjh0mObfBg8wDvKpWc80- CDDB discid: 0xfffc4001 CD-Text: not detected CD-Extra: not detected scanning for MCN... Read Subchannel... Executing 'Read Subchannel' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 42 00 40 02 00 00 00 00 18 00 cmd finished after 0.000s timeout 300s No media catalog number present. scanning for ISRCs: 0 ... Read Subchannel... Executing 'Read Subchannel' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 42 00 40 03 00 00 00 00 18 00 cdda2wav: Input/output error. Read Subchannel: scsi sendcmd: retryable error CDB: 42 00 40 03 00 00 00 00 18 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sense Key: 0x5 Illegal Request, Segment 0 Sense Code: 0x24 Qual 0x00 (invalid field in cdb) Fru 0x0 Sense flags: Blk 0 (not valid) cmd finished after 0.000s timeout 300s Read Subchannel_dumb... Executing 'Read Subchannel_dumb' command on Bus 1 Target 0, Lun 0 timeout 300s CDB: 42 00 40 00 00 00 00 00 18 00 cdda2wav: Input/output error. Read Subchannel_dumb: scsi sendcmd: retryable error CDB: 42 00 40 00 00 00 00 00 18 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sense Key: 0x5 Illegal Request, Segment 0 Sense Code: 0x24 Qual 0x00 (invalid field in cdb) Fru 0x0 Sense flags: Blk 0 (not valid) cmd finished after 0.000s timeout 300s Read SubQ failed W Sector offset 0 exceeds track size (ignored) Time interval is too short. Choose a duration greater than 0.00 secs! Please use -help or consult the man page for help. Here is the relevent info from dmesg.boot: [...] ad0: 39083MB [79408/16/63] at ata0-master UDMA100 ad3: 4121MB [8374/16/63] at ata1-slave UDMA33 acd0: CD-RW at ata1-master PIO4 Mounting root from ufs:/dev/ad0s1a cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 16.000MB/s transfers cd0: cd present [272787 x 2048 byte records] Also note that I am able to burn data CDs using xcdroast without any trouble and that cdrecord sees them on the fake/simulated SCSI bus: turquoise# cdrecord -scanbus Cdrecord 1.11a39 (i386-unknown-freebsd4.7) Copyright (C) 1995-2002 Jörg Schilling Using libscg version 'schily-0.7' scsibus1: 1,0,0 100) 'SONY ' 'CD-RW CRX1611 ' 'TYS3' Removable CD-ROM 1,1,0 101) * 1,2,0 102) * 1,3,0 103) * 1,4,0 104) * 1,5,0 105) * 1,6,0 106) * 1,7,0 107) * turquoise# camcontrol devlist at scbus1 target 0 lun 0 (pass0,cd0) turquoise# -- If I could think of a two-line witty aphorism for you to remember me by, this would definitely be it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message