一、常用调试方法:
1. adb
2. 查看log
mtklog : bootprof
3.
4.
案例一 : 开机时间慢 - tp(gsl680)下发固件时间过长
现象 :
平台 : androidN,MTK6337
排查过程: 1. 导出mtklog,查看 bootprof
Line 1079: [ 8.801582] (1)[1:swapper/0]BOOTPROF: 8801.571328:probe: probe=platform_drv_probe drv=soc-audio(ffffffc000ec3450) 16.103538ms
Line 1080: [ 8.801671] (1)[1:swapper/0]BOOTPROF: 8801.665328:initcall: mt_soc_snd_init 16.420923ms
Line 1691: [ 17.401455] (0)[143:kworker/u8:5]BOOTPROF: 17401.433117:probe: probe=i2c_device_probe drv=gslX680(ffffffc000eafa48) 8568.679789ms // tp加载 - 8s
Line 1697: [ 17.404516] (0)[143:kworker/u8:5]BOOTPROF: 17404.490579:probe: probe=platform_drv_probe drv=mtk-tpd(ffffffc000e8c398) 8572.168559ms
Line 1721: [ 17.421460] (0)[1:swapper/0]BOOTPROF: 17421.456194:initcall: battery_init 8589.219866ms
Line 1734: [ 17.425693] (0)[1:swapper/0]BOOTPROF: 17425.688964:Kernel_init_done // 内核加载完毕 - 17s
Line 2037: [ 17.756898] (1)[1:init]BOOTPROF: 17756.881810:INIT:early-init
Line 2056: [ 18.578967] (1)[1:init]BOOTPROF: 18578.960351:INIT:late-init
Line 2057: [ 18.579086] (1)[1:init]BOOTPROF: 18579.080812:INIT:Mount_START
Line 2280: [ 20.970653] (1)[1:init]BOOTPROF: 20970.647741:INIT:Mount_END
Line 2284: [ 21.902055] (1)[1:init]BOOTPROF: 21902.041513:INIT:post-fs
Line 2316: [ 22.723429] (1)[1:init]BOOTPROF: 22723.416668:INIT:post-fs-data
Line 2318: [ 22.770378] (1)[1:init]BOOTPROF: 22770.365669:post-fs-data: on mo
31. 开机时间慢调试
最新推荐文章于 2025-06-06 07:56:22 发布