Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 2010 09:04:15 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Cc:        Alexander Best <arundel@freebsd.org>
Subject:   Re: problem with mobile phone
Message-ID:  <201008270904.16009.hselasky@c2i.net>
In-Reply-To: <20100826215028.GA80160@freebsd.org>
References:  <20100826215028.GA80160@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thursday 26 August 2010 23:50:28 Alexander Best wrote:
> hi there,
> 
> when i connect my mobile phone to a recent HEAD (amd64; r211393) i get the
> following:
> 
> ugen3.3: <Samsung> at usbus3
> umass0: <USB Mass Storage Interface> on usbus3
> (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
> (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
> (probe0:umass-sim0:0:0:0): SCSI status: Check Condition
> (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready
> to ready change, medium may have changed) da0 at umass-sim0 bus 0 scbus9
> target 0 lun 0
> da0: <Samsung SGH-i550 1.0> Removable Direct Access SCSI-0 device
> da0: 40.000MB/s transfers
> da0: 3777MB (7736320 512 byte sectors: 255H 63S/T 481C)
> 
> when i try to read stuff from the phone, it resets and i get this:
> 
> ugen3.3: <Samsung> at usbus3 (disconnected)
> umass0: at uhub8, port 3, addr 3 (disconnected)
> (da0:umass-sim0:0:0:0): AutoSense failed
> (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0xa, scsi
> status == 0x0 (da0:umass-sim0:0:0:0): lost device
> (da0:umass-sim0:0:0:0): removing device entry
> 
> it both happens if i mount it and read files or if i directly read
> something from the /dev/da0 device using `dd`.
> 
> interestingly it always crashes after the same ammount of data read:
> 
> dd: /dev/da0: Input/output error
> 4+0 records in
> 4+0 records out
> 4194304 bytes transferred in 3.333149 secs (1258361 bytes/sec)
> 
> after a few retries the usb port i was using becomes unusable and nothing
> is being detected any longer.
> 
> i'm pretty sure this didn't happen a few weeks ago, but now it does.
> 

Hi,

Have you loaded the usb_quirk.ko ?

Try adding a mass storage quirk for this mass storage device, for test unit 
ready and synchronize cache.

Else look for changes in SCSI area.

--HPS



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