hi Peter, There is still some problems. Error messages are listed as followllings: cdrwtool -d /dev/hdc -q -t 4 using device /dev/hdc setting speed to 4 1458KB internal buffer setting write speed to 4x Settings for /dev/hdc: Fixed packets, size 32 Mode-2 disc I'm going to do a quick setup of /dev/hdc. The disc is going to be blanked and formatted with one big track. All data on the device will be lost!! Press CTRL-C to cancel now. ENTER to continue. Initiating quick disc blank Disc capacity is 295264 blocks (590528KB/576MB) Formatting track wait_cmd: Input/output error Command failed: 04 17 00 00 00 00 00 00 00 00 00 00 - sense 05.26.00 format disc: Input/output error tail -f /var/log/messages Mar 25 08:35:06 localhost kernel: cdrom_transfer_packet_command: 00 00 00 00 00 00 00 00 00 00 00 00 Mar 25 08:35:06 localhost last message repeated 2 times Mar 25 08:35:06 localhost kernel: cdrom_transfer_packet_command: 1e 00 00 00 01 00 00 00 00 00 00 00 Mar 25 08:35:06 localhost kernel: cdrom_transfer_packet_command: 5c 00 00 00 00 00 00 00 0c 00 00 00 Mar 25 08:35:06 localhost kernel: cdrom_transfer_packet_command: 5a 00 05 00 00 00 00 00 10 00 00 00 Mar 25 08:35:06 localhost kernel: cdrom_transfer_packet_command: 5a 00 05 00 00 00 00 00 3c 00 00 00 Mar 25 08:35:06 localhost kernel: cdrom_transfer_packet_command: bb 00 ff ff 02 c0 00 00 00 00 00 00 Mar 25 08:35:06 localhost kernel: cdrom_transfer_packet_command: 5a 00 85 00 00 00 00 00 10 00 00 00 Mar 25 08:35:06 localhost kernel: cdrom_transfer_packet_command: 5a 00 85 00 00 00 00 00 3c 00 00 00 Mar 25 08:35:06 localhost kernel: cdrom_transfer_packet_command: 55 10 00 00 00 00 00 00 3c 00 00 00 Mar 25 08:35:30 localhost kernel: cdrom_transfer_packet_command: a1 01 00 00 00 00 00 00 00 00 00 00 Mar 25 08:35:30 localhost kernel: cdrom_transfer_packet_command: 51 00 00 00 00 00 00 00 02 00 00 00 Mar 25 08:35:30 localhost kernel: cdrom_transfer_packet_command: 51 00 00 00 00 00 00 00 22 00 00 00 Mar 25 08:35:30 localhost kernel: cdrom_transfer_packet_command: 52 01 00 00 00 01 00 00 1c 00 00 00 Mar 25 08:35:30 localhost kernel: cdrom_transfer_packet_command: 04 17 00 00 00 00 00 00 00 00 00 00 Mar 25 08:35:30 localhost kernel: hdc: packet command error: status=0x51 { DriveReady SeekComplete Error } Mar 25 08:35:30 localhost kernel: hdc: packet command error: error=0x54 Mar 25 08:35:30 localhost kernel: cdrom_transfer_packet_command: 03 00 00 00 12 00 00 00 00 00 00 00 Mar 25 08:35:30 localhost kernel: ATAPI device hdc: Mar 25 08:35:30 localhost kernel: Error: Illegal request -- (Sense key=0x05) Mar 25 08:35:30 localhost kernel: Invalid field in parameter list -- (asc=0x26, ascq=0x00) Mar 25 08:35:30 localhost kernel: The failed "Format Unit" packet command was: Mar 25 08:35:30 localhost kernel: "04 17 00 00 00 00 00 00 00 00 00 00 " Mar 25 08:35:30 localhost kernel: cdrom_transfer_packet_command: 1e 00 00 00 00 00 00 00 00 00 00 00 Thank you very much BR, kurt Peter Osterlund <petero2@telia.com> wrote: On Wed, 24 Mar 2004, ke chen wrote:
Dear Peter,
I has almost the same problem, when try to format a disk: hdc: packet command error: status=0x51 { DriveReady SeekComplete Error } hdc: packet command error: error=0x54
but my kernel version is 2.4.23, and with a CD writer: CD-W224EA, ATAPI CD/DVD-ROM drive.
Could you please see my previous post: Packet writing: cdrwtool -d /dev/hdc -q failed?
Maybe disabling the seek commands fixes this problem too. Please test this patch. --- linux/drivers/ide/ide-cd.c.orig 2004-03-24 23:48:47.000000000 +0100 +++ linux/drivers/ide/ide-cd.c 2004-03-24 23:47:58.000000000 +0100 @@ -913,6 +913,7 @@ unsigned int timeout = pc->timeout; struct cdrom_info *info = drive->driver_data; ide_startstop_t startstop; + int i; if (CDROM_CONFIG_FLAGS(drive)->drq_interrupt) { /* Here we should have been called after receiving an interrupt @@ -933,6 +934,10 @@ ide_set_handler(drive, handler, timeout, cdrom_timer_expiry); /* Send the command to the device. */ + printk("cdrom_transfer_packet_command:"); + for (i = 0; i < cmd_len; i++) + printk(" %02x", cmd_buf[i]); + printk("\n"); HWIF(drive)->atapi_output_bytes(drive, cmd_buf, cmd_len); /* Start the DMA if need be */ @@ -1283,7 +1288,7 @@ } -#define IDECD_SEEK_THRESHOLD (1000) /* 1000 blocks */ +#define IDECD_SEEK_THRESHOLD (10000000) /* 1000 blocks */ #define IDECD_SEEK_TIMER (5 * WAIT_MIN_SLEEP) /* 100 ms */ #define IDECD_SEEK_TIMEOUT WAIT_CMD /* 10 sec */ -- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340 -- To unsubscribe, e-mail: packet-writing-unsubscribe@suse.com For additional commands, e-mail: packet-writing-help@suse.com --------------------------------- Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time.