提高modem的core dump级别

时间:2021-09-18 18:37:23

zhangze@zhangze-OptiPlex-7040:~/e2_8939-E2-2104026-CTA/device/qcom/common$ git show
commit be2b5cb33a9f29b44d74fed53f86baea6a823ea5
Author: Zhang Ze <ze.zhang@sim.com>
Date:   Tue Aug 22 11:03:37 2017 +0800

E2-DUMP set dump level to 3
    
    Change-Id: I0369c894bdf3640155648b208c6d3ba28d23c4a6

diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index 9e17999..b6bb9f8 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -68,6 +68,9 @@ on early-boot
     write /sys/module/peripheral_loader/parameters/proxy_timeout_ms ${persist.sys.pil_proxy_timeout}
     write /sys/kernel/boot_adsp/boot 1
     chown root audio /sys/kernel/boot_adsp/boot
+    write /sys/bus/msm_subsys/devices/subsys0/restart_level "related"
+    write /sys/bus/msm_subsys/devices/subsys1/restart_level "related"
+    write /sys/bus/msm_subsys/devices/subsys2/restart_level "related"
 
 on boot
     chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power