Merge pull request #259 from cuu/gcores

sync bluetooth_firmware.sh from master branch
This commit is contained in:
GNU 2019-07-17 12:31:38 +08:00 committed by GitHub
commit 119cf5f2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
bluetooth_firmware.sh Executable file
View File

@ -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