From owner-freebsd-usb@FreeBSD.ORG Tue Feb 19 09:29:47 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 8B9F2737 for ; Tue, 19 Feb 2013 09:29:47 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by mx1.freebsd.org (Postfix) with ESMTP id 80DB9B33 for ; Tue, 19 Feb 2013 09:29:46 +0000 (UTC) Received: by mail-bk0-f52.google.com with SMTP id jk13so2881549bkc.25 for ; Tue, 19 Feb 2013 01:29:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=/6wqlBf2RRo1+0DkqA/2T42fMKHH4W3CoAcTeNqrft8=; b=JJlBVWIN/6izbZ9xupsRJuf1mrOUVQOoCKyUOQyi23CxwrXcccxLf2GPVnrrbmbYcd 9mJMv69LT3fKQp2fbidv/uXcjGOnZ4LkG2+6z/7K2s9aa1VeiZH7b2kFGQ5FRPToc7Nu zPyj6ZEh3+MA8HtMz4yDLU07aVaZUpIFzDDlUD0YARpJ8at0a/rcFW9+1KJ14KHfVDTd R35l//WZE3ikXKcDLVaFHZXSkf+hNMZ2Knu7c7Q/UHK+QQHObZtwIDQd6+E0+whyUhMt 3ylg7dQ+zS8N6KJZOVjocLvx5c9hzUM78uIH1IDAAj6dpkbfjSupkMVwBqJgbyVd/0OT 6DNA== X-Received: by 10.204.151.196 with SMTP id d4mr5901471bkw.37.1361266184981; Tue, 19 Feb 2013 01:29:44 -0800 (PST) Received: from mavbook.mavhome.dp.ua (mavhome.mavhome.dp.ua. [213.227.240.37]) by mx.google.com with ESMTPS id s10sm21817389bkt.10.2013.02.19.01.29.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Feb 2013 01:29:44 -0800 (PST) Sender: Alexander Motin Message-ID: <51234605.3000300@FreeBSD.org> Date: Tue, 19 Feb 2013 11:29:41 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130125 Thunderbird/17.0.2 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: sdcard read error with nokia n8 as mass storage References: <1U77My-000GSe-V1@internal.tormail.org> <201302181858.34688.hselasky@c2i.net> <1U7Yio-000M2x-JX@internal.tormail.org> <201302190814.16315.hselasky@c2i.net> In-Reply-To: <201302190814.16315.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org, Jan Beich 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 09:29:47 -0000 On 19.02.2013 09:14, Hans Petter Selasky wrote: > 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. CAM DA driver uses shortest possible command, but no shorter then kern.cam.da.X.minimum_cmd_size value, that is 10 by default for umass due to cpi->hba_misc = PIM_NO_6_BYTE set in umass.c. -- Alexander Motin