aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-06-21 19:24:13 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-06-24 08:17:12 +0200
commit43b4176f0e0e4d1e73463e9ff21a69e6e2848215 (patch)
tree9f828f08aa468a93eb65168da74cc05f4dcf5897
parent266af543e3789130948bb357c15784e07784af42 (diff)
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.
-rw-r--r--contrib/sysmobts.service4
1 files changed, 2 insertions, 2 deletions
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