Date: Fri, 14 Oct 2011 01:00:02 +0200 From: Polytropon <freebsd@edvax.de> To: Alexander Best <arundel@FreeBSD.ORG> Cc: FreeBSD <freebsd-questions@FreeBSD.ORG> Subject: Re: Can't access a music CD Message-ID: <20111014010002.3fa2713c.freebsd@edvax.de> In-Reply-To: <20111013223845.GA28792@freebsd.org> References: <4E92BF3C.8080807@centurytel.net> <20111010104450.GA28895@orange.esperance-linux.co.uk> <4E9616FD.5080404@centurytel.net> <447h49yed0.fsf@lowell-desk.lan> <4E9627A6.8000907@centurytel.net> <44vcrtohej.fsf@lowell-desk.lan> <20111013162524.GA75476@freebsd.org> <20111013202456.3b59d88c.freebsd@edvax.de> <20111013220329.GA22983@freebsd.org> <20111014002726.b16c9a5a.freebsd@edvax.de> <20111013223845.GA28792@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111014010002.3fa2713c.freebsd>