微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > 如何打开thermal module相关log?

如何打开thermal module相关log?

时间:10-02 整理:3721RD 点击:

[DESCRIPTION]

如何打开thermal module相关log?

[SOLUTION]

1、通过code或adb 直接打开相应debug开关
a、可以修改如下文件中thermal sensor的log开关
mtk_ts_wmt.c wmt_tm_debug_log = 0 to 1 or adb shell echo 1 > /proc/wmt_tm/wmt_val
mtk_ts_pMIC.c mtktsPMIC_debug_log = 0 to 1
mtk_ts_cpu.c mtktscpu_debug_log = 0 to 1or adb shell echo 1 > /proc/mtktscpu/mtktscpu_log
mtk_ts_Battery.c mtkts_battery_log = 0 to 1
mtk_ts_abb.c mtktspmic_debug_log = 0 to 1
mtk_ts_pa.c mtktspa_debug_log = 0 to 1
复现问题,提供mobile log给mtk;
2、工程模式获取thermal 相关log
*#*# 3646633#*#*
进入工程模式,others-thermal
thermal logger 置为on,复现问题,完成后开关置为 off,这样log就保存在手机的
/data/中,只需要将类似storage_logger_dump_XXX,adb pull出来提供给mtk;
如果完成后没有置为off,log是不会生成的;所以如果出现thermal reset情形,将
不会有相应log生成,可以采用第一种方法

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top