2002-02-20 20:44:44

by Ed Sweetman

[permalink] [raw]
Subject: ide cd-recording not working in 2.4.18-rc2-ac1

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.


2002-02-21 01:40:25

by Alan

[permalink] [raw]
Subject: Re: ide cd-recording not working in 2.4.18-rc2-ac1

> 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 ?

2002-02-21 03:42:54

by Ed Sweetman

[permalink] [raw]
Subject: Re: ide cd-recording not working in 2.4.18-rc2-ac1

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)



2002-02-21 08:08:38

by Rogier Wolff

[permalink] [raw]
Subject: Re: ide cd-recording not working in 2.4.18-rc2-ac1

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.

A friend of mine had exactly the same problems. These were eventually
solved by buying a new CDR drive.

We tried running the "cdrecord" from the old installation: Same problem.

We tried it on the remainder of the spindle that used to work with the old
installation: Same problem.

We tried it with the CDR discs that I use here: Same problem.

(I was suspecting a problem with the disks as "start of lead in:
97:23:00" sounded a bit odd to me, and would result in "logical block
address out of range", So I first suspected the discs to be
incompatible with the current cdrecord.)


> > 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 ?

His old installation won't boot anymore, so in that case we can't
easily try anymore... Grmbl.

> > SCSI subsystem driver Revision: 1.00
> > scsi0 : SCSI host adapter emulation for IDE ATAPI devices
>
> Right same as I am using

Ehmm. My story is about a real SCSI CDR drive. He now has an IDE drive.

> > not sure what else I can get informationwize about what the drive is
> > doing.
>
> What type of IDE controller ?

NCR810.

Roger.

--
** [email protected] ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* There are old pilots, and there are bold pilots.
* There are also old, bald pilots.

2002-02-21 20:24:07

by Tony.P.Lee

[permalink] [raw]
Subject: RE: ide cd-recording not working in 2.4.18-rc2-ac1


>
> 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.