From owner-freebsd-usb@FreeBSD.ORG Mon Feb 18 22:02:02 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 724F37E8 for ; Mon, 18 Feb 2013 22:02:02 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22]) by mx1.freebsd.org (Postfix) with ESMTP id 0F3BC9DB for ; Mon, 18 Feb 2013 22:02:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=internal.tormail.org) by outgoing.tormail.org with esmtp (Exim 4.72) (envelope-from ) id 1U7YmT-0007yV-Vd; Tue, 19 Feb 2013 01:01:54 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.org; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:References:Date:Subject:Cc:To:From; bh=yL/bqI+z7P2+tj63YFrHshhzo+UjVxrhr/gy/I9+ja4=; b=ZF3/48+JZpK9n3iFKk3jg181a7sz43p6wNUcHFNb9SDofCC05DR/24wEnG6mjS46WC2YQKcjHjE26iCLBu8mYP6hWfpn6g13Kt/MC2mDqZOF23L0iopwWfLSQ4j4AEYbYvwozLRrdBYOk+gdp50+WOn+9tbzltg8WHNDLzI8Zw4=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1U7Yio-000M2x-JX; Mon, 18 Feb 2013 21:58:10 +0000 From: Jan Beich To: Hans Petter Selasky Subject: Re: sdcard read error with nokia n8 as mass storage Date: Mon, 18 Feb 2013 10:57:25 -1100 References: <1U77My-000GSe-V1@internal.tormail.org> <201302172220.57351.hselasky@c2i.net> <1U7Jyd-000Ib5-C0@internal.tormail.org> <201302181858.34688.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1U7Yio-000M2x-JX@internal.tormail.org> Cc: 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: Mon, 18 Feb 2013 22:02:02 -0000 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.