Date: Wed, 4 Dec 2002 15:24:18 -0700 (MST) From: Fred Clift <fclift@verio.net> To: Pete Carah <pete@ns.altadena.net> Cc: <stable@FreeBSD.ORG>, <current@FreeBSD.ORG> Subject: Re: USB mass device not quite there Message-ID: <20021204151705.I20870-100000@vespa.dmz.orem.verio.net> In-Reply-To: <200212020454.gB24sPIO079176@ns.altadena.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 1 Dec 2002, Pete Carah wrote:
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: <eUSB Compact Flash 5.07> 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-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021204151705.I20870-100000>
