android 死机调试

在调试Android设备死机问题时,最初认为可能是硬件故障,但发现部分设备正常运行。通过对比旧内核,确认问题出在软件上。经过分析,错误发生在电压调节器的相关代码被屏蔽,导致死机。通过对linux内核中regulator模块的源码比较,发现相关函数#if 0被错误地更改为#if 1,从而禁用了电压设置和获取的功能,修正后解决了问题。
摘要由CSDN通过智能技术生成

最近调试了一个死机问题,错误打印如下,刚开始怀疑是硬件问题,因为有40%的机器是正常工作的,剩下的60%机器死机时长也是不尽相同。后来发现更换到旧的内核去编译就是正常的,所以确认是软件问题

Starting kernel ...

 
[    0.643128] aw_pm_init: not support super standby.  
[    0.872894] sw_ahci sw_ahci.0: SATA power enable do not exist!!
[    0.883294] can't get item for emac_power gpio !
[    1.408658] rtc_hw_init(416) err: set clksrc to external losc failed! rtc time will be wrong
[    1.418207] sunxi_rtc_gettime(34): err, losc_err_flag is 1
[    1.476700] [hdmi]hdmi module init
[    1.482292] ##fb init:w=1280,h=720,fbmode=3
[    1.504666] sunxi_rtc_gettime(34): err, losc_err_flag is 1
[    1.510793] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
[    3.670941] init: HDMI status = 0, try 40 times!TV status = 0
[    3.883660] init: start e2fsck listening...
[    4.373635] init: do_umount: /data  
[    4.704422] init: do_umount: /cache  
[    4.802597] init: dont need format /dev/block/UDISK
[    4.808538] init: dont need format /dev/block/private
[    4.829357] init: do_umount: /databk  
[    4.888299] init: C_IN_START
[    4.891325] init: path = /dev/block/data
[    4.895761] init: C_IN_START
[    4.899207] init: path = /dev/block/cache
[    5.358460] init: untracked pid 1124 exited
[    5.379911] init: using deprecated syntax for specifying property 'sys.usb.config', use ${name} instead
[    5.397403] init: using deprecated syntax for specifying property 'sys.usb.config', use ${name} instead
[    5.824463] usb 4-1.1: device descriptor read/all, error -71
[    6.163865] usb 4-1.1: device descriptor read/all, error -71
[    6.364122] usb 4-1.1: device descriptor read/8, error -71
[    7.753425] init: untracked pid 1441 exited
[    7.758217] init: untracked pid 1443 exited
[    9.073282] init: untracked pid 1618 exited
[   12.426753] sunxi_rtc_gettime(34): err, losc_err_flag is 1
[   24.351300] sunxi_rtc_gettime(34): err, losc_err_flag is 1
[   24.360635] init: sys_prop: permission denied uid:1003  name:service.bootanim.exit
[  204.410660] Unable to handle kernel paging request at virtual address 00d1d086
[  204.419177] pgd = ecf28000
[  204.422282] [00d1d086] *pgd=00000000
[  204.426491] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[  204.432468] Modules linked in: gpio_sunxi 8188eu rtl8150 uvcvideo videobuf_dma_contig videobuf_core utiusb(O) usb_simple(O) UTi1203(O) fe(O) fd650(O) mali(O) ump(O) sun7i_ir nand(O) [last unloaded: gpio_sunxi]
[  204.453623] CPU: 1    Tainted: G        W  O  (3.4.39 #6)
[  204.459739] PC is at lock_hrtimer_base+0x18/0x48
[  204.464956] LR is at hrtimer_try_to_cancel+0x10/0x88
[  204.470565] pc : [<c006ba7c>]    lr : [<c006bc98>]    psr: 20000013
[  204.470583] sp : ecfefdd8  ip : ecfefe70  fp : 00000000
[  204.483499] r10: ffffff92  r9 : 5c160190  r8 : 00000000
[  204.489395] r7 : ecfefe80  r6 : 00d1d086  r5 : ecfefdec  r4 : ecfefe29
[  204.496740] r3 : 00000000  r2 : ecfefe08  r1 : ecfefdec  r0 : ecfefe29
[  204.504112] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  204.512165] Control: 10c5387d  Table: 6cf2806a  DAC: 00000015
[  204.518653]  
[  204.518663] PC: 0xc006b9fc:
[  204.523480] b9fc  e5922008 e2941008 30d11002 33a02000 e3520000 13e0000d 1a000006 e1a00004
[  204.532801] ba1c  e1a01003 e3a02008 eb066105 e3500000 03a00001 13e0000d e28dd01c e8bd80f0
[  204.542121] ba3c  e92d4008 e3a02000 e5903030 e580203
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值