From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 2 15:30:02 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 033D0106566B for ; Tue, 2 Jun 2009 15:30:02 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id B9EBF8FC1C for ; Tue, 2 Jun 2009 15:30:01 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.3/8.14.3/NETPLEX) with ESMTP id n52FTwBH028672; Tue, 2 Jun 2009 11:29:58 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.0 (mail.netplex.net [204.213.176.10]); Tue, 02 Jun 2009 11:29:59 -0400 (EDT) Date: Tue, 2 Jun 2009 11:29:58 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Wojciech Puchar In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Synchronize cache failed. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 15:30:02 -0000 On Tue, 2 Jun 2009, Wojciech Puchar wrote: > i bought new digital camera+"8GB" flash card, and when i plug it into USB > port, it's detected properly > > umass0: on uhub1 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-0 device > da0: 1.000MB/s transfers > da0: 7646MB (15659008 512 byte sectors: 255H 63S/T 974C) > > > i can do everything fine, but i'm getting > > umass0: Phase Error, residue = 0 > (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status > == 0x0 > > > every some time. > > so i added a device line to usbdevs, then i edited umass.c > > to add > > { USB_VENDOR_OLYMPUS, USB_PRODUCT_OLYMPUS_FE20, RID_WILDCARD, > UMASS_PROTO_SCSI, > NO_SYNCHRONIZE_CACHE > }, > > to static struct umaumass_devdescrs[] > > > it compiled, all fine, but when i attached camera again system rebooted. > > i was in X session and had tail -f /var/log/messages running, and i was able > to see a message that my camera is unknown device, for maybe 1 second before > getting reboot. Try disabling hal (comment out hald_enable in /etc/rc.conf). If you need hal for X, try booting without X and hal/dbus. You might also try UMASS_PROTO_SCSI | UMASS_PROTO_BBB, or UMASS_PROTO_DEFAULT in your quirk. -- DE