From b2511e97c4c7ee5bdf93b5acc38b7971e231566c Mon Sep 17 00:00:00 2001 From: cuu Date: Wed, 17 Jul 2019 12:30:02 +0800 Subject: [PATCH] sync bluetooth_firmware.sh from master branch --- bluetooth_firmware.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bluetooth_firmware.sh diff --git a/bluetooth_firmware.sh b/bluetooth_firmware.sh new file mode 100755 index 0000000..dc9ef66 --- /dev/null +++ b/bluetooth_firmware.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +FIRM=`cat /proc/driver/brcmf_fw` + +if [[ $FIRM =~ .*a0.* ]] +then + brcm_patchram_plus --patchram /lib/firmware/brcm/bcm43438a0.hcd --enable_hci --bd_addr B0:F1:EC:2D:07:5B --no2bytes --tosleep 5000 /dev/ttyS1 & +else + brcm_patchram_plus --patchram /lib/firmware/brcm/bcm43438a1.hcd --enable_hci --bd_addr B0:F1:EC:2D:07:5B --no2bytes --tosleep 5000 /dev/ttyS1 & +fi