From owner-freebsd-doc@FreeBSD.ORG Fri Feb 9 06:33:08 2007 Return-Path: X-Original-To: freebsd-doc@freebsd.org Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F35F16A402 for ; Fri, 9 Feb 2007 06:33:08 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.152]) by mx1.freebsd.org (Postfix) with ESMTP id 3D81813C48E for ; Fri, 9 Feb 2007 06:33:06 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from [192.168.1.100] (c-67-190-235-215.hsd1.mn.comcast.net[67.190.235.215]) by comcast.net (rwcrmhc12) with ESMTP id <20070209062304m12006got7e>; Fri, 9 Feb 2007 06:23:04 +0000 From: Josh Paetzel To: freebsd-doc@freebsd.org Date: Fri, 9 Feb 2007 00:23:02 -0600 User-Agent: KMail/1.9.5 References: <20070209023738.GA1447@crodrigues.org> In-Reply-To: <20070209023738.GA1447@crodrigues.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702090023.02755.josh@tcbug.org> Cc: Subject: Re: Errors in "7.3.2 Ripping CD Audio Tracks" X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2007 06:33:08 -0000 On Thursday 08 February 2007 20:37, Craig Rodrigues wrote: > Hi, > > In "7.3.2 Ripping CD Audio Tracks", there is one error, and one > omission. > > This command which is listed: > cdda2wav -D /dev/acd0a -t 7 > > is a leftover from FreeBSD 4.x, since on RELENG_5, RELENG_6, and > CURRENT, onl /dev/acd0 exists for ATAPI CD-ROM drives. > > This part of the documentation neglects to mention the need for > atapicam. If you do not "kldload atapicam", then this command will > not work: > > cdda2wav -D /dev/acd0 -t 7 > > cdda2wav: Invalid argument. Open by 'devname' not supported on this > OS. Cannot open SCSI driver. cdda2wav: For possible targets try > 'cdda2wav -scanbus'. Make sure you are root. Probably you did not > define your SCSI device. > Set the CDDA_DEVICE environment variable or use the -D option. > You can also define the default device in the Makefile. > For possible transport specifiers try 'cdda2wav dev=help'. > > cdda2wav -scanbus > > cdda2wav: No such file or directory. Cannot open SCSI driver. > cdda2wav: For possible targets try 'cdda2wav -scanbus'. > Probably you did not define your SCSI device. > Set the CDDA_DEVICE environment variable or use the -D option. > You can also define the default device in the Makefile. > For possible transport specifiers try 'cdda2wav dev=help'. I think you are a tad confused as to what ATAPICAM does. It does in fact provide access to ATAPI drives via the CAM layer, but in the case of cdda2wav it can speak to ATAPI drives natively, it doesn't require ATAPICAM to speak to them. IDE optical drives were /dev/acdX in 4.x just like they are in 5.x and 6.x There is a bug in the command, since 5.x the correct device name should not be /dev/acd0a, but /dev/acd0 The following PR contains the patch to fix the outdated device name in the handbook. http://www.freebsd.org/cgi/query-pr.cgi?pr=108957 # cdda2wav -D /dev/acd0 -t 7 cdrom device (/dev/acd0) is not of type generic SCSI. Setting interface to cooked_ioctl. 307200 bytes buffer memory requested, 4 buffers, 27 sectors #Cdda2wav version 2.01_freebsd_6.2_i386_i386, real time sched., soundcard, libparanoia support AUDIOtrack pre-emphasis copy-permitted tracktype channels 1-12 yes no audio 2 . . . # uname -a FreeBSD .hsd1.mn.comcast.net 6.2-RC2 FreeBSD 6.2-RC2 #0: Sun Dec 24 23:17:34 UTC 2006 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 (GENERIC kernel, no ATAPICAM) # kldstat Id Refs Address Size Name 1 4 0xc0400000 6f64c0 kernel 2 1 0xc0af7000 59f20 acpi.ko (ATAPICAM not loaded as a kld) -- Thanks, Josh Paetzel