高通平台如何抓RAMDUMP

前提:需要能够解析ramdump,不管是user版本还是usrdebug版本,需要开启此宏CONFIG_DEBUG_INFO=y

1、使用SD卡抓DUMP。

T卡中根目录下放 rdcookie.txt  空文件


2、使用QPST抓DUMP。

手动触发dump。

echo c > /proc/sysrq-trigger


3、使用QPST抓开机DUMP

如何抓取开机过程中log了?特别是抓取恢复出厂设置开机卡死log。


长按power按键dump
you can configure pwrkey S2 reset to warm reset in SBL pm_oem_init(): 
make sure with your HW engineer if your pwrkey is connected with RESIN_N? 
if yes: 
pm_pon_reset_source_cfg(0,PM_PON_RESET_SOURCE_RESIN_AND_KPDPWR,10256,2000,PM_PON_RESET_CFG_WARM_RESET); 
pm_pon_reset_source_ctl(0,PM_PON_RESET_SOURCE_RESIN_AND_KPDPWR,PM_ON); 

if not: 
pm_pon_reset_source_cfg(0,PM_PON_RESET_SOURCE_KPDPWR,10256,2000,PM_PON_RESET_CFG_WARM_RESET); 
pm_pon_reset_source_ctl(0,PM_PON_RESET_SOURCE_KPDPWR,PM_ON);

并且与下面一同修改。则在开机过程中长按power按键即可进入dload mode模式。
dtsi file: 
                qcom,pon_1 { 
                                                                        qcom,pon-type = <0x0>; 
                                                                        qcom,support-reset = <0x1>; 
                                                                        qcom,pull-up = <0x1>; 
                                                                        qcom,s1-timer = <0x2810>; 
                                                                        qcom,s2-timer = <0x7d0>; 
                                                                        qcom,s2-type = <0x7>; ==>change to <0x1> 
                                                                        linux,code = <0x74>;


你可能感兴趣的:(高通平台学习总结)