public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ide cd-recording not working in 2.4.18-rc2-ac1
@ 2002-02-20 20:44 Ed Sweetman
  2002-02-21  1:54 ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Ed Sweetman @ 2002-02-20 20:44 UTC (permalink / raw)
  To: linux-kernel

I get this on every cd I try and I've tried more than I'd have liked to.


Performing OPC...
/usr/bin/cdrecord: Input/output error. write_g1: scsi sendcmd: no error
CDB:  2A 00 00 00 00 1F 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 21 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x21 Qual 0x00 (logical block address out of range) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.003s timeout 40s
Track 01:   0 of 628 MB written.
write track data: error after 63488 bytes
Writing  time:   10.171s
Sense Bytes: 70 00 00 00 00 00 00 0A 00 00 00 00 00 00 00 00 00 00
/usr/bin/cdrecord: Input/output error. close track/session: scsi
sendcmd: no error
CDB:  5B 00 02 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 2C 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x2C Qual 0x00 (command sequence error) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.001s timeout 480s
cmd finished after 0.001s timeout 480s



Now I know every cd isn't bad because they used to work in older
2.4.17ish kernels.  I have scsi-generic support compiled as a module as
well as ide-scsi.  This is what the kernel detects the drive as

SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: CREATIVE  Model:  CD-RW RW8438E    Rev: FC03
  Type:   CD-ROM                             ANSI SCSI revision: 02

That is correct.  This is what hdparm tells about the drive 
/dev/hdc:
 HDIO_GET_MULTCOUNT failed: Input/output error
 I/O support  =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 HDIO_GET_NOWERR failed: Input/output error
 readonly     =  0 (off)
 BLKRAGET failed: Input/output error
 HDIO_GETGEO failed: Invalid argument
 busstate     =  1 (on)

not sure what else I can get informationwize about what the drive is
doing.  


^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: ide cd-recording not working in 2.4.18-rc2-ac1
@ 2002-02-21 20:23 Tony.P.Lee
  0 siblings, 0 replies; 5+ messages in thread
From: Tony.P.Lee @ 2002-02-21 20:23 UTC (permalink / raw)
  To: ed.sweetman, alan; +Cc: linux-kernel


> 
> On Wed, 2002-02-20 at 20:54, Alan Cox wrote:
> > > I get this on every cd I try and I've tried more than I'd 
> have liked to.
> > > 
> > > Performing OPC...
> > > 
> > /usr/bin/cdrecord: Input/output error. write_g1: scsi 
> sendcmd: no error
> > > CDB:  2A 00 00 00 00 1F 00 00 1F 00
> > > status: 0x2 (CHECK CONDITION)
> > > Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 21 00 00 00
> > > Sense Key: 0x5 Illegal Request, Segment 0
> > > Sense Code: 0x21 Qual 0x00 (logical block address out of 
> range) Fru 0x0
> > 
> > Thats saying that cdrecord sent the drive a bogus command.
> > 
> > > Now I know every cd isn't bad because they used to work in older
> > > 2.4.17ish kernels.  I have scsi-generic support compiled 
> as a module as
> > 
> > Does it still work with them ?
> > 
> > > SCSI subsystem driver Revision: 1.00
> > > scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> > 
> > Right same as I am using
> > 
> > > not sure what else I can get informationwize about what 
> the drive is
> > > doing.  
> > 
> > What type of IDE controller ?
> 
> VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1
> 
> 
> If i retry over and over sometimes it will eventually work.  
> (same cd)  
> 
> 
> 

In my previous project (4 years ago), I worked on HP/Philips' CDR/W drive's 
(2600 IDE, SCSI 2x drive) firmware.  

OPC is Optical (P something) Calibration.  If the CDR program is designed
correctly (like Easy CD Creator), it issues the the calibrated command and record
the calibrated value and that CDR(W) disk ID in the PC.  So the drive
doesn't have to recalibrate again if the same CDR(W) is inserted back for 
packet writing or multi-session writing.  CDR disk has limited (10) "calibration
area" to perform the this calibration procedure.  When all 10 calibration areas are
used, you can't calibrate for that CDR anymore and you can not write to that
CDR disk neither.  If you do disk at once or just writing a few session this is not
an issue.   It is only an issue for packet writing or Track and once and you have to 
reject and reuse the same disk > 10 times.   CDRW disk can reuse the calibrate area.  
You can try that drive with CDRW disk.  But like Rogier Wolff said, it is very likely 
be the CDR drive issue instead of SCSI/IDE issue.

--
Tony Lee           Nokia Networks, Inc. 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-02-21 20:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-20 20:44 ide cd-recording not working in 2.4.18-rc2-ac1 Ed Sweetman
2002-02-21  1:54 ` Alan Cox
2002-02-21  3:42   ` Ed Sweetman
2002-02-21  8:08   ` Rogier Wolff
  -- strict thread matches above, loose matches on Subject: below --
2002-02-21 20:23 Tony.P.Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox