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:
1 parent
7e75751041
commit
f528573e33
3 files changed
+40
No files matched your search
+11
@@ -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
|
||||
|
||||
Reference in new issue
Block a user