From owner-freebsd-usb@FreeBSD.ORG Tue Feb 19 07:18:15 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 37BA38D0; Tue, 19 Feb 2013 07:18:15 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id 8396FE1; Tue, 19 Feb 2013 07:18:13 +0000 (UTC) X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 379897645; Tue, 19 Feb 2013 08:13:02 +0100 From: Hans Petter Selasky To: Jan Beich Subject: Re: sdcard read error with nokia n8 as mass storage Date: Tue, 19 Feb 2013 08:14:16 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <1U77My-000GSe-V1@internal.tormail.org> <201302181858.34688.hselasky@c2i.net> <1U7Yio-000M2x-JX@internal.tormail.org> In-Reply-To: <1U7Yio-000M2x-JX@internal.tormail.org> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: mav@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 07:18:15 -0000 On Monday 18 February 2013 22:57:25 Jan Beich wrote: > Hans Petter Selasky writes: > > On Monday 18 February 2013 07:11:56 Jan Beich wrote: > >> Hans Petter Selasky writes: > >> > On Sunday 17 February 2013 17:24:23 Jan Beich wrote: > >> >> The phone has 16G of on-board and 16G sdcard memory. FreeBSD 10.0 > >> >> detects both but only the former can be mounted. And there is no > >> >> issue mounting the sdcard on Ubuntu or on FreeBSD via iSCSI > >> >> (fileio). > > [...] > > >> >> $ usbdump -i usbus7 -s 0 -vvv # on attach > >> >> > > forgotten linux usbmon dump - http://pastebin.com/Df9Zp6T5 > > >> [...] > >> > >> forgotten debug log - http://pastebin.com/NzpSJBRA > > http://pastebin.com/P9474rw4 # no quirks (via source edit) > > Why UQ_MSC_NO_SYNC_CACHE is always added for the device? on-board (da0) > memory seems to mount/work just fine without + "Medium not present" > is gone. > > $ usbconfig dump_device_quirks | fgrep 421 > > > $ kenv | fgrep usb > hw.usb.no_boot_wait="1" > hw.usb.umass.debug="-1" > > > Try this quirk: > > > > usbconfig -d x.y add_quirk UQ_MSC_NO_INQUIRY > > http://pastebin.com/4R0MYTUK # UQ_MSC_NO_INQUIRY > http://pastebin.com/AGHGiC3n # UQ_MSC_NO_INQUIRY + UQ_MSC_NO_SYNC_CACHE > > I've tried a few more (at random) with no luck either. > > http://pastebin.com/RW2cg51S # UQ_MSC_FORCE_SHORT_INQ > http://pastebin.com/ahiUvS7f # UQ_MSC_WRONG_CSWSIG > http://pastebin.com/Wf6Be9uN # UQ_MSC_IGNORE_RESIDUE > http://pastebin.com/0W4pcKmY # UQ_MSC_READ_CAP_OFFBY1 > > Linux seems to use only CAPACITY_HEURISTICS quirk. Hi, The device fails on READ_10. Maybe this command is not supported. I'm not sure how to reprogram CAM/SCSI layers to use READ_6 instead. --HPS