diff options
author | Peter A. Bigot <pab@pabigot.com> | 2018-05-06 14:13:30 -0500 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2018-05-09 16:45:50 +0100 |
commit | 6f8926e80ec06f3cf8fe5226016cee3faa22845d (patch) | |
tree | 28432ef9c2ad35260fa613d40b58b38a451e1f00 /recipes-connectivity | |
parent | df53ac131aa35753703af4a6a251a4fc7dec4d4e (diff) | |
download | meta-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.service | 4 |
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 @@ | |||
2 | Description=Broadcom BCM43438 bluetooth HCI | 2 | Description=Broadcom BCM43438 bluetooth HCI |
3 | ConditionPathIsDirectory=/proc/device-tree/soc/gpio@7e200000/bt_pins | 3 | ConditionPathIsDirectory=/proc/device-tree/soc/gpio@7e200000/bt_pins |
4 | Before=bluetooth.service | 4 | Before=bluetooth.service |
5 | BindsTo=dev-serial1.device | ||
5 | After=dev-serial1.device | 6 | After=dev-serial1.device |
6 | 7 | ||
7 | [Service] | 8 | [Service] |
8 | Type=simple | 9 | Type=oneshot |
10 | RemainAfterExit=yes | ||
9 | ExecStart=/usr/bin/hciattach -n /dev/serial1 bcm43xx 921600 noflow - | 11 | ExecStart=/usr/bin/hciattach -n /dev/serial1 bcm43xx 921600 noflow - |
10 | 12 | ||
11 | [Install] | 13 | [Install] |