From owner-freebsd-usb@FreeBSD.ORG Fri Mar 20 09:20:21 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26B26106564A for ; Fri, 20 Mar 2009 09:20:21 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id AF43A8FC0A for ; Fri, 20 Mar 2009 09:20:20 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=VECs6VnS8qEA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=gvHnSkt9JSX1oXFSMEEA:9 a=9oZAMoQWaQ0FIO-E4u4A:7 a=X0UoTauAiwIoE0mHjX1iEO0DngsA:4 a=LY0hPdMaydYA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1215951734; Fri, 20 Mar 2009 10:20:18 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 20 Mar 2009 10:22:48 +0100 User-Agent: KMail/1.9.7 References: <49C27B93.5000309@wanadoo.fr> In-Reply-To: <49C27B93.5000309@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903201022.49413.hselasky@c2i.net> Cc: Nicolas Subject: Re: "Big Problem" with removable media X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2009 09:20:21 -0000 On Thursday 19 March 2009, Nicolas wrote: > Hi, > > I'm using FreeBSD 8-Current (as of today) and when i plug my samsung > omnia, i have this message: > > ugen7.7: at usbus7 > umass1: on usbus7 > umass1: SCSI over Bulk-Only; quirks = 0x0000 > umass1:3:1:-1: Attached to scbus3 > da1 at umass-sim1 bus 1 target 0 lun 0 > da1: < > Removable Direct Access SCSI-0 device > da1: 40.000MB/s transfers > da1: 7680MB (15728640 512 byte sectors: 255H 63S/T 979C) > GEOM: da1: partition 1 does not start on a track boundary. > GEOM: da1: partition 1 does not end on a track boundary. > (da1:umass-sim1:1:0:0): Synchronize cache failed, status == 0x4, scsi ^^^^ looks like your mass storage device needs a quirk. You can try sysutils/kdpatch to patch the quirks table for umass. As far as I can tell the table has the same format in usb2 and usb1 so the following should work: kldpatch umass.ko - @0 0x10d6 0x0000xxxx 0xffffffff 0x0201 0x4200 (replace xxxx with the usb product id for your device). 0x201 means use ATAPI commands over BBB protocol which is what your messages say. Perhaps 0x101 also works here. 0x4000 means the following: /* Device cannot handle a SCSI synchronize cache command. Normally * this quirk would be handled in the cam layer, but for IDE bridges * we need to associate the quirk with the bridge and not the * underlying disk device. This is handled by faking a success result. */ # define NO_SYNCHRONIZE_CACHE 0x4000 you may have to play with different flags and quirks to make the thing work. cheers luigi --HPS