Subject: kern/22987: Kernel 1.6.1 doesnt burn on IDE-CD-Writer
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <rudihl@gmx.de>
List: netbsd-bugs
Date: 09/28/2003 12:11:46
>Number:         22987
>Category:       kern
>Synopsis:       Kernel 1.6.1 doesnt burn on IDE-CD-Writer
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 28 12:12:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rudi Ludwig
>Release:        1.6.1
>Organization:
-private-
>Environment:
NetBSD steinlaus 1.6.1 NetBSD 1.6.1 (STEINLAUS) #1: Sun May 25 21:12:55 CEST 2003     rudi@steinlaus:/usr/src/sys/arch/i386/compile/STEINLAUS i386


>Description:
trying to burn a CD on kernel 1.6.1 fails with my
kompiled kernel as well as with Netbsd.Generic
Drive is an A-Open Atapi-Ide

Symptom:
The simulation-run of xcdroast works okay but the
real burning fails.

Kernel-Syslog, cdrecord -scanbus and OUtput from
Xcdroast you find attached.

I already updated cdrecord but the problem persists.

I had a trial install with 1.5.2 a while ago and it
worked then, but since I need ISDN not an option.

Regards,

Rudi

"some" additional information

cdrecord -scanbus
Cdrecord 1.10 (i386-unknown-netbsd1.6) Copyright (C) 1995-2001 J\xf6rg Schilling
Using libscg version 'schily-0.5'
cdrecord: Warning: using inofficial libscg transport code version (frueauf-scsi-
bsd.c-1.40nb1 '@(#)scsi-bsd.c   1.40 01/03/18 Copyright 1997 J. Schilling').
scsibus15:
        15,0,0  1500) *
        15,1,0  1501) 'AOPEN   ' 'CD-RW CRW1232PRO' '1.00' Removable CD-ROM
        15,2,0  1502) *
        15,3,0  1503) *
        15,4,0  1504) *
        15,5,0  1505) *
        15,6,0  1506) *
        15,7,0  1507) *


Kernel Syslog:
-------------------------------------------
Sep 21 14:59:37 steinlaus /netbsd: cd0(wdc0:0:1): illegal request, data = 00 00
00 00 64 00 00 00 00 00 00 00
Sep 21 14:59:37 steinlaus /netbsd: cd0: dos partition I/O error


Saving the output from Xcdroast:
--------------------------------------------
Calling: /usr/pkg/lib/xcdroast-0.98/bin/xcdrwrap CDRECORD dev= "15,1,0" fs=4096k
  -v -useinfo speed=4 -dao -eject -pad -audio "/usr/tmp/track-01.wav" ...

scsidev: '15,1,0'
pregap1: -1
scsibus: 15 target: 1 lun: 0
Cdrecord 1.10 (i386-unknown-netbsd1.6) Copyright (C) 1995-2001 J\xf6rg Schilling
cdrecord: Warning: using inofficial libscg transport code version (frueauf-scsi-
bsd.c-1.40nb1 '@(#)scsi-bsd.c   1.40 01/03/18 Copyright 1997 J. Schilling').
TOC Type: 0 = CD-DA
Using libscg version 'schily-0.5'
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'AOPEN   '
Identifikation : 'CD-RW CRW1232PRO'
Revision       : '1.00'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags   : SWABAUDIO
Drive buf size : 1561728 = 1525 KB
FIFO size      : 4194304 = 4096 KB
Track 01: audio  36 MB (03:36.13) no preemp
Track 02: audio  35 MB (03:31.86) no preemp pregapsize:   0
Track 03: audio  30 MB (03:04.16) no preemp pregapsize:   0
Track 04: audio  44 MB (04:22.00) no preemp pregapsize:   0
Track 05: audio  35 MB (03:33.37) no preemp pregapsize:   0
Track 06: audio  35 MB (03:33.49) no preemp pregapsize:   0
Track 07: audio  48 MB (04:48.17) no preemp pregapsize:   0
Track 08: audio  33 MB (03:16.56) no preemp pregapsize:   0
Track 09: audio  35 MB (03:28.24) no preemp pregapsize:   0
Track 10: audio  36 MB (03:34.36) no preemp pregapsize:   0
Track 11: audio  36 MB (03:38.90) no preemp pregapsize:   0
Total size:     408 MB (40:27.26) = 182045 sectors
Lout start:     408 MB (40:29/20) = 182045 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 4
Is not unrestricted
Is not erasable
Disk sub type: Medium Type A, high Beta category (A+) (3)
ATIP start of lead in:  -11250 (97:32/00)
ATIP start of lead out: 337275 (74:59/00)
Disk type:    Long strategy type (Cyanine, AZO or similar)
Manuf. index: 26
Manufacturer: TDK Corporation
Blocks total: 337275 Blocks current: 337275 Blocks remaining: 155230
Starting to write CD/DVD at speed 4 in write mode for single session.
^H^H^H^H^H^H^H^H^H^H0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
cdrecord: Input/output error. send opc: scsi sendcmd: retryable error
CDB:  54 01 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 03 00 00 00 00 0C 00 00 00 00 64 C0 00 00 00 00 00 00 00 00 0
0 00 00 00 00 00 00 00 00 00
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x64 Qual 0xC0 (illegal mode for this track) [No matching qualifier]
 Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 3.968s timeout 200s
cdrecord: Bad file descriptor. OPC failed.





>How-To-Repeat:
burn a cd with xcdroast
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: