From owner-freebsd-bluetooth@FreeBSD.ORG Thu Mar 5 22:43:35 2015 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1DD16F28 for ; Thu, 5 Mar 2015 22:43:35 +0000 (UTC) Received: from bouvier.getmail.no (bouvier.getmail.no [84.210.184.8]) by mx1.freebsd.org (Postfix) with ESMTP id B48F9399 for ; Thu, 5 Mar 2015 22:43:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by bouvier.getmail.no (Postfix) with ESMTP id 6F92043AF7 for ; Thu, 5 Mar 2015 23:43:27 +0100 (CET) Received: from bouvier.getmail.no ([127.0.0.1]) by localhost (bouvier.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id p6r8v3hhgFA2 for ; Thu, 5 Mar 2015 23:43:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by bouvier.getmail.no (Postfix) with ESMTP id A22C944407 for ; Thu, 5 Mar 2015 23:43:26 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.8.4 bouvier.getmail.no A22C944407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=getmail.no; s=8A9C8B4C-D727-11E2-8095-B6466E6B3FA2; t=1425595406; bh=QqwmAztKk/q2wTMXOTxMSpRBgsfbwqqeh2XIHlR23uM=; h=Date:From:To:Subject:Message-Id:Mime-Version:Content-Type: Content-Transfer-Encoding; b=s18x6Hyr0Jspd31szFle/n70xNZIAKFDO3zAydJ55L5a1tbd5BTV4cf1JzgEJaFir LIzhroHOnSbsalzd5Xj2q4yw3PjWm0oDNI2LSamDzO0LnrK1ZiupYRDiHD3XPXS2Do AbnneGp0aG2EPwH/qay9ZH0zghf7nUHtzs5CMmKQ= X-Virus-Scanned: amavisd-new at bouvier.get.c.bitbit.net Received: from bouvier.getmail.no ([127.0.0.1]) by localhost (bouvier.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id r6-4StalP_Fi for ; Thu, 5 Mar 2015 23:43:26 +0100 (CET) Received: from kg-core1.kg4.no (cm-84.215.180.206.getinternet.no [84.215.180.206]) by bouvier.getmail.no (Postfix) with ESMTPSA id 7C58C43C73 for ; Thu, 5 Mar 2015 23:43:26 +0100 (CET) Date: Thu, 5 Mar 2015 23:43:19 +0100 From: Torfinn Ingolfsen To: "freebsd-bluetooth@freebsd.org" Subject: Re: Belkin F8T065 doesn't register properly (BCM20702A0) Message-Id: <20150305234319.89f5e1bf9baf7c36f9f6c75b@getmail.no> In-Reply-To: References: <20150228220307.b0ab42716d574a9bcfd83094@getmail.no> <20150303223312.c7b12845ae652cfc315c1b61@getmail.no> <20150304225917.56bb81d3e6da2773a0deb5fa@getmail.no> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; amd64-portbld-freebsd9.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2015 22:43:35 -0000 On Thu, 5 Mar 2015 08:02:57 -0800 Maksim Yevmenkin wrote: > On Wed, Mar 4, 2015 at 11:19 PM, Iain Hibbert wrote: > > On Wed, 4 Mar 2015, maksim yevmenkin wrote: > > > >> >> looking for. of course, like i mentioned before, you need to hack > >> >> something to load firmware. older Broadcom chips can be loaded with > >> >> bcmfw(8). so its a good place to start. > >> > > >> > If I understand this correctly, bcmfw(8) needs ubtbcmfw(4) to be able to download firmware? > >> > >> You might be able to use ugen. Ok, I didn't think of that. A quick hack on a copy of bcmfw, and I have this: removed the check for '-m': tingo@kg-core1$ ~/work/bcmfw/bcmfw -n ugen3.3 -f ./Win32/BCM20702A1_001.002.014.0889.0927.hex bcmfw[45566]: Unsupported device, VendorID=0x50d, ProductID=0x65a that is as should be - cool. Next, I add the correct VendorID and ProductID, and comment out the mini-driver download part. Now I get this: tingo@kg-core1$ ~/work/bcmfw/bcmfw -n ugen3.3 -f ./Win32/BCM20702A1_001.002.014.0889.0927.hex bcmfw[45611]: Could not open(/dev/ugen3.3.1). No such file or directory (2) Hmm, change BCMFW_INTR_EP to 0 (zero) then. tingo@kg-core1$ ~/work/bcmfw/bcmfw -n ugen3.3 -f ./Win32/BCM20702A1_001.002.014.0889.0927.hex bcmfw[45673]: Could not open(/dev/ugen3.3.0). No such file or directory (2) Ok, I'm doing things I don't know here, but dump current description says (in part) root@kg-core1# usbconfig -d ugen3.3 dump_curr_config_desc ugen3.3: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x00da bNumInterfaces = 0x0004 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0003 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0001 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0010 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 2 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0002 bmAttributes = 0x0002 wMaxPacketSize = 0x0040 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 [...cut...] and Interface 1 is all isochronous, Interface 2 is bulk in / out, and Interface 3 is "special" (or rather, then endpoints of the interface are ...) How do I know (or figure out) which interface is the correct one to use? -- Torfinn Ingolfsen