M4COREDUMP: add service to enable coredump via remoteproc

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Change-Id: I6d5c1ca745fb2598f1937fa261a6fe5432d7f204
This commit is contained in:
Romuald JEANNE authored and Bernard PUEL committed 2021-03-26 10:37:20 +01:00
1 parent 7e75751041
commit f528573e33
3 files changed
+40

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=ST Enable M4 firmware coredump
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/stm32mp-coredump-sysfs.sh start
ExecStop=/sbin/stm32mp-coredump-sysfs.sh stop
[Install]
WantedBy=sysinit.target
@@ -0,0 +1,16 @@
#!/bin/sh
case $1 in
start)
echo enabled >/sys/class/remoteproc/remoteproc0/coredump
;;
stop)
echo disabled >/sys/class/remoteproc/remoteproc0/coredump
;;
*)
echo "$0 [start|stop]"
echo "Start/Stop M4 Fwirmware coredump."
;;
esac