commit b45f5660ada31399018b6744471da8b595afb6b8 Author: dphys Date: Fri Aug 10 21:44:38 2018 +0800 Initial Home page diff --git a/Home.md b/Home.md new file mode 100644 index 0000000..1bb32bf --- /dev/null +++ b/Home.md @@ -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: + +
+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
+
+ +"--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: +
+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
+