From owner-freebsd-current@FreeBSD.ORG Sat Jan 24 20:31:44 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D093E1065676 for ; Sat, 24 Jan 2009 20:31:44 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from sippysoft.com (gk1.360sip.com [72.236.70.240]) by mx1.freebsd.org (Postfix) with ESMTP id 8A21F8FC08 for ; Sat, 24 Jan 2009 20:31:44 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from [192.168.1.38] (S0106001372fd1e07.vs.shawcable.net [70.71.171.106]) (authenticated bits=0) by sippysoft.com (8.13.8/8.13.8) with ESMTP id n0OKVZuO096436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 24 Jan 2009 12:31:36 -0800 (PST) (envelope-from sobomax@FreeBSD.org) Message-ID: <497B7A80.4060002@FreeBSD.org> Date: Sat, 24 Jan 2009 12:30:56 -0800 From: Maxim Sobolev Organization: Sippy Software, Inc. User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Hans Petter Selasky References: <200901241638.18591.hselasky@c2i.net> In-Reply-To: <200901241638.18591.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Carlos Corona , freebsd-current@FreeBSD.org Subject: Re: Prblem whit USB in FreeBSD 8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2009 20:31:45 -0000 Hans Petter Selasky wrote: > On Saturday 24 January 2009, Carlos Corona wrote: >> Hi * >> >> I'm running FreeBSD 8 i386 on my machine X2 AMD Athlon 64, I have devices >> such as USB keyboard and mouse, which works perfectly, but as to the >> pendrive, I had some problems when I connect my pendrive Fujitel for 1GB >> recognizes this, but will not let me do anything, I can open applications, >> etc. loggin a console, I managed to do the dmesg when connecting: >> >> (da0: UMass-sim0: 0:0:0): lost device >> (da0: UMass-sim0: 0:0:0): Synchronize cache failed, status == 0x39, scsi >> status == 0x0 >> (da0: UMass-sim0: 0:0:0): removing device entry >> GEOM_LABEL: Label msdosfs / [you: Qiufo] removed. >> umass0: detached >> >> Can onlydisconnect hold back my system, any thoughts on this? thanks in >> advance > > Hi, > > Most likely The firmware on your pendrive is not fully SCSI compliant. > > Read: http://wiki.freebsd.org/USB > > and the section about adding an USB Mass Storage Quirk. > > You need to add something like this to "sys/dev/usb2/storage/umass2.c" : > > {USB_VENDOR_MEIZU, USB_PRODUCT_MEIZU_M6_SL, RID_WILDCARD, > UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > NO_INQUIRY | NO_SYNCHRONIZE_CACHE > }, I wonder if this situation can be handled automatically. To my ignorant view, our USB mass storage driver can try sending "synchronize cache" command and if that fails then failback to the NO_SYNCHRONIZE_CACHE behavior. -Maxim