Add support of coredump with CM4
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
This commit is contained in:
1 parent
02fce41bed
commit
b5da8461bb
3 files changed
+32
No files matched your search
@@ -0,0 +1 @@
|
||||
SUBSYSTEM=="devcoredump", ACTION=="add", RUN+="#BINDIR#/stm32mp-m4fwdump.sh"
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p /var/crash
|
||||
timestamp=$(date +%F_%H-%M-%S)
|
||||
filename=/var/crash/m4-fw-error_${timestamp}.dump
|
||||
cat /sys/${DEVPATH}/data > ${filename}
|
||||
echo 1 > /sys/${DEVPATH}/data
|
||||
Reference in new issue
Block a user