diff options
author | Wu Zheng <wu.zheng@intel.com> | 2013-09-23 14:29:27 +0800 |
---|---|---|
committer | Wu Zheng <wu.zheng@intel.com> | 2013-09-23 14:29:27 +0800 |
commit | 47f658c0d11826952949cfa1e19b7a1dbf52b1c7 (patch) | |
tree | 9a13ec1477032e75ba34697a6dccf3acc3afcc9e | |
parent | 0b3d93e83f62e7e8b9d21d648fec7a0fd5cb0681 (diff) | |
download | system-plugin-ia-generic-47f658c0d11826952949cfa1e19b7a1dbf52b1c7.tar.gz system-plugin-ia-generic-47f658c0d11826952949cfa1e19b7a1dbf52b1c7.tar.bz2 system-plugin-ia-generic-47f658c0d11826952949cfa1e19b7a1dbf52b1c7.zip |
Enable BT start and BT end to match bcm43341b0 BT chip
-rwxr-xr-x | scripts/bt-dev-end.sh | 4 | ||||
-rwxr-xr-x | scripts/bt-dev-start.sh | 18 |
2 files changed, 16 insertions, 6 deletions
diff --git a/scripts/bt-dev-end.sh b/scripts/bt-dev-end.sh index b399288..3c14671 100755 --- a/scripts/bt-dev-end.sh +++ b/scripts/bt-dev-end.sh @@ -7,5 +7,7 @@ # Device down /usr/sbin/hciconfig hci0 down +killall brcm_patchram_plus + # Turn off Bluetooth Chip -rfkill block bluetooth +echo 0 > /sys/class/rfkill/rfkill0/state diff --git a/scripts/bt-dev-start.sh b/scripts/bt-dev-start.sh index 9493217..872bdb6 100755 --- a/scripts/bt-dev-start.sh +++ b/scripts/bt-dev-start.sh @@ -3,13 +3,21 @@ # # Script for registering Broadcom UART BT device # -if !(/sbin/lsmod | grep btwilink); then - modprobe btwilink - /bin/uim & +if !(/sbin/lsmod | grep bcm_bt_lpm); then + /sbin/modprobe bcm_bt_lpm fi -# Trun-on Bluetooth Chip -rfkill unblock bluetooth +echo 1 > /sys/class/rfkill/rfkill0/state + +if !(/bin/ps aux | grep brcm_patchram_plus | grep -v grep) then + +/bin/brcm_patchram_plus --enable_hci --patchram \ + /lib/firmware/BCM43341B0_0008_ZTE.hcd --baudrate 3000000 \ + /dev/ttyMFD0 --no2bytes & + +/bin/sleep 2 + +fi echo "Check for Bluetooth device status" if (/usr/sbin/hciconfig | grep hci); then |