Hi herbat . You need to copy the bluetooth hcd file and hciattach it first. Here're the instructions (run with root): - 1. Mount Android system partition and copy out the AP6335 hcd file:
- # mount Android system partition
- mount /dev/block/mtd/by-name/system /mnt
- # mkdir for compatiblity
- mkdir -p /system/vendor/firmware
- # copy required hcd file
- cp /mnt/vendor/firmware/bcm4339a0.hcd /system/vendor/firmware/
- # umount
- umount /mnt
-
- 2. Install the neccessary bluetooth packages:
- apt-get install --no-install-recommends brcm-patchram-plus-nexus7 bluetooth ussp-push
- 3. Power on the bluetooth and do initializaion:
- # Power on
- cat /sys/class/rfkill/rfkill0/type # bluetooth
- echo 1 > /sys/class/rfkill/rfkill0/state
- # Upload hcd file
- brcm_patchram_plus -d --patchram /system/vendor/firmware/bcm4339a0.hcd --baudrate 1500000 --enable_lpm --enable_hci --no2bytes /dev/ttyS0 &
- 4. Wait some time until the brcm_patchram_plus settles down, then use bluez related commands to test:
- root@firefly:~# hciconfig -a
- hci0: Type: BR/EDR Bus: UART
- BD Address: 43:39:00:00:1F:AC ACL MTU: 1021:8 SCO MTU: 64:1
- UP RUNNING PSCAN
- RX bytes:1186 acl:0 sco:0 events:39 errors:0
- TX bytes:956 acl:0 sco:0 commands:39 errors:0
- Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
- Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
- Link policy: RSWITCH SNIFF
- Link mode: SLAVE ACCEPT
- Name: 'firefly-0'
- Class: 0x600100
- Service Classes: Audio, Telephony
- Device Class: Computer, Uncategorized
- HCI Version: 4.0 (0x6) Revision: 0x10c
- LMP Version: 4.0 (0x6) Subversion: 0x6109
- Manufacturer: Broadcom Corporation (15)
- hci0 should be up and running now.
- 5. Shutdown bluetooth.
- echo 0 > /sys/class/rfkill/rfkill0/state
Copy the code
|