From owner-freebsd-bluetooth@FreeBSD.ORG Thu Mar 5 23:19:50 2015 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 12618937 for ; Thu, 5 Mar 2015 23:19:50 +0000 (UTC) Received: from mail-ie0-x22e.google.com (mail-ie0-x22e.google.com [IPv6:2607:f8b0:4001:c03::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5F8690C for ; Thu, 5 Mar 2015 23:19:49 +0000 (UTC) Received: by iebtr6 with SMTP id tr6so8000767ieb.2 for ; Thu, 05 Mar 2015 15:19:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=igte61/c/rlw/A2wFK4JdWbutakN1n0xpQYUqOSbUAQ=; b=V6ciR6ApCjF4BnYFtqhuMEZTaovvzN302S//0GAZspIhF0ogCRTIHqraH10sWGY6td +FkjJc6xET21DZJQLUhfJvhWNYtw+M0gHFKQoPe9hJh+/1T5PvfPblqQoTuWgVocr1Yf 4397txIiKkILSNKfBzTbEVOZXjM2qhj6YaTfRhRg7M2nV302t86MvH0jG7xZvQ/jzx/F HiSq5OqtJZ9A35gDcxh3BykgQ6Z7qbLyXoTRe297V90nozMHNErQRNFV/advuH1IzmiH 0mXcw6vwcMna3xSuqtNEr5K0ypowlN9V7KhGkDvqu3A5L2IuXWR4J1gS5zhpXGgIdtA9 rCHQ== MIME-Version: 1.0 X-Received: by 10.107.137.226 with SMTP id t95mr24351454ioi.10.1425597589225; Thu, 05 Mar 2015 15:19:49 -0800 (PST) Received: by 10.36.67.132 with HTTP; Thu, 5 Mar 2015 15:19:49 -0800 (PST) In-Reply-To: <20150305234319.89f5e1bf9baf7c36f9f6c75b@getmail.no> References: <20150228220307.b0ab42716d574a9bcfd83094@getmail.no> <20150303223312.c7b12845ae652cfc315c1b61@getmail.no> <20150304225917.56bb81d3e6da2773a0deb5fa@getmail.no> <20150305234319.89f5e1bf9baf7c36f9f6c75b@getmail.no> Date: Thu, 5 Mar 2015 15:19:49 -0800 Message-ID: Subject: Re: Belkin F8T065 doesn't register properly (BCM20702A0) From: Maksim Yevmenkin To: Torfinn Ingolfsen Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-bluetooth@freebsd.org" 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 23:19:50 -0000 On Thu, Mar 5, 2015 at 2:43 PM, Torfinn Ingolfsen wrote: > 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 can you please tell which copy is it? netbsd or freebsd one? > 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. ...hmm.... > 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) yes, that's not going to work, i think... > 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) ... i think you need to use libusb. here some linux python code that might be of some help https://github.com/Dolnor/DELL-SCT-Support/blob/master/Clover/OEM/Wireless/SLE/BTFirmwareUploader.kext/Contents/Resources/bcmfwup.py thanks, max