Skip to contentSkip to conversation

Working ide-cd burn/rip, 2.5.44

DISCUSSION Matt Reppert 2 participants 5 messages Nov 3, 2002

lore
Share & tools
lore
#0 lore raw

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 "

#1 lore raw
Quoted 4 lines · Matt Reppert

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.

Signature · 1 line
Jens Axboe

===== drivers/ide/ide-cd.c 1.27 vs edited =====

drivers/ide/ide-cd.c +7 -1
@@ -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);
#2 lore raw
Quoted 11 lines · On Sun, 3 Nov 2002 10:42:29 +0100 Jens Axboe <[email protected]> wrote:
Quoted 4 lines · Matt Reppert

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

#3 lore raw
Quoted 1 line · Matt Reppert
3-arashi:~$ /opt/schily/bin/cdrecord dev=ATAPI:0,0,0 -checkdrive

use open by device name, ie dev=/dev/hdX

Signature · 1 line
Jens Axboe
#4 lore raw
Quoted 4 lines · On Sun, 3 Nov 2002 17:34:52 +0100 Jens Axboe <[email protected]> wrote:
Quoted 1 line · Matt Reppert
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