Subject: problem with cdrecord
To: None <netbsd-help@NetBSD.ORG>
From: Tom Rushworth <tbr@guarneri.dfi.tfic.bc.ca>
List: netbsd-help
Date: 03/18/1998 00:15:18
Hi all,
I'm looking for some help with a CD recorder.
Hardware: i386 (486DX2 66, 16Mb)
2 SCSI busses:
0 = Adaptec 2940 (PCI)
(disks, CDROM, tape)
1 = Adaptec 1542CP (ISA)
(CD recorder)
CDR = Yamaha CDR400tx
Software: OS version: 1.3
cdrecord version 1.5 (patched as for the NetBSD port)
(3 small patches were all I could find)
Boot messages:
Mar 1 11:07:04 guarneri /netbsd: isa0 at pcib0
Mar 1 11:07:04 guarneri /netbsd: aha0 at isa0 port 0x330-0x333 irq 11 drq 5
Mar 1 11:07:04 guarneri /netbsd: aha0: model AHA-1542CP, firmware D.0
Mar 1 11:07:04 guarneri /netbsd: aha0: unlocking mailbox interface
Mar 1 11:07:04 guarneri /netbsd: aha0: async, no parity
Mar 1 11:07:04 guarneri /netbsd: scsibus1 at aha0: 8 targets
Mar 1 11:07:05 guarneri /netbsd: cd4 at scsibus1 targ 5 lun 0: <YAMAHA, CDR400t
, 1.0j> SCSI2 5/cdrom removable
/dev entries:
$ ls -l *cd4* scgx
brw-r----- 1 root operator 6, 32 Jan 20 1997 cd4a
brw-r----- 1 root operator 6, 35 Jan 20 1997 cd4d
crw-r----- 1 root operator 15, 32 Jan 20 1997 rcd4a
crw-r----- 1 root operator 15, 35 Jan 20 1997 rcd4d
lrwxr-xr-x 1 root wheel 4 Mar 17 21:31 scgx -> cd4a
$
Symptoms:
I can use the CD recorder as a normal CDROM, but can't get cdrecord
to access the device:
$ cdrecord -dummy -V dev=1,5,0 tbr.raw
Cdrecord release 1.5 Copyright (C) 1995-1997 Jörg Schilling
scsidev: '1,5,0'
scsibus: 1 target: 5 lun: 0
cdrecord: Inappropriate ioctl for device. Cannot get SCSI addr.
Executing 'test unit ready' command on Bus 1 Target 5, Lun 0 timeout 20s
CDB: 00 00 00 00 00 00
cdrecord: Undefined error: 0. test unit ready: scsi sendcmd: fatal error
Executing 'test unit ready' command on Bus 1 Target 5, Lun 0 timeout 20s
CDB: 00 00 00 00 00 00
cdrecord: Undefined error: 0. test unit ready: scsi sendcmd: fatal error
cdrecord: Cannot do inquiry for CD-Recorder.
Executing 'test unit ready' command on Bus 1 Target 5, Lun 0 timeout 20s
CDB: 00 00 00 00 00 00
cdrecord: Undefined error: 0. test unit ready: scsi sendcmd: fatal error
$
It appears that the failure is in the file scsi-bsd.c, function scsi_setup(),
at the first ioctl() (SCIOCIDENTIFY).
Any thoughts on what I might have done wrong, or where to look for further
insight? I don't want to have to read the entire SCSI system source code
if I can help it :)! Any help appreciated - thanks in advance.
Tom Rushworth < tbr <at> acm.org >