/ap6212-bt.sh Secret
Created
March 17, 2017 14:38
AP6212 Bluetooth Flash and Start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/init.d/bluetooth start | |
echo 205 > /sys/class/gpio/export # BT-RESET | |
echo 8 > /sys/class/gpio/export # BT-WAKE | |
echo out > /sys/class/gpio/gpio205/direction | |
echo out > /sys/class/gpio/gpio8/direction | |
echo -n " " > /dev/ttyS3 | |
sleep 1 | |
echo 0 > /sys/class/gpio/gpio205/value && echo 1 > /sys/class/gpio/gpio205/value | |
sleep 1 | |
echo -n " " > /dev/ttyS3 | |
cat /proc/tty/driver/serial | |
sleep 1 | |
brcm_patchram_plus -d --patchram /etc/firmware/ap6212/4343A0.hcd --bd_addr 11:22:33:44:55:66 --no2bytes --tosleep 1000 /dev/ttyS3 | |
sleep 1 | |
hciattach /dev/ttyS3 any | |
hciconfig hci0 up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With dts
haven't been able to get rfkill to do anything