Cdrwtool segmentation fault - kernel 2.6.0-test*
Hi, I'd like to be able to have packet-writing working, but cannot figure out whether I'm doing something wrong or there is a bug somewhere. I've compiled (for Athlon) Linux kernel 2.6.0-test1 (and just a moment ago 2.6.0-test2, too) with udf and packet-cd support, but _without_ any scsi support (see the attached .config) and also tryed to applay the patch http://w1.894.telia.com/~u89404340/patches/packet/2.5/packet-2.6.0-test1.pat..., without better results. I have a Promise controller for the HD (so it is /dev/hde), a cd/dvd drive at /dev/hda and the cd-rw device at /dev/hdb (the model is HL-DT-ST GCE-8480B, according /proc/ide/hdb/model). I can read from both hda and hdb. At boot time I get this message: ======================================================= paride: module license 'unspecified' taints kernel. pg: pg version 1.02, major 97 pga: Autoprobe failed pg: No ATAPI device detected ======================================================= When I try "cdrwtool -d /dev/hdb -q -t 1" I get a segmentation fault with this error: ======================================================= hdb: packet command error: status=0x51 { DriveReady SeekComplete Error } hdb: packet command error: error=0x54 end_request: I/O error, dev hdb, sector 0 ATAPI device hdb: Error: Illegal request -- (Sense key=0x05) Invalid field in command packet -- (asc=0x24, ascq=0x00) The failed "Mode Select 10" packet command was: "55 10 00 00 00 00 00 00 02 00 00 00 00 00 00 00 " ======================================================= I've also tryed with different combinations of -w and -l options. When I type "cdrecord -scanbus dev=ATAPI", the last version of cdrecord from Debian ustable says: ============================================================ Cdrecord 2.01a16 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling scsidev: 'ATAPI' devname: 'ATAPI' scsibus: -2 target: -2 lun: -2 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' scsibus0: 0,0,0 0) 'ADAPTEC ' 'ACB-5500 ' 'FAKE' NON CCS Disk 0,1,0 1) 'ADAPTEC ' 'ACB-5500 ' 'FAKE' NON CCS Disk 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * ======================================================== Am I missing something? Can you help me? I'd really like to have packet-writing working, it is one of the new kernel features I was looking forward to use! Thank you in advance! Cheers, Guido Amoruso
Monday 28 July 2003 12:03 dátummal Guido Amoruso ezt írta:
Hi,
I'd like to be able to have packet-writing working, but cannot figure out whether I'm doing something wrong or there is a bug somewhere.
I've compiled (for Athlon) Linux kernel 2.6.0-test1 (and just a moment ago 2.6.0-test2, too) with udf and packet-cd support, but _without_ any scsi support (see the attached .config) and also tryed to applay the patch http://w1.894.telia.com/~u89404340/patches/packet/2.5/packet-2.6.0-test1.pa tch.bz2, without better results.
I have a Promise controller for the HD (so it is /dev/hde), a cd/dvd drive at /dev/hda and the cd-rw device at /dev/hdb (the model is HL-DT-ST GCE-8480B, according /proc/ide/hdb/model). I can read from both hda and hdb.
At boot time I get this message:
======================================================= paride: module license 'unspecified' taints kernel. pg: pg version 1.02, major 97 pga: Autoprobe failed pg: No ATAPI device detected =======================================================
When I try "cdrwtool -d /dev/hdb -q -t 1" I get a segmentation fault with this error:
======================================================= hdb: packet command error: status=0x51 { DriveReady SeekComplete Error } hdb: packet command error: error=0x54 end_request: I/O error, dev hdb, sector 0 ATAPI device hdb: Error: Illegal request -- (Sense key=0x05) Invalid field in command packet -- (asc=0x24, ascq=0x00) The failed "Mode Select 10" packet command was: "55 10 00 00 00 00 00 00 02 00 00 00 00 00 00 00 " =======================================================
I've also tryed with different combinations of -w and -l options.
When I type "cdrecord -scanbus dev=ATAPI", the last version of cdrecord from Debian ustable says:
============================================================ Cdrecord 2.01a16 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling scsidev: 'ATAPI' devname: 'ATAPI' scsibus: -2 target: -2 lun: -2 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' scsibus0: 0,0,0 0) 'ADAPTEC ' 'ACB-5500 ' 'FAKE' NON CCS Disk 0,1,0 1) 'ADAPTEC ' 'ACB-5500 ' 'FAKE' NON CCS Disk 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * ========================================================
Am I missing something? Can you help me? I'd really like to have packet-writing working, it is one of the new kernel features I was looking forward to use!
Thank you in advance!
Cheers, Guido Amoruso
I noticed this problem, too. There's an issue with the CDROM_SEND_PACKET ioctl and the ide-cd driver. I've emailed to Jens Axboe asking for a proper fix, but for now you can try out the attached patch for ide-cd.c (in drivers/ide) PS.:Sorry for sending this to wrong address (list-owner) before. Regards, György ____________________________________________________________________ Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol. Probald ki most! http://www.freestart.hu
participants (2)
-
Guido Amoruso
-
Szombathelyi Gy�rgy