From owner-freebsd-bluetooth@FreeBSD.ORG Tue Nov 9 02:37:55 2010 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AD42106566B for ; Tue, 9 Nov 2010 02:37:55 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id CFD968FC18 for ; Tue, 9 Nov 2010 02:37:54 +0000 (UTC) Received: by iwn39 with SMTP id 39so6980576iwn.13 for ; Mon, 08 Nov 2010 18:37:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=d7pIsdjmh3Tr0GSg3E4eSsaHPW35u1bGIiCeiZq5Cjs=; b=m9HcxOoCCUxKc1PDIB/FO1HPCb05vconFKYrZZ3UG8Je/8/AOBlc3eFyQFJL0L6uAF ZIz4KdsmsuQd+BWqi888tIb6w6bT9y33ZYyQwTT6Hez04wTT1P9hFmiMhSSqNyzZtUeT 3bjSvaVHJI5J0uhVJ4GA7YeYJiFx/Bg9vEqTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=UQH2RaqKn/GX2WamlRWJAWNqWeVpJY8M0/T5HxCq6wrPk9fp/873RBqzBT/olDcsoc AbMxGK65HbJkBgzLeLJF9X4oUjdQXlX3ygJor6kXPZt3PLTRwvitnM8YsVLMeuUNqaTf 7v4Bhek8406Ow8rQvmh5C1sQqZ3bwzCGZcsVA= MIME-Version: 1.0 Received: by 10.231.14.136 with SMTP id g8mr4616875iba.188.1289270273965; Mon, 08 Nov 2010 18:37:53 -0800 (PST) Received: by 10.231.207.14 with HTTP; Mon, 8 Nov 2010 18:37:53 -0800 (PST) In-Reply-To: <769713d670c5ad3db58c276b0e6e81a9@ringofsaturn.com> References: <06b90815b84b40625e37317bc16b13ec@ringofsaturn.com> <8647f55a4e8dcce33036a0810564b9e0@ringofsaturn.com> <769713d670c5ad3db58c276b0e6e81a9@ringofsaturn.com> Date: Mon, 8 Nov 2010 18:37:53 -0800 Message-ID: From: Maksim Yevmenkin To: rnejdl@ringofsaturn.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-bluetooth@freebsd.org Subject: Re: Troubleshooting a USB Bluetooth Dongle X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2010 02:37:55 -0000 it looks like your kernel sources have changed since the time you have built the kernel. please re-build kernel and all the modules using the same source tree. thanks, max On Mon, Nov 8, 2010 at 6:33 PM, Rusty Nejdl wrote= : > Maksim, > > Well, that didn't quite go right: > > =EF=BB=BF[tethys]:/home/rnejdl/Downloads/ath3k> sudo make -C ath3k-1/ loa= d > > /sbin/kldload -v /home/rnejdl/Downloads/ath3k/ath3k-1/ath3k-1.ko > > kldload: can't load /home/rnejdl/Downloads/ath3k/ath3k-1/ath3k-1.ko: Exec > format error*** Error code 1 > Stop in /home/rnejdl/Downloads/ath3k/ath3k-1. > > Exit 1 > > [tethys]:/home/rnejdl/Downloads/ath3k> sudo make -C ubtath3kfw/ load > > /sbin/kldload -v /home/rnejdl/Downloads/ath3k/ubtath3kfw/ubtath3kfw.ko > > kldload: can't load /home/rnejdl/Downloads/ath3k/ubtath3kfw/ubtath3kfw.ko= : > Exec format error*** Error code 1 > Stop in /home/rnejdl/Downloads/ath3k/ubtath3kfw. > > Exit 1 > > [tethys]:/home/rnejdl/Downloads/ath3k> > > I am running: > > =EF=BB=BFuname -aFreeBSD tethys.ringofsaturn.com 8.1-STABLE FreeBSD 8.1-S= TABLE #0: > Tue Oct 19 14:09:00 CDT 2010 > root@tethys.ringofsaturn.com:/usr/obj/usr/src/sys/SATURN =C2=A0amd64 > > I can update my kernel if needed or move the above sources into the kerne= l > directory as needed. =C2=A0This is from dmesg: > > =EF=BB=BFKLD ath3k-1.ko: depends on kernel - not available or version mis= match > linker_load_file: Unsupported file type > KLD ubtath3kfw.ko: depends on kernel - not available or version mismatch > linker_load_file: Unsupported file type > KLD ath3k-1.ko: depends on kernel - not available or version mismatch > linker_load_file: Unsupported file type > KLD ubtath3kfw.ko: depends on kernel - not available or version mismatch > linker_load_file: Unsupported file type > KLD ath3k-1.ko: depends on kernel - not available or version mismatch > linker_load_file: Unsupported file type > KLD ubtath3kfw.ko: depends on kernel - not available or version mismatch > linker_load_file: Unsupported file type > > And, you can keep the hardware and hopefully make some good use out of it= . > > Thanks! > Rusty > > On Mon, 8 Nov 2010 16:59:23 -0800, Maksim Yevmenkin wrote: > > Rusty, > > i've got something for you to test. > > could you please download fw driver package from > > http://people.freebsd.org/~emax/ath3k.tar.gz > > this package contains two drivers: > > 1) ath3k-1 -- driver to hold ath3k-1.fw image (obtained from fedora) > > 2) ubtath3kfw -- fw download driver > > you need to build both drivers from source. after you untar the > package, please execute > > % make depend > % make > > if everything goes well, you should have .ko files in both > directories. please kldload both modules, i.e. > > # make -C ath3k-1/ load > # make -C ubtath3kfw/ load > > then you need to load ng_ubt(4) module, i.e. > > # kldload ng_ubt > > now you should be able to attach your dongle and after few seconds > ng_ubt(4) should pick it up, i.e. i have in my /var/log/messages > > Nov 8 16:46:02 beetle kernel: ugen2.2: at usbus2 > Nov 8 16:46:02 beetle kernel: ubtath3kfw0: on usbus2 > Nov 8 16:46:03 beetle kernel: ugen2.2: at usbus2 (disconnected) > Nov 8 16:46:03 beetle kernel: ubtath3kfw0: at uhub2, port 1, addr 2 > (disconnected) > Nov 8 16:46:06 beetle kernel: ugen2.2: at usbus2 > Nov 8 16:46:06 beetle kernel: ubt0: on usbus2 > Nov 8 16:46:06 beetle root: Unknown USB device: vendor 0x0cf3 product > 0x3002 bus uhub2 > > after that you should be able to use it as regular bluetooth dongle. > > thank you very much for providing the hardware. please let me know if > you need it back. > > thanks, > max > > > On Tue, Nov 2, 2010 at 2:54 PM, Rusty Nejdl wro= te: > > On Tue, 2 Nov 2010 14:29:06 -0700, Maksim Yevmenkin wrote: > > On Tue, Nov 2, 2010 at 2:18 PM, Rusty Nejdl wro= te: > > On Tue, 2 Nov 2010 13:36:56 -0700, Maksim Yevmenkin wrote: > > Hello, > > I am trying to find a working bluetooth dongle or get the one I have > working. I purchased a =EF=BB=BFASUS USB-BT211 [1] which is cheap but is = not > picked up by FreeBSD. All of the bluetooth devices mentioned on the > website are not manufactured any more and I was hoping to be able to > utilize something more recent. So, if anyone can recommend a recent > device like the above or how I can assist in troubleshooting the device > I purchased, I would appreciate any feedback. > > i assume that you have kldload(8)ed ng_ubt(4) driver, correct? > > if you did, and it still does not work, then could you please dump usb > descriptor for the device? quick google search suggests that at least > some of those adapters are based on atheros ar3011 chip (vendor/device > id 0x0cf3/0x3000) , and require firmware download. basically, very > similar to a certain broadcom chip, for which we have ubtbcmfw(4) > driver. > > [...] > > thanks for the information > > =EF=BB=BFNov 2 16:08:02 tethys root: Unknown USB device: vendor 0x0cf3 p= roduct > 0x3000 bus uhub8 > Nov 2 16:08:02 tethys kernel: ugen3.3: at usbus3 > > Which doesn't give me much. Doing a config dump: > > i disagree :) it gives you vendor/device id pair which is > 0x0cf3/0x3000. in other words, your adapter is based on atheros ar3011 > chip and will require a special (new) driver that would download > firmware. ubtbcmfw(4) will not work, because its for broadcom chip. i > only mentioned this because it would be similar, but not the same :) > > [...] > > So, any suggestions on where to go next? > > 1) need to write a special ubtathfw(4) driver; > > 2) obtain firmware (i assume it would be on a cd that came with the dongl= e); > > the good thing is that linux 2.6.33.7 kernel already has firmware > driver, so, it makes it easier to port. i can probably take a stab at > it, but, without device, you would have to test it (and likely to > crash your machine several times :) are you up for it? > > thanks, > max > > Max, > > Well, I have 3 different options: > > 1) Sure, I would be happy to test. > > 2) I am also testing out USB Pass through into VirtualBox and so can do s= ome > sandbox testing there. > > 3) I would be happy to order one and have it sent your way if you would > like. Just let me know your address. > > Thanks! > Rusty Nejdl > >