Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Mar 2003 13:40:06 +0100 (CET)
From:      Oliver Fromme <olli@secnetix.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   tosha for ATAPIdrives (was Re: VCD disks)
Message-ID:  <200303231240.h2NCe6hh077541@lurza.secnetix.de>
In-Reply-To: <844r5wljvy.fsf@raven.plab.ku.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
Dmitry Karasik <dmitry@karasik.eu.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303231240.h2NCe6hh077541>