From owner-freebsd-usb@FreeBSD.ORG Thu Oct 8 12:44:32 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 951C51065670 for ; Thu, 8 Oct 2009 12:44:32 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 208798FC21 for ; Thu, 8 Oct 2009 12:44:31 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=07XZgFNO_1wA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=-vR3oEbchhhhS-pT4g8A:9 a=KlotPi82I5V_wbK-oAUA:7 a=_z8X6yQ84r4UEhkf_FDpSIQYRngA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1311992796; Thu, 08 Oct 2009 14:44:29 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, pg@2lazy.ru Date: Thu, 8 Oct 2009 14:45:21 +0200 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <4ACDCA2E.6000601@2lazy.ru> In-Reply-To: <4ACDCA2E.6000601@2lazy.ru> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910081445.22620.hselasky@c2i.net> Cc: Subject: Re: Old USB1 umass device (OLYMPUS C-2 camera) does not work. 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: Thu, 08 Oct 2009 12:44:32 -0000 On Thursday 08 October 2009 13:17:02 Pavel Gubin wrote: > Hello, > > I've got a problem attaching device in subject: > > ------ piece from dmesg ------ > ugen2.3: at usbus2 > umass0: on usbus2 > umass0: SCSI over (unknown 0x00); quirks = 0x0100 > umass0: could not setup required transfers, USB_ERR_INVAL > device_attach: umass0 attach returned 6 > ------ > > Tried on two different M/B -- ohci and uhci. > > When I'm attaching this camera to 7.x, it panics; 6.x works OK. > > What can I do to fix this? Hi, There seems to be a bug in the quirks table. Can you first try edit: /usr/src/sys/dev/usb/storage/umass.c And change the proto and bbb lines into only: UMASS_PROTO_DEFAULT, ? {USB_VENDOR_OLYMPUS, USB_PRODUCT_OLYMPUS_C1, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, WRONG_CSWSIG }, {USB_VENDOR_OLYMPUS, USB_PRODUCT_OLYMPUS_C700, RID_WILDCARD, UMASS_PROTO_SCSI, NO_GETMAXLUN }, --HPS