From owner-freebsd-stable Wed Dec 4 14:21:45 2002 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 9DC1937B401; Wed, 4 Dec 2002 14:21:43 -0800 (PST) Received: from gatekeeper.oremut01.us.wh.verio.net (gatekeeper.oremut01.us.wh.verio.net [198.65.168.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05FAE43ECD; Wed, 4 Dec 2002 14:21:43 -0800 (PST) (envelope-from fclift@verio.net) Received: from mx.dmz.orem.verio.net (mx.dmz.orem.verio.net [10.1.1.10]) by gatekeeper.oremut01.us.wh.verio.net (Postfix) with ESMTP id 641773BF2DD; Wed, 4 Dec 2002 15:21:42 -0700 (MST) Received: from vespa.dmz.orem.verio.net (vespa.dmz.orem.verio.net [10.1.1.59]) by mx.dmz.orem.verio.net (8.11.6/8.11.6) with ESMTP id gB4MLf326028; Wed, 4 Dec 2002 15:21:41 -0700 (MST) Date: Wed, 4 Dec 2002 15:24:18 -0700 (MST) From: Fred Clift X-X-Sender: To: Pete Carah Cc: , Subject: Re: USB mass device not quite there In-Reply-To: <200212020454.gB24sPIO079176@ns.altadena.net> Message-ID: <20021204151705.I20870-100000@vespa.dmz.orem.verio.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Sun, 1 Dec 2002, Pete Carah wrote: > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: Serial Number 21M82CFC1Y09C11125Z3 > da0: 650KB/s transfers > da0: 122MB (250368 512 byte sectors: 64H 32S/T 122C) ... > > The other slot is multiple; it handles SmartMedia, MM/SD cards, > and memory-sticks. It is not found by the usb event handler > or camcontrol at all. The directions do say that this device > shows up in windoze as 2 drives (I haven't tried it yet, under any > of 95, 98, or XP). Apparently our usb event handler doesn't expect > to find 2 devices, or pass doesn't expect 2 devices beyond it in > a single scan? I have 2 different usb umass devices with multiple 'drives' in them -- they both use different luns for this - for whatever reason (perhaps the get-max-luns call fails?) only lun 0 is ever scanned. To get them to work all I need do is: camcontrol rescan X:Y:1 and they will be found. the lowest devices is usually 'automatically' found as X:Y:0 and so I just need to manually scan the other luns and all is good. (JamP3 mp3 player has luns 0 and 1, and my Neodio 6-in-1 flash reader - 4 slots CF/Microdrive SD/MMC Memorystick and smartmedia - The appropriate quirk for the 6 in 1 device in scsi_da.c is: { {T_DIRECT, SIP_MEDIA_REMOVABLE, "Generic", "USB Storage-*","*"}, /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE }, and the quirk for the JamP3 is unvailable on a machine that is down right now... It looks very similar :). Hope this helps. Just remember to camcontrol rescan the right lun and you should have no problems. Fred -- Fred Clift - fclift@verio.net -- Remember: If brute force doesn't work, you're just not using enough. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message