From owner-freebsd-stable Sun Mar 23 4:40:14 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7257537B401 for ; Sun, 23 Mar 2003 04:40:09 -0800 (PST) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6136843F3F for ; Sun, 23 Mar 2003 04:40:08 -0800 (PST) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.6/8.12.5) with ESMTP id h2NCe6dK077542 for ; Sun, 23 Mar 2003 13:40:06 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.6/8.12.5/Submit) id h2NCe6hh077541; Sun, 23 Mar 2003 13:40:06 +0100 (CET) Date: Sun, 23 Mar 2003 13:40:06 +0100 (CET) Message-Id: <200303231240.h2NCe6hh077541@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG Reply-To: freebsd-stable@FreeBSD.ORG Subject: tosha for ATAPIdrives (was Re: VCD disks) In-Reply-To: <844r5wljvy.fsf@raven.plab.ku.dk> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.7-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dmitry Karasik wrote: > I was greatly surprized by the fact that atapi-cd doesn't recognize VCD > disks. I didn't find any solution to that but the patch from > http://people.freebsd.org/~luoqi/ , and am wondering what were > the reasons that it was not included into the kernel? > > I do not want the question to sound like a "why not", not even because > the code change is safe and minimal, but because there is no other way > to read a VCD without patching and recompiling kernel. For most SCSI CD-ROM drives, tosha (from the ports collec- tion) should work fine. If you have an ATAPI CD-ROM drive and a recent version of FreeBSD (with the atapicam patches included), you could try this hacked-up version of tosha: http://www.secnetix.de/~olli/tmp/tosha-atapicam.tar.gz Be sure to install the included tosharc file, and remove any older tosharc files (including ~/.tosharc) that you might already have! Use /dev/cd0c as the device (which is the default), not /dev/acd0c. Please let me know if if works. Note: This hacked version will probably NOT work with real SCSI drives, but I haven't really tested that. Depending on the response and reports, I'll try to clean up the patches and release a new version of tosha. It's time anyway. (BTW, is there an easy way in a C program to find out if a drive is a real SCSI drive or an ATAPI- CAM drive? Looks like doing a path inquiry CCB will set the SIM Vendor ID to "FreeBSD" and the HBA Vendor ID to "ATAPI" -- is this the best way to do it? On the other hand, I will probably have to drop support for old non- CAM versions of FreeBSD.) Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "If you do things right, people won't be sure you've done anything at all." -- God in Futurama season 4 episode 8 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message