Problems getting the bluetooth stack to start
John
comp.john at googlemail.com
Sun Nov 22 02:06:23 UTC 2009
Hello list,
my system:
7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #1: Sat Nov 21 16:55:14 GMT 2009
root at potato:/usr/src/sys/amd64/compile/POTATO amd64
The kernel is generic apart from ehci being commented out. Sources
cvsupped earlier today from cvsup.uk.freebsd.org
I'm trying to get my sony erikson T610 to work with a nexus bluemicro
pro dongle on 7.2-R. The galling thing is, I got it to work once, but it
was late and I forgot how. I can't get the bluetooth stack to start, and
I'm following the instructins as per the handbook
Firstly, the small size of the device means that it is very awkward to
pull the dongle out once it's pushed in. When restarting the computer,
is it sufficient to reboot(8) then power the machine off, wait a few
seconds then power it back up? I mean does this properly reset the
dongle, or does it truly have to be pulled out and pushed back in for
the system to re-read it?
I've tried various suggestions while googling trying to find the answer.
One suggestion (with a different device) was to disable ehci and
recompile the kernel, which I've done. No difference. Another was to
stop the bluetooth script before starting it:
potato# /etc/rc.d/bluetooth start ubt0
/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device
ubt0
potato# /etc/rc.d/bluetooth stop ubt0
potato# /etc/rc.d/bluetooth start ubt0
/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device
ubt0
I find that when the system boots up, only one bluetooth-related kernel module is loaded:
potato# kldstat
Id Refs Address Size Name
1 9 0xffffffff80100000 768b98 kernel
2 1 0xffffffff80869000 7128 geom_concat.ko
3 1 0xffffffff80871000 9808 ng_ubt.ko
4 2 0xffffffff8087b000 14e08 netgraph.ko
5 1 0xffffffff80a22000 978 pflog.ko
6 1 0xffffffff80a23000 2ae8c pf.ko
7 1 0xffffffff80a4e000 aa7a fuse.ko
8 1 0xffffffff80a59000 82e accf_http.ko
potato# ngctl li
There are 1 total nodes:
Name: ngctl1196 Type: socket ID: 00000001 Num hooks:0
When I try to start the stack, this happens:
potato# /etc/rc.d/bluetooth start ubt0
/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device
ubt0
potato# /etc/rc.d/bluetooth stop ubt0
potato# /etc/rc.d/bluetooth start ubt0
/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device
ubt0
let's do a kldstat again:
potato# kldstat
Id Refs Address Size Name
1 14 0xffffffff80100000 768b98 kernel
2 1 0xffffffff80869000 7128 geom_concat.ko
3 1 0xffffffff80871000 9808 ng_ubt.ko
4 6 0xffffffff8087b000 14e08 netgraph.ko
5 1 0xffffffff80a22000 978 pflog.ko
6 1 0xffffffff80a23000 2ae8c pf.ko
7 1 0xffffffff80a4e000 aa7a fuse.ko
8 1 0xffffffff80a59000 82e accf_http.ko
9 1 0xffffffff80a5a000 19ba ng_socket.ko
10 4 0xffffffff80a5c000 89a ng_bluetooth.ko
11 1 0xffffffff80a5d000 8b1a ng_hci.ko
12 1 0xffffffff80a66000 b498 ng_l2cap.ko
13 1 0xffffffff80a72000 12c9e ng_btsocket.ko
loads of stuff now.
potato# ngctl li
There are 4 total nodes:
Name: btsock_l2c_raw Type: btsock_l2c_raw ID: 00000003 Num hooks: 0
Name: btsock_hci_raw Type: btsock_hci_raw ID: 00000002 Num hooks: 0
Name: btsock_l2c Type: btsock_l2c ID: 00000004 Num hooks: 0
Name: ngctl1781 Type: socket ID: 00000012 Num hooks: 0
but still I cannot get the stack to work! I have also tried commenting
out the ubt* stuff in devd.conf and rebooting, no difference. The little
light on the dongle flashes merrily, but if the stack won't start I
won't be able to do anything.
Can anyone help please?
--
John - comp dot john at googlemail dot com
OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop
GPG: 0xF08A33C5
More information about the freebsd-bluetooth
mailing list