* Working ide-cd burn/rip, 2.5.44
@ 2002-11-03 0:43 Matt Reppert
2002-11-03 9:42 ` Jens Axboe
0 siblings, 1 reply; 5+ messages in thread
From: Matt Reppert @ 2002-11-03 0:43 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 6488 bytes --]
Just FYI. I tested the ide-cd based CD burning and reading with the
cdrtools alpha ... kernel 2.5.44-mm6, cdrtools-1.11a39. If I boot
into a clean system, only load ide-cd (none of the ide-scsi-related
bits), and "do it", it works well.
Invocations:
cdda2wav dev=/dev/hdc 1
cdrecord dev=ATAPI:0,0,0 -data dir.iso
I do get a lot of warnings from the block layer, though, as below.
I get some warnings, then it counts down, and it spits out more
warnings, but then it tells me it wrote out a track, writes the TOC,
and terminates successfully.
Matt
-----------------------------------------------------------------------
spurious 8259A interrupt: IRQ7.
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 02 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 08 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid command operation code -- (asc=0x20, ascq=0x00)
The failed "<NULL>" packet command was:
"e9 00 02 00 00 00 00 00 00 00 08 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 02 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 08 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in parameter list -- (asc=0x26, ascq=0x00)
The failed "Mode Select 10" packet command was:
"55 10 00 00 00 00 00 00 10 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 02 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 08 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid command operation code -- (asc=0x20, ascq=0x00)
The failed "<NULL>" packet command was:
"e9 00 02 00 00 00 00 00 00 00 08 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 02 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 08 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 02 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 08 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid command operation code -- (asc=0x20, ascq=0x00)
The failed "<NULL>" packet command was:
"e9 00 02 00 00 00 00 00 00 00 08 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in parameter list -- (asc=0x26, ascq=0x00)
The failed "Mode Select 10" packet command was:
"55 10 00 00 00 00 00 00 10 00 00 00 00 00 00 00 "
[-- Attachment #2: dmesg-stuff --]
[-- Type: application/octet-stream, Size: 5865 bytes --]
spurious 8259A interrupt: IRQ7.
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 02 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 08 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid command operation code -- (asc=0x20, ascq=0x00)
The failed "<NULL>" packet command was:
"e9 00 02 00 00 00 00 00 00 00 08 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 02 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 08 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in parameter list -- (asc=0x26, ascq=0x00)
The failed "Mode Select 10" packet command was:
"55 10 00 00 00 00 00 00 10 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 02 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 08 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid command operation code -- (asc=0x20, ascq=0x00)
The failed "<NULL>" packet command was:
"e9 00 02 00 00 00 00 00 00 00 08 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 02 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 08 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 02 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Mode Sense 10" packet command was:
"5a 00 30 00 00 00 00 00 08 00 00 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid command operation code -- (asc=0x20, ascq=0x00)
The failed "<NULL>" packet command was:
"e9 00 02 00 00 00 00 00 00 00 08 00 00 00 00 00 "
hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
end_request: I/O error, dev 16:00, sector 0
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Invalid field in parameter list -- (asc=0x26, ascq=0x00)
The failed "Mode Select 10" packet command was:
"55 10 00 00 00 00 00 00 10 00 00 00 00 00 00 00 "
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Working ide-cd burn/rip, 2.5.44
2002-11-03 0:43 Working ide-cd burn/rip, 2.5.44 Matt Reppert
@ 2002-11-03 9:42 ` Jens Axboe
2002-11-03 16:29 ` Matt Reppert
0 siblings, 1 reply; 5+ messages in thread
From: Jens Axboe @ 2002-11-03 9:42 UTC (permalink / raw)
To: Matt Reppert; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 510 bytes --]
On Sat, Nov 02 2002, Matt Reppert wrote:
> Just FYI. I tested the ide-cd based CD burning and reading with the
> cdrtools alpha ... kernel 2.5.44-mm6, cdrtools-1.11a39. If I boot
> into a clean system, only load ide-cd (none of the ide-scsi-related
> bits), and "do it", it works well.
You definitely don't want anything _less_ than 2.5.45 at all, it's a
miracle it appears to work :-)
Please retest 2.5.45, thanks, and you should probably add this patch to
fix the cdb output length issue.
--
Jens Axboe
[-- Attachment #2: idecd-cdb-size-2 --]
[-- Type: text/plain, Size: 1094 bytes --]
===== drivers/ide/ide-cd.c 1.27 vs edited =====
--- 1.27/drivers/ide/ide-cd.c Fri Oct 18 20:02:55 2002
+++ edited/drivers/ide/ide-cd.c Sun Nov 3 10:33:17 2002
@@ -310,6 +310,7 @@
#include <linux/completion.h>
#include <scsi/scsi.h> /* For SCSI -> ATAPI command conversion */
+#include "../scsi/scsi.h"
#include <asm/irq.h>
#include <asm/io.h>
@@ -877,10 +878,10 @@
ide_handler_t *handler)
{
unsigned char *cmd_buf = rq->cmd;
- int cmd_len = sizeof(rq->cmd);
unsigned int timeout = rq->timeout;
struct cdrom_info *info = drive->driver_data;
ide_startstop_t startstop;
+ unsigned int cmd_len;
if (CDROM_CONFIG_FLAGS(drive)->drq_interrupt) {
/* Here we should have been called after receiving an interrupt
@@ -902,6 +903,11 @@
/* Arm the interrupt handler. */
ide_set_handler(drive, handler, timeout, cdrom_timer_expiry);
+
+ /* cdb length, pad upto the 12th byte if necessary */
+ cmd_len = COMMAND_SIZE(rq->cmd[0]);
+ if (cmd_len < 12)
+ cmd_len = 12;
/* Send the command to the device. */
HWIF(drive)->atapi_output_bytes(drive, cmd_buf, cmd_len);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Working ide-cd burn/rip, 2.5.44
2002-11-03 9:42 ` Jens Axboe
@ 2002-11-03 16:29 ` Matt Reppert
2002-11-03 16:34 ` Jens Axboe
0 siblings, 1 reply; 5+ messages in thread
From: Matt Reppert @ 2002-11-03 16:29 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-kernel
On Sun, 3 Nov 2002 10:42:29 +0100
Jens Axboe <axboe@suse.de> wrote:
> On Sat, Nov 02 2002, Matt Reppert wrote:
> > Just FYI. I tested the ide-cd based CD burning and reading with the
> > cdrtools alpha ... kernel 2.5.44-mm6, cdrtools-1.11a39. If I boot
> > into a clean system, only load ide-cd (none of the ide-scsi-related
> > bits), and "do it", it works well.
>
> You definitely don't want anything _less_ than 2.5.45 at all, it's a
> miracle it appears to work :-)
>
> Please retest 2.5.45, thanks, and you should probably add this patch to
> fix the cdb output length issue.
Hmmm ...
3-arashi:~$ uname -r
2.5.45
3-arashi:~$ /opt/schily/bin/cdrecord dev=ATAPI:0,0,0 -checkdrive
Cdrecord 1.11a39 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J�rg Schilling
scsidev: 'ATAPI:0,0,0'
devname: 'ATAPI'
scsibus: 0 target: 0 lun: 0
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.7'
Device type : Disk
Version : 0
Response Format: 0
Vendor_info : 'ADAPTEC '
Identifikation : 'ACB-5500 '
Revision : 'FAKE'
Device seems to be: Adaptec 5500.
/opt/schily/bin/cdrecord: Sorry, no CD/DVD-Drive found on this target.
...
3-arashi:~$ uname -r
2.5.44-mm6
3-arashi:~$ /opt/schily/bin/cdrecord dev=ATAPI:0,0,0 -checkdrive
Cdrecord 1.11a39 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J�rg Schilling
scsidev: 'ATAPI:0,0,0'
devname: 'ATAPI'
scsibus: 0 target: 0 lun: 0
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.7'
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'PLEXTOR '
Identifikation : 'CD-R PX-W1210A'
Revision : '1.07'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
3-arashi:~$
Makes for some interesting goings-on ... I'm guessing you want more
info on what I'm running? :) Tell me what to send, I'll send it.
Matt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Working ide-cd burn/rip, 2.5.44
2002-11-03 16:29 ` Matt Reppert
@ 2002-11-03 16:34 ` Jens Axboe
2002-11-03 17:10 ` Matt Reppert
0 siblings, 1 reply; 5+ messages in thread
From: Jens Axboe @ 2002-11-03 16:34 UTC (permalink / raw)
To: Matt Reppert; +Cc: linux-kernel
On Sun, Nov 03 2002, Matt Reppert wrote:
> 3-arashi:~$ /opt/schily/bin/cdrecord dev=ATAPI:0,0,0 -checkdrive
use open by device name, ie dev=/dev/hdX
--
Jens Axboe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Working ide-cd burn/rip, 2.5.44
2002-11-03 16:34 ` Jens Axboe
@ 2002-11-03 17:10 ` Matt Reppert
0 siblings, 0 replies; 5+ messages in thread
From: Matt Reppert @ 2002-11-03 17:10 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-kernel
On Sun, 3 Nov 2002 17:34:52 +0100
Jens Axboe <axboe@suse.de> wrote:
> On Sun, Nov 03 2002, Matt Reppert wrote:
> > 3-arashi:~$ /opt/schily/bin/cdrecord dev=ATAPI:0,0,0 -checkdrive
>
> use open by device name, ie dev=/dev/hdX
Ah ... that makes all the difference. My bad. Works under 2.5.45
as well. (I blame ide-scsi for continuing to make me think like my
CDRW is on a SCSI bus somewhere ... ^^; )
Thanks,
Matt
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-11-03 17:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-03 0:43 Working ide-cd burn/rip, 2.5.44 Matt Reppert
2002-11-03 9:42 ` Jens Axboe
2002-11-03 16:29 ` Matt Reppert
2002-11-03 16:34 ` Jens Axboe
2002-11-03 17:10 ` Matt Reppert
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.