From owner-freebsd-current Sun Oct 27 12: 7:42 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8252F37B401 for ; Sun, 27 Oct 2002 12:07:40 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 3DBEF43E3B for ; Sun, 27 Oct 2002 12:07:40 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 81055 invoked by uid 1000); 27 Oct 2002 20:07:41 -0000 Date: Sun, 27 Oct 2002 12:07:41 -0800 (PST) From: Nate Lawson To: Julian Elischer Cc: current@FreeBSD.ORG Subject: Re: burncd/cdcontrol In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ah, I didn't know about the DVD for $ issue. In any case, I prefer cdrecord because it works cross-platform and is supported by many GUIs. The problem with making burncd work for SCSI is that it doesn't use the ATAPI interface, instead it implements our own ioctl interface. Currently, the ioctls burncd uses that are missing from cd(4) are: CDRIOCGETBLOCKSIZE CDRIOCSETBLOCKSIZE CDRIOCNEXTWRITEABLEADDR CDRIOCBLANK CDRIOCGETPROGRESS CDRIOCINITWRITER CDRIOCFIXATE CDRIOCSENDCUE CDRIOCINITTRACK CDRIOCFLUSH CDRIOCREADFORMATCAPS CDRIOCFORMAT Instead of cutting/pasting those from atapi-cd.c, I think it would be better eventually to rewrite burncd using the ATAPI commands and libcam to send them to the drive. That way we can have one CD driver instead of duplicating all that code. IMO, atapi-cd.c need never have been written but atapi-cam should have been done much earlier. We now have two nearly identical drivers for supporting the exact same hardware. cd(4) works for ATAPI and SCSI drives. acd(4) doesn't but has newer ATAPI commands that have not yet been cut/pasted into cd(4). -Nate On Sat, 26 Oct 2002, Julian Elischer wrote: > cdrecord doesn't do DVDs and jorg Schiller is holding back on DVD mods > so he can sell that version.. > DVD capable cdrecord is called cdrecord-PRO > and costs $100. > if he commands from burncd could be piped into a SCSI pipe, > then that would probably work... > > I have an ATAPI dvd writer on a firewire<->atapi converter > that connects to CAM via SBP-2. > Using some patches for cdrecord that are available on the internet I > got it to write fine, so tehatapi and SCSI commands for writing are the > same. But that is a hack, because as isaid before, teh cdrecord that > REALLY knows about DVDs is not free. > > > On Sat, 26 Oct 2002, Nate Lawson wrote: > > > On Sat, 26 Oct 2002, Julian Elischer wrote: > > > what would it take to allow burncd to work on SCSI devices.? > > > > You got it backwards -- is atapicam complete enough to work reliably with > > cdrecord? There's no reason for us to replicate a more feature-complete > > port in our src tree. > > > > -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message