mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-03-25 01:56:43 +07:00
ap6212: Added zeroplus2-bt-legacy.sh
This commit is contained in:
13
external/packages/bsp/sunxi/zeroplus2-bt-legacy.sh
vendored
Executable file
13
external/packages/bsp/sunxi/zeroplus2-bt-legacy.sh
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
MAC=$(echo -n 1c:1b; dd bs=1 count=4 if=/dev/random 2>/dev/null | hexdump -v -e '/1 ":%02X"')
|
||||
|
||||
rfkill unblock all
|
||||
echo "0" > /sys/class/rfkill/rfkill0/state
|
||||
sleep 2
|
||||
echo "1" > /sys/class/rfkill/rfkill0/state
|
||||
sleep 2
|
||||
echo "" > /dev/ttyS1
|
||||
sleep 2
|
||||
|
||||
brcm_patchram_plus --enable_hci --no2bytes --tosleep 200000 --use_baudrate_for_download --baudrate 115200 --bd_addr ${MAC} --patchram /lib/firmware/ap6212/bcm43438a1.hcd /dev/ttyS1 &
|
||||
Reference in New Issue
Block a user