Subject: Re: mount Sony memory stick
To: Domingo A. Siliceo <dsiliceo@trrno.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 09/25/2005 08:49:13
In message <20050925092435.GA234@trrno.org>, "Domingo A. Siliceo" writes:
>Hi all,
>does anyone have idea how to mount a Sony Memory Stick under NetBSD?
>
>Under NetBSD 2.0.2, when I plug the camera I get the following messages
>
>    Sep 25 11:10:58 mido /netbsd: umass0 at uhub0 port 2 configuration 1
>    interface 0
>    Sep 25 11:10:59 mido /netbsd: 
>    Sep 25 11:10:59 mido /netbsd: umass0: Sony Sony DSC, rev 1.00/2.10,
>    addr 2
>    Sep 25 11:10:59 mido /netbsd: umass0: using SCSI over CBI
>    Sep 25 11:10:59 mido /netbsd: scsibus0 at umass0: 2 targets, 1 lun
>    per target
>    Sep 25 11:10:59 mido /netbsd: sd0 at scsibus0 target 0 lun 0: <Sony,
>    Sony DSC, 2.10> disk removable
>    Sep 25 11:11:10 mido /netbsd: umass0: CBI reset failed, STALLED
>    Sep 25 11:11:43 mido last message repeated 3 times
>
>Anyway, I tried to mount
>
>     mount -t msdos /dev/sd0a /mnt
>
>receiving, more or less, the same answer.
>

It's probably sd0e or sd0f.  But I don't think that that's your real 
problem.  I'm going to take a wild guess about what it is.

Nathan has made a change to -current that cleared up a lot of USB 
problems I was having, including some 'endpoint stalled' messages.  For 
fun, try deleting these lines from usb_subr.c:

        /* Clear any stall and make sure DATA0 toggle will be used next. */
        if (UE_GET_ADDR(ep->edesc->bEndpointAddress) != USB_CONTROL_ENDPOINT) {
                err = usbd_clear_endpoint_stall(p);
                /* Some devices reject this command, so ignore a STALL. */
                if (err && err != USBD_STALLED) {
                        printf("usbd_setup_pipe: failed to start endpoint, %s\n"
, usbd_errstr(err));
                        return (err);
                }
        }


Caution -- I'm guessing; I have no idea if that will help you or not.  
But I have 3 different devices that now work and didn't before.

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb