From 7d695f4bff77b8b34f75150825d4ba5e141dcca2 Mon Sep 17 00:00:00 2001 From: Woody Lin Date: Sun, 5 Feb 2023 12:26:40 +0800 Subject: [PATCH] DO NOT MERGE: gs201: init.debug.rc: Enable etm/etm2dram when ramdump is enabled Bug: 265382296 Change-Id: Ib215551397a361f5734401173e62a15691e45425 --- conf/init.debug.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/init.debug.rc b/conf/init.debug.rc index 631bc28b..d98e9bc8 100644 --- a/conf/init.debug.rc +++ b/conf/init.debug.rc @@ -38,3 +38,8 @@ on post-fs-data chown bluetooth system /dev/logbuffer_btlpm chown bluetooth system /dev/logbuffer_btpower chown bluetooth system /dev/logbuffer_tty18 + +# Enable etm/etm2dram when ramdump is enabled. +on property:ro.boot.ramdump=enabled + write /sys/devices/platform/exynos-etm/etm_on 1 + write /sys/devices/platform/etm2dram/arm 1