Can't access a music CD
Polytropon
freebsd at edvax.de
Thu Oct 13 23:00:18 UTC 2011
On Thu, 13 Oct 2011 22:38:45 +0000, Alexander Best wrote:
> On Fri Oct 14 11, Polytropon wrote:
> > % ls /dev/acd0*
> > /dev/acd0 /dev/acd0t04 /dev/acd0t08 /dev/acd0t12 /dev/acd0t16
> > /dev/acd0t01 /dev/acd0t05 /dev/acd0t09 /dev/acd0t13 /dev/acd0t17
> > /dev/acd0t02 /dev/acd0t06 /dev/acd0t10 /dev/acd0t14 /dev/acd0t18
> > /dev/acd0t03 /dev/acd0t07 /dev/acd0t11 /dev/acd0t15 /dev/acd0t19
>
> otaku% ls|grep cd
> cd0
> cdrom
% dmesg | grep ^acd
acd0: DVDR <HL-DT-ST DVDRAM GSA-H42N/RL00> at ata1-master UDMA66
acd1: DVDROM <HL-DT-STDVD-ROM GDR8163B/0L30> at ata1-slave UDMA33
Those are parallel ATA drives, accessed by the ATAPI drivers.
Because I can either access them as ATAPI drives as well as
SCSI drives, they show up in both "subsystems":
% atacontrol list
ATA channel 1:
Master: acd0 <HL-DT-ST DVDRAM GSA-H42N/RL00> ATA/ATAPI revision 7
Slave: acd1 <HL-DT-STDVD-ROM GDR8163B/0L30> ATA/ATAPI revision 6
% camcontrol devlist
<HL-DT-ST DVDRAM GSA-H42N RL00> at scbus0 target 0 lun 0 (pass0,cd0)
<HL-DT-ST DVD-ROM GDR8163B 0L30> at scbus0 target 1 lun 0 (pass1,cd1)
In the kernel configuration, I have the following relevant
settings:
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
device ataraid # ATA RAID drives
device atapicd # ATAPI CDROM drives
device atapifd # ATAPI floppy drives
device atapist # ATAPI tape drives
options ATA_STATIC_ID # Static device numbering
device atapicam # For "SCSI over ATA"
# SCSI peripherals
device scbus # SCSI bus (required for SCSI)
device ch # SCSI media changers
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device cd # CD
device pass # Passthrough device (direct SCSI access)
device ses # SCSI Environmental Services (and SAF-TE)
options SCSI_DELAY=100 # Delay (in ms) before probing SCSI [5000]
So I can use both /dev/cd0 and /dev/acd0 to access the same
drive, just are required, e. g. /dev/cd0 (equals /dev/dvd
for consistency with the growisofs manpage) for burning CDs,
and /dev/acd0 for audio playback (when accessed with cdcontrol).
OS is x86 v8.2 STABLE of August 2011 with (obviously) custom
kernel.
If I remember correctly, the cdcontrol utility talks to the
ATAPI "subsystem" which now has been melted somehow with the
ATAPICAM ("SCSI") way of accessing devices...
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list