Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Nov 2010 20:33:35 -0600
From:      Rusty Nejdl <rnejdl@ringofsaturn.com>
To:        Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: Troubleshooting a USB Bluetooth Dongle
Message-ID:  <769713d670c5ad3db58c276b0e6e81a9@ringofsaturn.com>
In-Reply-To: <AANLkTinpBWE-WOy3m8tmvVOrzkQkPED7EpcPCaZAvf5C@mail.gmail.com>
References:  <06b90815b84b40625e37317bc16b13ec@ringofsaturn.com> <AANLkTi=ObMmqB6TzH3C-N_7m9S56_x78ZczQ%2Bc4aE%2BKE@mail.gmail.com> <8647f55a4e8dcce33036a0810564b9e0@ringofsaturn.com> <AANLkTimRpXA2b_Pw7=fzApAjFb5FWRTPdPYvH-8pSw=m@mail.gmail.com> <dfe73d3c6664b2bee7d86e19efdc24df@ringofsaturn.com> <AANLkTinpBWE-WOy3m8tmvVOrzkQkPED7EpcPCaZAvf5C@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Maksim, 

Well, that didn't quite go right:


[tethys]:/home/rnejdl/Downloads/ath3k> sudo make -C ath3k-1/ load


/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:


uname -aFreeBSD tethys.ringofsaturn.com 8.1-STABLE FreeBSD 8.1-STABLE
#0: Tue Oct 19 14:09:00 CDT 2010
root@tethys.ringofsaturn.com:/usr/obj/usr/src/sys/SATURN amd64 

I can
update my kernel if needed or move the above sources into the kernel
directory as needed. This is from dmesg: 

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
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 [2]
> 
>
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 wrote:
>> On Tue, 2 Nov 2010 14:29:06 -0700, Maksim
Yevmenkin wrote: On Tue, Nov 2, 2010 at 2:18 PM, Rusty Nejdl wrote: 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 ASUS 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 Nov 2 16:08:02
tethys root: Unknown USB device: vendor 0x0cf3 product 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 dongle); 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 some 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

 

Links:
------
[1]
mailto:rnejdl@ringofsaturn.com
[2]
http://people.freebsd.org/~emax/ath3k.tar.gz
[3]
mailto:rnejdl@ringofsaturn.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?769713d670c5ad3db58c276b0e6e81a9>