From owner-freebsd-hackers Mon Dec 3 12:40: 4 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 9676937B405; Mon, 3 Dec 2001 12:39:53 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.0/8.11.0) with UUCP id fB3KdmC11773; Mon, 3 Dec 2001 21:39:48 +0100 (CET) Received: from mail.cicely.de (cicely20.cicely.de [10.1.1.22]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id fB3KX4AD029270; Mon, 3 Dec 2001 21:33:04 +0100 (CET)?g (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id fB3KX3L04201; Mon, 3 Dec 2001 21:33:03 +0100 (CET) Received: (from ticso@localhost) by cicely8.cicely.de (8.11.4/8.11.4) id fB3KX2544339; Mon, 3 Dec 2001 21:33:03 +0100 (CET) (envelope-from ticso) Date: Mon, 3 Dec 2001 21:33:01 +0100 From: Bernd Walter To: Lars Eggert Cc: n_hibma@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: umass & ATAPI Message-ID: <20011203213300.H63943@cicely8.cicely.de> References: <3C0BC364.9080904@isi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C0BC364.9080904@isi.edu> User-Agent: Mutt/1.3.23i X-Operating-System: FreeBSD cicely8.cicely.de 5.0-CURRENT i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Dec 03, 2001 at 10:24:36AM -0800, Lars Eggert wrote: > Hi, > > is anyone working on extending umass.c for ATAPI devices? > > My new digital camera identifies itself as an ATAPI device, but the > corresponding code is commented out in umass.c, because it isn't > complete and/or tested. (I'm running 4.4-RELEASE, but it doesn't look > like -current is any different.) > > I've enabled the disabled code, and the camera probes and attaches > correctly as da0. However, mounting it fails, because the ATAPI code in > umass.c does not translate some commands that the mount tries to execute > (cache sync, and some read_6 command - from memory, may be wrong). > > I'm kinda at loss on how to add the missing command translations (I poke > around in the network stack normally), but I'd give it a shot if I had a > little more background info on how to translate from ATAPI to SCSI. Any > pointers? src/sys/cam/scsi/scsi_da.c has the quirk table for such things. There are also some cameras in there. A bunch of entries have been MFS'ed shortly so if you had named your device we would know better if it's already special handled. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message