I am trying to get an aopen 24x10x40 IDE CDRW to work in Linux, and am
having an interesting problem. It works fine under windoze, but when I
try to access it in Linux (mount, cat, dd, cdrecord, etc.), the process
doesn't respond (not even to ^c), and the machine hangs about 15 seconds
later, requiring a HARD reboot. I just removed a 2x2x4 SCSI cd burner
from this system (worked fine, but SLOW), so I know the problem is with
the way the new drive is being accessed, not with the burning software.
I'm running kernel 2.4.16
Here are my drive highlights:
hda: WD 2GB (windoze)
hdb: nothing
hdc: aopen 24x10x40 CDRW
hdd: nothing
SCSI0: Adaptec 2940UW
SCSI0,0: IBM 4GB (Linux)
SCSI0,1: Iomega ZIP
SCSI0,3: Toshiba CDROM
I have followed all the instructions in the CD-Writing HOWTO, with the
following highlights:
1. I explicitly jumpered the drive to PIO-4 mode, and set its IDE
interface (secondary master) to PIO-4.
2. I compiled my kernel with: IDE-ATAPI CDROM, SCSI emulation, SCSI,
SCSI CDROM, vendor specific SCSI, generic SCSI, and all the other
regular stuff... (I tried both modules and direct compiles)
3. I call my kernel with the command line option hdc=ide-scsi.
Here are the pertinent lines from the ring buffer (dmesg):
Kernel command line: ro root=/dev/sda1 hdc=ide-scsi
ide_setup: hdc=ide-scsi
...
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
...
hdc: 24X10X40 CD-RW, ATAPI CD/DVD-ROM drive
...
SCSI subsystem driver Revision: 1.00
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.4
<Adaptec 2940 Ultra SCSI adapter>
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
Vendor: IBM Model: DDRS-34560D Rev: DC1B
Type: Direct-Access ANSI SCSI revision: 02
Vendor: IOMEGA Model: ZIP 100 Rev: J.03
Type: Direct-Access ANSI SCSI revision: 02
Vendor: TOSHIBA Model: CD-ROM XM-5701TA Rev: 0167
Type: CD-ROM ANSI SCSI revision: 02
scsi0:A:0:0: Tagged Queuing enabled. Depth 253
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: Model: 24X10X40 CD-RW Rev: 2.00
Type: CD-ROM ANSI SCSI revision: 02
...
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 3, lun 0
Attached scsi CD-ROM sr1 at scsi1, channel 0, id 0, lun 0
(scsi0:A:3): 10.000MB/s transfers (10.000MHz, offset 8)
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
So I think all of that looks good?
Here's the output of "cdrecord -scanbus" before I have tried to mount a
CD in the CDRW drive:
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J?rg Schilling
Linux sg driver version: 3.1.20
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'IBM ' 'DDRS-34560D ' 'DC1B' Disk
0,1,0 1) 'IOMEGA ' 'ZIP 100 ' 'J.03' Removable Disk
0,2,0 2) *
0,3,0 3) 'TOSHIBA ' 'CD-ROM XM-5701TA' '0167' Removable
CD-ROM
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) ' ' '24X10X40 CD-RW ' '2.00' Removable
CD-ROM
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *
and here is the output of "cdrecord -scanbus" in the ~15 seconds between
when I have tried to access the CDRW and when the system locks up:
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J?rg Schilling
Linux sg driver version: 3.1.20
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'IBM ' 'DDRS-34560D ' 'DC1B' Disk
0,1,0 1) 'IOMEGA ' 'ZIP 100 ' 'J.03' Removable Disk
0,2,0 2) *
0,3,0 3) 'TOSHIBA ' 'CD-ROM XM-5701TA' '0167' Removable
CD-ROM
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
So it seems to die trying to access the emulated SCSI bus...
Does IDE-SCSI emulation not work with real SCSI?
Does anyone have any ideas?
Thanks,
Russ