mirror of
https://github.com/clockworkpi/bluetooth.git
synced 2026-03-29 16:23:01 +02:00
Initial Home page
25
Home.md
Normal file
25
Home.md
Normal file
@@ -0,0 +1,25 @@
|
||||
1. Update the uImage and sun8i-r16-clockworkpi-cpi3.dtb under the boot partition in the SD card and reboot GS.
|
||||
2. Copy the Bluetooth chip firmware bcm43438a0.hcd to /lib/firmware/brcm/
|
||||
3. Copy the firmware burning program brcm_patchram_plus to /usr/bin/ and add the executable permission “chmod +x /usr/bin/brcm_patchram_plus”.
|
||||
4. sudo apt-get install bluez
|
||||
5. Load the Bluetooth driver with the following command:
|
||||
|
||||
<pre>
|
||||
sudo rfkill block 0
|
||||
sudo rfkill unblock 0
|
||||
sudo brcm_patchram_plus --patchram /lib/firmware/brcm/bcm43438a0.hcd --enable_hci --bd_addr aa:22:33:44:55:66 --no2bytes --tosleep 5000 /dev/ttyS1
|
||||
</pre>
|
||||
|
||||
"--bd_addr aa:22:33:44:55:66" is to set the Bluetooth MAC address, recommended to read the wifi MAC address and change the last bit as the Bluetooth MAC address.
|
||||
|
||||
If the driver loads successfully, you can see "Done setting line discpline", currently it takes **about 20 seconds** (this is an issue).
|
||||
|
||||
After loading, you can see the Bluetooth device with hciconfig:
|
||||
<pre>
|
||||
cpi@clockworkpi:~$ hciconfig
|
||||
hci0: Type: Primary Bus: UART
|
||||
BD Address: B0:F1:EC:2D:07:5B ACL MTU: 1021:8 SCO MTU: 64:1
|
||||
UP RUNNING PSCAN
|
||||
RX bytes:1193 acl:1 sco:0 events:64 errors:0
|
||||
TX bytes:2339 acl:2 sco:0 commands:54 errors:0
|
||||
</pre>
|
||||
Reference in New Issue
Block a user