atapicam and cdrecord
Kenneth D. Merry
ken at kdm.org
Fri Jul 25 14:17:23 PDT 2003
On Fri, Jul 25, 2003 at 13:40:29 -0700, bruno schwander wrote:
>
> I am trying to get cdrecord to work with my IDE cd writer.
>
> I added the scsi support as well as atapicam in my kernel (FreeBSD
> 4.8-STABLE #0: Tue Jul 22 12:09:08 PDT 2003)
>
> relevant dmesg
> ---------------------------
> acd0: DVD-ROM <TOSHIBA DVD-ROM SD-M1002> at ata0-master PIO3
> acd1: CD-RW <LITE-ON LTR-40125S> at ata3-master PIO4
> Mounting root from ufs:/dev/ad4s1a
> cd0 at ata0 bus 0 target 0 lun 0
> cd0: <TOSHIBA DVD-ROM SD-M1002 0577> Removable CD-ROM SCSI-0 device
> cd0: 11.000MB/s transfers
> cd0: Attempt to query device size failed: NOT READY, Medium not present
> cd1 at ata3 bus 0 target 0 lun 0
> cd1: <LITE-ON LTR-40125S ZS0J> Removable CD-ROM SCSI-0 device
> cd1: 16.000MB/s transfers
> cd1: cd present [1 x 2048 byte records]
> ---------------------------
>
> so it looks good
>
> camcontrol devlist gives
> -------------------------------
> <TOSHIBA DVD-ROM SD-M1002 0577> at scbus0 target 0 lun 0 (pass0,cd0)
> <LITE-ON LTR-40125S ZS0J> at scbus3 target 0 lun 0 (pass1,cd1)
> -------------------------------
>
> so I gather that I should use cdrecord --device 3,0,0 etc. (as I found
> in some other maillist)
>
> however, cdrecord complains with
> ------------------------------
> ERROR: Cannot open SCSI device '3,0,0':
> ERROR: Please use option '--device bus,id,lun', e.g. --device 0,6,0
> ERROR: Cannot setup device 3,0,0.
> ------------------------------
>
> and cdrecord scanbus does not list any available drives.
>
> What gives ? anything missing ? It seems everything is there...
First, make sure camcontrol can talk directly to the drive:
camcontrol tur cd1 -v
If you can't talk to the drive, make sure you have device nodes for at
least pass0 and pass1:
cd /dev
sh ./MAKEDEV pass4
(That will create pass0-pass3)
Ken
--
Kenneth Merry
ken at kdm.org
More information about the freebsd-scsi
mailing list