From 43b4176f0e0e4d1e73463e9ff21a69e6e2848215 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 21 Jun 2013 19:24:13 +0200 Subject: sysmobts.service: Reset the firmware after the service exited These should have been ExecStopPost from the beginning. Currently they reset the firmware while the software is starting. Reload the DSP and FPGA firmware. --- contrib/sysmobts.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/sysmobts.service b/contrib/sysmobts.service index adced9c4..fc869ebd 100644 --- a/contrib/sysmobts.service +++ b/contrib/sysmobts.service @@ -5,8 +5,8 @@ Description=sysmocom sysmoBTS Type=simple ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness' ExecStart=/usr/bin/sysmobts -s -c /etc/osmocom/osmo-bts.cfg -ExecStartPost=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness' -ExecStartPost=/bin/sh -c 'cat /lib/firmware/sysmobts-v?.out > /dev/dspdl_dm644x_0' +ExecStopPost=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness' +ExecStopPost=/bin/sh -c 'cat /lib/firmware/sysmobts-v?.bit > /dev/fpgadl_par0 ; sleep 3s; cat /lib/firmware/sysmobts-v?.out > /dev/dspdl_dm644x_0; sleep 1s' Restart=always RestartSec=2 -- cgit v1.2.3