From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 07:08:17 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7AAF10656AB for ; Fri, 27 Aug 2010 07:08:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id CB8BF8FC1D for ; Fri, 27 Aug 2010 07:08:16 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=sIybwy0z7bWw0ilx/SziPN3xnsQN4yn8NMXKZM3k7p4= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6X2uZvstorFOq5QtrkUA:9 a=5pYj-qX8coLcf38fFQIA:7 a=zlI_dkH25y3xk7HQt7488sN3fO0A:4 a=wPNLvfGTeEIA:10 a=MA64-YX0OwsfCcXz:21 a=HTdtxpjwrHlKXlEK:21 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 11836342; Fri, 27 Aug 2010 09:08:14 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 27 Aug 2010 09:04:15 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20100826215028.GA80160@freebsd.org> In-Reply-To: <20100826215028.GA80160@freebsd.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008270904.16009.hselasky@c2i.net> Cc: Alexander Best Subject: Re: problem with mobile phone X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 07:08:17 -0000 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: at usbus3 > umass0: 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: 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: 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