summaryrefslogtreecommitdiffstats
path: root/recipes-connectivity
diff options
context:
space:
mode:
authorPeter A. Bigot <pab@pabigot.com>2018-05-06 14:13:30 -0500
committerAndrei Gherzan <andrei@gherzan.com>2018-05-09 16:45:50 +0100
commit6f8926e80ec06f3cf8fe5226016cee3faa22845d (patch)
tree28432ef9c2ad35260fa613d40b58b38a451e1f00 /recipes-connectivity
parentdf53ac131aa35753703af4a6a251a4fc7dec4d4e (diff)
downloadmeta-raspberrypi-6f8926e80ec06f3cf8fe5226016cee3faa22845d.tar.gz
bluez5: fix issues with systemd script
Type=simple is wrong: it allows bluetooth.service to start before the uart is configured, resulting in hci0 command tx timeout errors. Type=oneshot blocks follow-up units until the ExecStart completes. Add RemainAfterExit since system state has changed as a result of the unit. Also add a BindsTo for the device that we're going to use. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Diffstat (limited to 'recipes-connectivity')
-rw-r--r--recipes-connectivity/bluez5/bluez5/brcm43438.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-connectivity/bluez5/bluez5/brcm43438.service b/recipes-connectivity/bluez5/bluez5/brcm43438.service
index 9a607bc..df699a4 100644
--- a/recipes-connectivity/bluez5/bluez5/brcm43438.service
+++ b/recipes-connectivity/bluez5/bluez5/brcm43438.service
@@ -2,10 +2,12 @@
2Description=Broadcom BCM43438 bluetooth HCI 2Description=Broadcom BCM43438 bluetooth HCI
3ConditionPathIsDirectory=/proc/device-tree/soc/gpio@7e200000/bt_pins 3ConditionPathIsDirectory=/proc/device-tree/soc/gpio@7e200000/bt_pins
4Before=bluetooth.service 4Before=bluetooth.service
5BindsTo=dev-serial1.device
5After=dev-serial1.device 6After=dev-serial1.device
6 7
7[Service] 8[Service]
8Type=simple 9Type=oneshot
10RemainAfterExit=yes
9ExecStart=/usr/bin/hciattach -n /dev/serial1 bcm43xx 921600 noflow - 11ExecStart=/usr/bin/hciattach -n /dev/serial1 bcm43xx 921600 noflow -
10 12
11[Install] 13[Install]