Subject: CD Writer failure
To: None <current-users@netbsd.org>
From: Dave Burgess <burgess@cynjut.neonramp.com>
List: current-users
Date: 03/11/2001 23:53:15
Hello,

I've been working on my CD Writer (a Sony CDU-926S).  It's a SCSI
CD Writer (2x) and reader (6x).  I've been trying to use cdrecord with 
it and am having no luck.  The dmesg information is attached below.
See attachment A for a quick look.  The dmesg output includes the probe 
information and the SCB information.  As near as I can tell, 'cdrecord' 
is doing a SCSI 'get space' command, which fails.  This doesn't really 
surprise me at this point, since this is a CD ROM drive and should, 
as such, have no space available....  I looked at the SCSI code in the
kernel, and that lack of astonishment is reasonable, since the code
for command 0x25 basically says "this is a ROM - of course there's
no space" and returns automatically.

That notwithstanding, I know there are plenty of other folks using
SCSI CD writers out there.  Is it something I'm doing?  Or is it possible
that there is something else wrong.  For example, the cdrecord package
recognizes the drive when there is no drive in the carrier (see Attachment 
B below).

I've tried /dev/scgx, /dev/su0-2-0, 'cdrecord dev=2,0', setting up a
/etc/defaults/cdrecord file (linked to /dev/default, to match the
cdrecord package).  If anyone else has a suggestion, I'd sure be 
glad to hear it.

Dave Burgess


- - - - - - -Attachment A - - - - - - - -

NetBSD 1.5.1_ALPHA (CYNJUT-SCSI-Verbose) #0: Sun Mar 11 01:01:00 CST 2001
    burgess@cynjut.neonramp.com:/usr/src/sys/arch/i386/compile/CYNJUT-CD
cpu0: AMD K6 (586-class)
total memory = 127 MB
avail memory = 114 MB
using 1659 buffers containing 6636 KB of memory
BIOS32 rev. 0 found at 0xfb040
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x7100 (rev. 0x01)
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x8086 product 0x7110 (rev. 0x01)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC AC22500L>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 2441 MB, 4960 cyl, 16 head, 63 sec, 512 bytes/sect x 4999680 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 7 function 2: vendor 0x8086 product 0x7112 (rev. 0x01)
uhci0: interrupting at irq 12
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
vendor 0x8086 product 0x7113 (miscellaneous bridge, revision 0x01) at pci0 dev 7 function 3 not configured
ahc1 at pci0 dev 9 function 0
ahc1: interrupting at irq 12
ahc1: aic7880 Single Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc1 channel 0: 8 targets, 8 luns per target
vga1 at pci0 dev 10 function 0: vendor 0x1023 product 0x9660 (rev. 0xd3)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
lpt0 at isa0 port 0x378-0x37b: polled
nele0 at isa0 port 0x320-0x337 irq 9 drq 7
le0 at nele0: NE2100 Ethernet
le0: address 08:00:09:61:66:9d
le0: 8 receive buffers, 2 transmit buffers
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask fde5 netmask ffe5 ttymask ffe7
scsibus0: waiting 2 seconds for devices to settle...
ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
cd0 at scsibus0 target 2 lun 0: <SONY, CD-R   CDU926S, 1.1f> SCSI2 5/cdrom removable
IPsec: Initialized Security Association Processing.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
cd0(ahc1:2:0):  Check Condition on CDB: 0x25 00 00 00 00 00 00 00 00 00
    SENSE KEY:  Illegal Request
     ASC/ASCQ:  ASC 0x89 ASCQ 0x00

ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
cd0(ahc1:2:0):  Check Condition on CDB: 0x25 00 00 00 00 00 00 00 00 00
    SENSE KEY:  Illegal Request
     ASC/ASCQ:  ASC 0x89 ASCQ 0x00

ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
cd0(ahc1:2:0):  Check Condition on CDB: 0x25 00 00 00 00 00 00 00 00 00
    SENSE KEY:  Illegal Request
     ASC/ASCQ:  ASC 0x89 ASCQ 0x00

ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
cd0(ahc1:2:0):  Check Condition on CDB: 0x25 00 00 00 00 00 00 00 00 00
    SENSE KEY:  Illegal Request
     ASC/ASCQ:  ASC 0x89 ASCQ 0x00

ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
cd0(ahc1:2:0):  Check Condition on CDB: 0x25 00 00 00 00 00 00 00 00 00
    SENSE KEY:  Illegal Request
     ASC/ASCQ:  ASC 0x89 ASCQ 0x00

ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
cd0(ahc1:2:0):  Check Condition on CDB: 0x25 00 00 00 00 00 00 00 00 00
    SENSE KEY:  Illegal Request
     ASC/ASCQ:  ASC 0x89 ASCQ 0x00

ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
cd0(ahc1:2:0):  Check Condition on CDB: 0x25 00 00 00 00 00 00 00 00 00
    SENSE KEY:  Illegal Request
     ASC/ASCQ:  ASC 0x89 ASCQ 0x00

- - - - - - - - Attachment B - - - - - - - -
testing# cdrecord -checkdrive
Cdrecord 1.9 (i386-unknown-netbsd1.5.1.) Copyright (C) 1995-2000 Jörg Schilling
scsidev: '0,2,0'
scsibus: 0 target: 2 lun: 0
Using libscg version 'schily-0.1'
cdrecord: Warning: using inofficial libscg transport code version (frueauf-scsi-bsd.c-1.31nb1 '@(#)scsi-bsd.c   1.31 00/07/01 Copyright 1997 J. Schilling').
Device type    : Removable CD-ROM
Version        : 2
Response Format: 2
Capabilities   : SYNC LINKED 
Vendor_info    : 'SONY    '
Identifikation : 'CD-R   CDU926S  '
Revision       : '1.1f'
Device seems to be: Sony CDU-924S.
Mar 12 05:44:16 testing /netbsd: ahc1: target 2 synchronous at 10.0MHz, offset = 0xf
Using driver for Sony CDU-924 (sony_cdu924).
Driver flags   : SWABAUDIO
testing#