| 1 | This page explains how to create an image with enabled Bluetooth. |
| 2 | |
| 3 | == Current images with BT enabled == |
| 4 | |
| 5 | * bluetooth-0.1.0.ndz built on baseline-1.0.9.nzd with old madwifi and kernel 2.6.12 |
| 6 | * bluetooth-0.1.1.ndz built on baseline-1.0.9.nzd with old madwifi and kernel 2.6.12 |
| 7 | |
| 8 | The reason to keep this is that madwifi allows to change transmit power. Version 0.1.1 contains old madwifi with ability to fix transmission rate using iwconfig, but does not support libmac |
| 9 | To Do: USB Bluetooth key chain has to be reinserted in order to be recognized. |
| 10 | |
| 11 | * bluetooth-0.2.0.ndz built on baseline-2.0.ndz with hacked nodeAgent to support new madwifi |
| 12 | |
| 13 | == Making Bluetooth work == |
| 14 | |
| 15 | The kernel must have USB and Bluetooth support enabled. If that is not the case: |
| 16 | |
| 17 | {{{ |
| 18 | /usr/src/<path to your kernel source># make menuconfig |
| 19 | }}} |
| 20 | |
| 21 | Compile the kernel and reboot. There should be /proc/bus/usb directory created. |
| 22 | |
| 23 | {{{ |
| 24 | apt-get install bluetooth |
| 25 | /etc/init.d/bluetooth start |
| 26 | }}} |
| 27 | |
| 28 | After that you should be able to see something like: |
| 29 | {{{ |
| 30 | node1-1:~# hciconfig |
| 31 | hci0: Type: USB |
| 32 | BD Address: 00:0A:3A:53:D4:82 ACL MTU: 192:8 SCO MTU: 64:8 |
| 33 | UP RUNNING PSCAN ISCAN |
| 34 | RX bytes:395 acl:0 sco:0 events:17 errors:0 |
| 35 | TX bytes:313 acl:0 sco:0 commands:16 errors:0 |
| 36 | }}} |
| 37 | |
| 38 | In order to save the image, and be able to login to the node by means other than the serial console delete the following file if exists: |
| 39 | |
| 40 | {{{ |
| 41 | node1-1:/etc/udev/rules.d# rm z25_persistent-net.rules |
| 42 | }}} |
| 43 | |
| 44 | Otherwise, saving an image causes the interfaces to "shift" from eth0 and eth1 to eth2 and eth3, and the node is after imaging accessible only through the serial console. |
| 45 | |
| 46 | == Some usefull links == |
| 47 | |
| 48 | http://www.gentoo.org/doc/en/bluetooth-guide.xml |
| 49 | |
| 50 | http://wiki.debian.org/Bluetooth |
| 51 | |
| 52 | http://www.linux-usb.org/USB-guide/book1.html |