From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 31 Dec 2000 16:06:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 31 Dec 2000 16:06:46 -0500 Received: from brutus.conectiva.com.br ([200.250.58.146]:62959 "HELO brinquedo.distro.conectiva") by vger.kernel.org with SMTP id ; Sun, 31 Dec 2000 16:06:40 -0500 Date: Sun, 31 Dec 2000 16:46:34 -0200 From: Arnaldo Carvalho de Melo To: Alastair Foster Cc: linux-kernel@vger.kernel.org Subject: Re: Camera as a USB mass storage / SCSI device Message-ID: <20001231164634.F818@conectiva.com.br> Mail-Followup-To: Arnaldo Carvalho de Melo , Alastair Foster , linux-kernel@vger.kernel.org In-Reply-To: <379744379.978294325610.JavaMail.root@web582-mc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <379744379.978294325610.JavaMail.root@web582-mc>; from alasta@mail.com on Sun, Dec 31, 2000 at 03:25:25PM -0500 X-Url: http://advogato.org/person/acme Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Em Sun, Dec 31, 2000 at 03:25:25PM -0500, Alastair Foster escreveu: > USB support appears to be coming along nicely. I have just aquired an Agfa > ePhoto digital camera. I have heard several success stories of people who > have compiled kernels with SCSI and USB mass storage support and been able > to emulate their camera's flash memory as a SCSI disk on bootup. Accessing > the camera was then simply a matter of mounting the SCSI device. > > Unfortunately, my camera does not get recognised on bootup. This is hardly > surprising, given that the kernel has no way of determining the camera as a > USB mass storage device. However, I'm curious as to how others have managed > to get away with this by doing nothing more than compiling their kernel with > the above options. Is there some sort of database which tells the kernel to > associate a particular USB product ID and vendor with a particular driver? > If so, is there any way to edit this database? /usr/src/linux/drivers/usb/storage/usb.c, look for: /* This is the list of devices we recognize, along with their flag data */ /* The vendor name should be kept at eight characters or less, and * the product name should be kept at 16 characters or less. If a device * has the US_FL_DUMMY_INQUIRY flag, then the vendor and product names * normally generated by a device thorugh the INQUIRY response will be * taken from this list, and this is the reason for the above size * restriction. However, if the flag is not present, then you * are free to use as many characters as you like. */ static struct us_unusual_dev us_unusual_dev_list[] = { { 0x03ee, 0x0000, 0x0000, 0x0245, "Mitsumi", "CD-R/RW Drive", US_SC_8020, US_PR_CBI, NULL, 0}, - Arnaldo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/