Subject: cdda2wav 1.8 and HITACHI CDR-7930
To: 386 Port NetBSD <port-i386@netbsd.org>
From: Scott Presnell <srp@zgi.com>
List: port-i386
Date: 02/07/2000 07:07:09
Hi Folks,
I pulled the release version of cdrecord-1.8 to use cdda2wav. The whole package
built without problems reporting Version 1.8_netbsd_1.4.1_i386_i386.
In trying to use cdda2wav to pull tracks off of audio CDs, I can get simple information
(e.g. cdda2wav -D /dev/cd0d -J returns the TOC and other information), but when I try
to read the tracks I get a scsi command error:
% /usr/local/audio/bin/cdda2wav -D /dev/cd0d -B -V
samplefile size will be 423211868 bytes.
recording 2399.01600 seconds stereo with 16 bits @ 44100.0 Hz ->'audio'...
overlap:min/max/cur, jitter, percent_done:
??/??/??/??????? 0%
ReadSony12 CDDA...
Executing 'Read12' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: D8 00 00 00 00 00 00 00 00 1A 00 00
/usr/local/audio/bin/cdda2wav: Input/output error. Read12: scsi sendcmd: retryable error
CDB: D8 00 00 00 00 00 00 00 00 1A 00 00
status: 0x0 (GOOD STATUS)
resid: 61152
cmd finished after 0.004s timeout 100s
Read CD-ROM12 failed
Child exited with 2
It appears from the code that the command 0xd8 is vendor specific, so I compiled cdda2wav
with the other likely candidate for a command, 0xd4, but no joy.
The Hitachi CDR-7930 is reported as being CDDA capable, but clearly it's not working here.
Has anyone been able to use this device with a cdda2wav or any other cdda reading program?
Can anyone recommend the next course of action in debugging?
Included below are the following: relevant dmesg output, full cdda2wav output, and readcd, it also
fails to read sectors off the device.
Thanks for any help.
- Scott
=== dmesg boot ===
NetBSD 1.4.1 (PO) #24: Fri Feb 4 09:57:13 PST 2000
srp@srp1.olywa.net:/usr/src/sys/arch/i386/compile/PO
cpu0: family 6 model 1 step 7
cpu0: Intel Pentium Pro (686-class)
real mem = 66715648
avail mem = 60035072
using 840 buffers containing 3440640 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82441FX PCI and Memory Controller (PMC) (rev. 0x02)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
pciide0 at pci0 dev 7 function 1: Intel 82371SB IDE Interface (PIIX3)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <Maxtor 85250D6>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 5009MB, 10856 cyl, 15 head, 63 sec, 512 bytes/sect x 10259160 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <HITACHI CDR-7930, , 1022> type 5 cdrom removable
cd0: 32-bits data port
cd0: drive supports PIO mode 3, DMA mode 1
uk0 at atapibus0 drive 1: <HP COLORADO 5GB, US04207649, 2.04000> type 1 sequential removable
uk0: unknown device
uk0: 32-bits data port
uk0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
cd0(pciide0:1:0): using PIO mode 0, DMA mode 1 (using DMA data transfers)
uk0(pciide0:1:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
=== cdda2wav output verbose ===
% /usr/local/audio/bin/cdda2wav -D /dev/cd0d -B -V
249856 bytes buffer memory requested, 4 buffers, 26 sectors
test unit ready...
Executing 'test unit ready' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 00 00 00 00 00 00
cmd finished after 0.000s timeout 100s
Executing 'inquiry' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 12 00 00 00 2A 00
cmd finished after 0.004s timeout 100s
Inquiry Data : 05 80 00 21 33 00 00 00 48 49 54 41 43 48 49 20 43 44 52 2D 37 39
Executing 'mode sense g1' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 5A 00 3F 00 00 00 00 00 08 00
cmd finished after 0.001s timeout 100s
Mode Sense Data 00 3E 02 00 00 00 00 00
Executing 'test unit ready' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 00 00 00 00 00 00
cmd finished after 0.000s timeout 100s
Executing 'mode sense g1' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 5A 00 2A 00 00 00 00 00 02 00
cmd finished after 0.002s timeout 100s
Mode Sense Data 00 16
Mode Sense Data (converted) 13
Executing 'mode sense g1' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 5A 00 2A 00 00 00 00 00 18 00
cmd finished after 0.001s timeout 100s
Mode Sense Data 00 16 02 00 00 00 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Mode Sense Data (converted) 13 02 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Mode Sense Data 13 02 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Mode Page Data 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Executing 'mode sense g1' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 5A 00 2A 00 00 00 00 00 18 00
cmd finished after 0.005s timeout 100s
Mode Sense Data 00 16 02 00 00 00 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Mode Sense Data (converted) 13 02 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Mode Sense Data 13 02 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Executing 'test unit ready' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 00 00 00 00 00 00
cmd finished after 0.002s timeout 100s
get density and sector size...
Executing 'mode sense g1' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 5A 00 01 00 00 00 00 00 10 00
cmd finished after 0.002s timeout 100s
Mode Sense Data 00 0E 02 00 00 00 00 00 01 06 00 0A 00 00 00 00
Mode Sense Data (converted) 0B 02 00 00 01 06 00 0A 00 00 00 00
Read TOC size (standard)...
Executing 'read toc size' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 43 00 00 00 00 00 01 00 04 00
cmd finished after 0.005s timeout 100s
Read TOC tracks (standard MSF)...
Executing 'read toc tracks ' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 43 02 00 00 00 00 01 00 74 00
cmd finished after 0.002s timeout 100s
Read TOC CD Text size ...
Executing 'read toc size (text)' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 43 00 05 00 00 00 01 00 04 00
cmd finished after 0.006s timeout 100s
Read TOC CD Text data ...
Executing 'read toc data (text)' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: 43 00 05 00 00 00 01 00 74 00
cmd finished after 0.006s timeout 100s
#Cdda2wav version 1.8_netbsd_1.4.1_i386_i386 soundcard support
AUDIOtrack pre-emphasis copy-permitted tracktype channels
1-13 no no audio 2
Table of Contents: total tracks:13, (total time 40:01.12)
1.( 2:55.00), 2.( 2:48.20), 3.( 3:10.67), 4.( 2:50.23), 5.( 2:14.25)
6.( 3:02.05), 7.( 2:42.32), 8.( 3:14.23), 9.( 2:54.37), 10.( 3:51.20)
11.( 4:00.08), 12.( 3:10.07), 13.( 3:05.45),
Table of Contents: starting sectors
1.( 0), 2.( 13125), 3.( 25745), 4.( 40062), 5.( 52835)
6.( 62910), 7.( 76565), 8.( 88747), 9.( 103320), 10.( 116407)
11.( 133752), 12.( 151760), 13.( 166017), lead-out( 179937)
CDINDEX discid: pni_ujt_j5BjdSkXG87oauljxD4-
CDDB discid: 0xa3095f0d
CD-Text: not detected
CD-Extra: not detected
samplefile size will be 423211868 bytes.
recording 2399.01600 seconds stereo with 16 bits @ 44100.0 Hz ->'audio'...
overlap:min/max/cur, jitter, percent_done:
??/??/??/??????? 0%
ReadSony12 CDDA...
Executing 'Read12' command on Bus 15 Target 0, Lun 0 timeout 100s
CDB: D8 00 00 00 00 00 00 00 00 1A 00 00
/usr/local/audio/bin/cdda2wav: Input/output error. Read12: scsi sendcmd: retryable error
CDB: D8 00 00 00 00 00 00 00 00 1A 00 00
status: 0x0 (GOOD STATUS)
resid: 61152
cmd finished after 0.004s timeout 100s
Read CD-ROM12 failed
Child exited with 2
=== readcd output ===
/mnt/bin/readcd dev=/dev/cd0d f=/mnt/2 sectors=0-100 -V
Executing 'test unit ready' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 00 00 00 00 00 00
cmd finished after 0.001s timeout 20s
Executing 'inquiry' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 12 00 00 00 24 00
cmd finished after 0.003s timeout 20s
Inquiry Data : 05 80 00 21 33 00 00 00 48 49 54 41 43 48 49 20 43 44 52 2D 37 39 33 30 20 20 20 20 20 20 20 20 31 30 32 32
Executing 'inquiry' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 12 00 00 00 38 00
cmd finished after 0.002s timeout 20s
Inquiry Data : 05 80 00 21 33 00 00 00 48 49 54 41 43 48 49 20 43 44 52 2D 37 39 33 30 20 20 20 20 20 20 20 20 31 30 32 32 20 20 20 20 20 20 20 20 39 36 2F 30 33 2F 32 35 20 20 20 20
Inquiry Data : ...!3...HITACHI CDR-7930 1022 96/03/25
Executing 'mode sense g1' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 5A 00 3F 00 00 00 00 00 08 00
cmd finished after 0.001s timeout 20s
Mode Sense Data 00 3E 02 00 00 00 00 00
Executing 'test unit ready' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 00 00 00 00 00 00
cmd finished after 0.000s timeout 20s
Executing 'mode sense g1' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 5A 00 2A 00 00 00 00 00 02 00
cmd finished after 0.002s timeout 20s
Mode Sense Data 00 16
Mode Sense Data (converted) 13
Executing 'mode sense g1' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 5A 00 2A 00 00 00 00 00 18 00
cmd finished after 0.002s timeout 20s
Mode Sense Data 00 16 02 00 00 00 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Mode Sense Data (converted) 13 02 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Mode Sense Data 13 02 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Mode Page Data 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Executing 'mode sense g1' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 5A 00 2A 00 00 00 00 00 18 00
cmd finished after 0.004s timeout 20s
Mode Sense Data 00 16 02 00 00 00 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Mode Sense Data (converted) 13 02 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Mode Sense Data 13 02 00 00 2A 0E 00 00 71 61 2B 03 05 83 00 FF 00 80 05 83
Executing 'test unit ready' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 00 00 00 00 00 00
cmd finished after 0.001s timeout 20s
Executing 'read capacity' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 25 00 00 00 00 00 00 00 00 00
cmd finished after 0.002s timeout 20s
Capacity: 179937 Blocks = 359874 kBytes = 351 MBytes = 368 prMB
Sectorsize: 2048 Bytes
Copy from SCSI (15,0,0) disk to file '/mnt/2'
end: 100
addr: 0 cnt: 30
Executing 'read_g1' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 28 00 00 00 00 00 00 00 1E 00
/mnt/bin/readcd: Input/output error. read_g1: scsi sendcmd: retryable error
CDB: 28 00 00 00 00 00 00 00 1E 00
status: 0x0 (GOOD STATUS)
resid: 61440
cmd finished after 2.723s timeout 20s
/mnt/bin/readcd: Input/output error. Cannot read source disk
/mnt/bin/readcd: Retrying from sector 0.
.
Executing 'read_g1' command on Bus 15 Target 0, Lun 0 timeout 20s
CDB: 28 00 00 00 00 00 00 00 01 00
/mnt/bin/readcd: Input/output error. read_g1: scsi sendcmd: retryable error
CDB: 28 00 00 00 00 00 00 00 01 00
status: 0x0 (GOOD STATUS)
resid: 2048
cmd finished after 2.724s timeout 20s