summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c22226b)
Change-Id: I4a3f41dd3bc2edb1c25e430cd4a0864635402919
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
%post rpi3
rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh
%post rpi3
rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh
+rm -rf %{_prefix}/etc/bluetooth/bt-dev-end.sh
ln -s %{_prefix}/etc/bluetooth/bt-dev-start-rpi3.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh
ln -s %{_prefix}/etc/bluetooth/bt-dev-start-rpi3.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh
+ln -s %{_prefix}/etc/bluetooth/bt-dev-end-rpi3.sh %{_prefix}/etc/bluetooth/bt-dev-end.sh
%files rpi3
%manifest %{name}.manifest
%license LICENSE.APLv2 LICENSE.Broadcom
%defattr(-,root,root,-)
%{_prefix}/etc/bluetooth/BCM43430A1.hcd
%files rpi3
%manifest %{name}.manifest
%license LICENSE.APLv2 LICENSE.Broadcom
%defattr(-,root,root,-)
%{_prefix}/etc/bluetooth/BCM43430A1.hcd
-%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh
+%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end-rpi3.sh
%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-rpi3.sh
%manifest %{name}.manifest
%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-rpi3.sh
%manifest %{name}.manifest
# RPI3
INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bt-dev-start-rpi3.sh DESTINATION ${PLUGIN_INSTALL_PREFIX}/etc/bluetooth)
# RPI3
INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bt-dev-start-rpi3.sh DESTINATION ${PLUGIN_INSTALL_PREFIX}/etc/bluetooth)
+INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bt-dev-end-rpi3.sh DESTINATION ${PLUGIN_INSTALL_PREFIX}/etc/bluetooth)
--- /dev/null
+#!/bin/sh
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+PGREP=/usr/bin/pgrep
+
+#
+# Script for stopping Broadcom UART Bluetooth stack
+#
+
+# Device down
+/usr/bin/hciconfig hci0 down
+
+# OMAP4
+REVISION_NUM=`grep Revision /proc/cpuinfo | awk "{print \\$3}"`
+if [ $REVISION_NUM == "0006" ]; then
+ rmmod bt_drv.ko
+ rmmod st_drv.ko
+ sleep 1
+ UIM_RFKILL_PID=$($PGREP uim_rfkill)
+ kill $UIM_RFKILL_PID
+ exit 0
+fi
+
+#if [ -e /sys/class/gpio/gpio17/value ]
+#then
+# # Reset BT chip
+# echo 0 > /sys/class/gpio/gpio17/value
+# sleep 0.1
+# echo 1 > /sys/class/gpio/gpio17/value
+#fi
+