Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Aug 2009 09:16:34 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-current@freebsd.org
Cc:        "Andrey V. Elsukov" <bu7cher@yandex.ru>, Oliver Pinter <oliver.pntr@gmail.com>
Subject:   Re: SONY DSC doesn't work via usb [regression]
Message-ID:  <200908220916.35836.hselasky@c2i.net>
In-Reply-To: <6101e8c40908211929o14691537w9f874980eb12e535@mail.gmail.com>
References:  <4A8EE90F.4030201@yandex.ru> <6101e8c40908211929o14691537w9f874980eb12e535@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 22 August 2009 04:29:19 Oliver Pinter wrote:
> can you this probe:
>
> mount_msdosfs /dev/da0 /foo # this may fail, and after this:
> mount_msdosfs /dev/da0s1 /foo # and this mounter the real device
>
> On 8/21/09, Andrey V. Elsukov <bu7cher@yandex.ru> wrote:
> > Hi, All.
> >
> > I tried to attach my Sony DSC-W50 camera to 8.0-BETA2 and it
> > doesn't work.
> > First of i got following dmesg:
> >
> > ugen3.2: <Sony> at usbus3 (disconnected)
> > umass0: at uhub3, port 4, addr 2 (disconnected)
> > (da0:umass-sim0:0:0:0): lost device
> > (da0:umass-sim0:0:0:0): removing device entry
> > ugen3.2: <Sony> at usbus3
> > umass0: <Sony Sony DSC, class 0/0, rev 2.00/6.00, addr 2> on usbus3
> > umass0:  RBC over CBI; quirks = 0x1000
> > umass0:1:0:-1: Attached to scbus1
> > da0 at umass-sim0 bus 0 target 0 lun 0
> > da0: <Sony Sony DSC 6.00> Removable Direct Access SCSI-0 device
> > da0: 40.000MB/s transfers
> > da0: 980MB (2007040 512 byte sectors: 64H 32S/T 980C)
> > (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi
> > status == 0x0
> >
> > And da0 device sometime doesn't appear, but sometime appears.
> > When I try to get access to da0 i'm getting I/O error:
> >
> > # mount_msdosfs -m 0664 -M 0775 /dev/da0 /mnt/
> > mount_msdosfs: /dev/da0: Input/output error
> >
> > So, I tried to add NO_SYNCHRONIZE_CACHE to quirks list in umass.c
> > But it didn't resolve the problem.
> >
> > ugen3.2: <Sony> at usbus3
> > umass0: <Sony Sony DSC, class 0/0, rev 2.00/6.00, addr 2> on usbus3
> > umass0:  RBC over CBI; quirks = 0x5000
> > umass0:1:0:-1: Attached to scbus1
> > da0 at umass-sim0 bus 0 target 0 lun 0
> > da0: <Sony Sony DSC 6.00> Removable Direct Access SCSI-0 device
> > da0: 40.000MB/s transfers
> > da0: 980MB (2007040 512 byte sectors: 64H 32S/T 980C)
> >
> > da0 device didn't appear. It seems the problem is not in USB code.
> > Any suggestions?

I see there are several quirk entries for Sony cameras. Could you try to 
change "UMASS_PROTO_RBC | UMASS_PROTO_CBI" into "UMASS_PROTO_DEFAULT" for all 
DSC entries?

        {USB_VENDOR_SONY, USB_PRODUCT_SONY_DSC, 0x0600,
                UMASS_PROTO_RBC | UMASS_PROTO_CBI,
                RBC_PAD_TO_12
        },

--HPS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908220916.35836.hselasky>