搜索

3

主题

6

帖子

23

积分

新手上路

Rank: 1

积分
23
发表于 2014-10-10 15:24:57 19030 浏览 1 回复

增加新的电量底层驱动后 系统不停重启

新增加了底层电量的驱动,编译下载后能启动,但会不停重启,出现类似下面的错误:
[    7.491755] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[    7.498388] pgd = c0004000
[    7.501073] [00000000] *pgd=00000000
[    7.504622] Internal error: Oops: 80000007 [#1] PREEMPT SMP
[    7.504622] Internal error: Oops: 80000007 [#1] PREEMPT SMP
[    7.510175] Modules linked in: wlan(P) mtk_wmt_wifi mtk_fm_priv(P) mt6620_fm_drv hci_stp mtk_stp_gps mtk_stp_uart mtk_stp_wmt(P) mtk_hif_sdio
[    7.522849] CPU: 0    Tainted: P             (3.0.15 #18)
[    7.528231] PC is at 0x0
[    7.530752] LR is at max17040_work+0xb0/0x194
[    7.535088] pc : [<00000000>]    lr : [<c0388b78>]    psr: 20000073
[    7.535091] sp : d62adf00  ip : d62adf00  fp : d62adf2c
[    7.546544] r10: 00000000  r9 : 0000004e  r8 : d62a7600
[    7.551752] r7 : 00000000  r6 : d62a7600  r5 : d62a7604  r4 : d62a7600
[    7.558262] r3 : 00000001  r2 : 00000000  r1 : 00000001  r0 : d62a7600
[    7.564773] Flags: nzCv  IRQs on  FIQs off  Mode SVC_32  ISA Thumb  Segment kernel
[    7.572324] Control: 10c5387d  Table: 54aa004a  DAC: 00000015
[    7.578052]
[    7.578054] LR: 0xc0388af8:
[    7.582304] 8af8  e1a00006 ebffffde e3a01003 e1a09000 e1a00006 ebffffda e6ef2079 e7e3c250
[    7.590463] 8b18  e5156004 e08c1202 e2860020 e58810d0 ebfb68c6 e3a01004 e1a08000 e1a00006
[    7.647578]
[    7.647580] SP: 0xd62ade80:
[    7.651831] de80  00000000 d62a7600 0000004e 00000000 d62adee4 d62adea0 ffffffff d62adeec
[    7.659990] dea0  d62a7600 00000000 d62adf2c d62adeb8 c0045530 c003e488 d62a7600 00000001
[    7.668149] dec0  00000000 00000001 d62a7600 d62a7604 d62a7600 00000000 d62a7600 0000004e
[    7.676308] dee0  00000000 d62adf2c d62adf00 d62adf00 c0388b78 00000000 20000073 ffffffff
[    7.684468] df00  00000001 d62e4780 c0dae560 c0db2300 00000000 c0388ac8 d62a7604 c0db2305
[    7.692627] df20  d62adf64 d62adf30 c0095b48 c0388ad4 c0dae560 c08d28f0 c0dae568 d62e4780
[    7.700786] df40  c0dae560 c08d28f0 c0dae568 d62e4790 c003d740 d62ac000 d62adfb4 d62adf68
[    7.708945] df60  c00961f4 c0095a3c c003d220 c003c0a0 c0096068 c003d740 c003d740 c003d740
[    7.717105]
[    7.717107] IP: 0xd62ade80:
[    7.721358] de80  00000000 d62a7600 0000004e 00000000 d62adee4 d62adea0 ffffffff d62adeec
[    7.729517] dea0  d62a7600 00000000 d62adf2c d62adeb8 c0045530 c003e488 d62a7600 00000001
[    7.737676] dec0  00000000 00000001 d62a7600 d62a7604 d62a7600 00000000 d62a7600 0000004e
[    7.745835] dee0  00000000 d62adf2c d62adf00 d62adf00 c0388b78 00000000 20000073 ffffffff
[    7.753994] df00  00000001 d62e4780 c0dae560 c0db2300 00000000 c0388ac8 d62a7604 c0db2305
[    7.762154] df20  d62adf64 d62adf30 c0095b48 c0388ad4 c0dae560 c08d28f0 c0dae568 d62e4780
[    7.770313] df40  c0dae560 c08d28f0 c0dae568 d62e4790 c003d740 d62ac000 d62adfb4 d62adf68
[    7.778472] df60  c00961f4 c0095a3c c003d220 c003c0a0 c0096068 c003d740 c003d740 c003d740
[    7.786632]
[    7.786634] FP: 0xd62adeac:
[    7.790885] deac  d62adeb8 c0045530 c003e488 d62a7600 00000001 00000000 00000001 d62a7600
[    7.799044] decc  d62a7604 d62a7600 00000000 d62a7600 0000004e 00000000 d62adf2c d62adf00
[    7.807203] deec  d62adf00 c0388b78 00000000 20000073 ffffffff 00000001 d62e4780 c0dae560
[    7.815362] df0c  c0db2300 00000000 c0388ac8 d62a7604 c0db2305 d62adf64 d62adf30 c0095b48
[    7.823522] df2c  c0388ad4 c0dae560 c08d28f0 c0dae568 d62e4780 c0dae560 c08d28f0 c0dae568
[    7.831681] df4c  d62e4790 c003d740 d62ac000 d62adfb4 d62adf68 c00961f4 c0095a3c c003d220
[    7.839840] df6c  c003c0a0 c0096068 c003d740 c003d740 c003d740 d62e4790 c003d740 c0096068
[    7.847999] df8c  d6313eb0 00000002 d62e4780 c0096068 00000000 00000000 00000000 d62adff4
[    7.856159]
[    7.856161] R0: 0xd62a7580:
[    7.860412] 7580  00000000 00000000 00000000 00000000 d62a7590 d62a7590 d614ce84 d614ce84
[    7.868570] 75a0  00000000 00000000 00000000 d62a75ac d62a75ac 00000000 00000000 00000000
[    7.925688] R4: 0xd62a7580:
[    7.929939] 7580  00000000 00000000 00000000 00000000 d62a7590 d62a7590 d614ce84 d614ce84
[    7.938098] 75a0  00000000 00000000 00000000 d62a75ac d62a75ac 00000000 00000000 00000000
[    7.946257] 75c0  00000000 00000002 00000001 00000000 00000001 00000000 00000000 d62a75dc
[    7.954416] 75e0  d62a75dc 00000000 d60a2bc0 00000000 00000000 00000000 00000000 00000000
[    7.962575] 7600  d618a200 00000000 d62a7608 d62a7608 c0388ac8 00000000 00200200 ffff1b7a
[    7.970734] 7620  c098b220 c0096d40 d62a7604 ffffffff c087c334 00000000 c090f278 00000004
[    7.978893] 7640  00000000 00000000 c0388928 00000000 00000000 00000000 00000000 00000000
[    7.987052] 7660  d6325600 00000000 d62a7668 d62a7668 c0387fec 00000000 00000000 00000000
[    7.995212]
[    7.995214] R5: 0xd62a7584:
[    7.999465] 7584  00000000 00000000 00000000 d62a7590 d62a7590 d614ce84 d614ce84 00000000
[    8.007624] 75a4  00000000 00000000 d62a75ac d62a75ac 00000000 00000000 00000000 00000000
[    8.015783] 75c4  00000002 00000001 00000000 00000001 00000000 00000000 d62a75dc d62a75dc
[    8.023942] 75e4  00000000 d60a2bc0 00000000 00000000 00000000 00000000 00000000 d618a200
[    8.032102] 7604  00000000 d62a7608 d62a7608 c0388ac8 00000000 00200200 ffff1b7a c098b220
[    8.040261] 7624  c0096d40 d62a7604 ffffffff c087c334 00000000 c090f278 00000004 00000000
[    8.048420] 7644  00000000 c0388928 00000000 00000000 00000000 00000000 00000000 d6325600
[    8.056579] 7664  00000000 d62a7668 d62a7668 c0387fec 00000000 00000000 00000000 c0999e18
[    8.064739]
[    8.064740] R6: 0xd62a7580:
[    8.068991] 7580  00000000 00000000 00000000 00000000 d62a7590 d62a7590 d614ce84 d614ce84
[    8.077151] 75a0  00000000 00000000 00000000 d62a75ac d62a75ac 00000000 00000000 00000000
[    8.085310] 75c0  00000000 00000002 00000001 00000000 00000001 00000000 00000000 d62a75dc
[    8.093469] 75e0  d62a75dc 00000000 d60a2bc0 00000000 00000000 00000000 00000000 00000000
[    8.101628] 7600  d618a200 00000000 d62a7608 d62a7608 c0388ac8 00000000 00200200 ffff1b7a
[    8.109787] 7620  c098b220 c0096d40 d62a7604 ffffffff c087c334 00000000 c090f278 00000004
[    8.117947] 7640  00000000 00000000 c0388928 00000000 00000000 00000000 00000000 00000000
[    8.126106] 7660  d6325600 00000000 d62a7668 d62a7668 c0387fec 00000000 00000000 00000000
[    8.134265]
[    8.134267] R8: 0xd62a7580:
[    8.138518] 7580  00000000 00000000 00000000 00000000 d62a7590 d62a7590 d614ce84 d614ce84
[    8.146677] 75a0  00000000 00000000 00000000 d62a75ac d62a75ac 00000000 00000000 00000000
[    8.247109] df80: d62e4790 c003d740 c0096068 d6313eb0 00000002 d62e4780 c0096068 00000000
[    8.255268] dfa0: 00000000 00000000 d62adff4 d62adfb8 c009cfa4 c0096074 00000000 00000000
[    8.263427] dfc0: d62e4780 00000000 00000000 00000000 d62adfd0 d62adfd0 d6313eb0 c009cf10
[    8.271586] dfe0: c0082328 00000013 00000000 d62adff8 c0082328 c009cf1c 00000000 00000000
[    8.279742] Backtrace:
[    8.282183] [<c0388ac8>] (max17040_work+0x0/0x194) from [<c0095b48>] (process_one_work+0x118/0x428)
[    8.291205] [<c0095a30>] (process_one_work+0x0/0x428) from [<c00961f4>] (worker_thread+0x18c/0x4ac)
[    8.300233] [<c0096068>] (worker_thread+0x0/0x4ac) from [<c009cfa4>] (kthread+0x94/0x98)
[    8.308307] [<c009cf10>] (kthread+0x0/0x98) from [<c0082328>] (do_exit+0x0/0x754)
[    8.315765]  r7:00000013 r6:c0082328 r5:c009cf10 r4:d6313eb0
[    8.321410] Code: bad PC value
[    8.326234] ---[ end trace 04f7f2eeae1a5b09 ]---
[    8.330064] ***********enter  Panic*********
[    8.333683] panic_dump_info_set: 0x e4120001
[    8.337902] num is : 0x1 ,   num after is 0x2, is 2 (0x2)
[    8.343748] second: 0xe4120002
[    8.346512] info is : 0xe4120002
[    8.349824] Kernel panic - not syncing: Fatal exception
[    8.354910] Backtrace:
[    8.357715] [<c0049e70>] (dump_backtrace+0x0/0x11c) from [<c05928e4>] (dump_stack+0x18/0x1c)
[    8.365933]  r6:0000000f r5:d62add58 r4:c096a6c0 r3:d62ac000
[    8.371435] [<c05928cc>] (dump_stack+0x0/0x1c) from [<c0592980>] (panic+0x98/0x144)
[    8.379060] [<c05928e8>] (panic+0x0/0x144) from [<c004a3ec>] (die+0x1c8/0x1d8)
[    8.386354]  r3:c096a6d0 r2:d62add80 r1:d62ac000 r0:c083c614
[    8.391885] [<c004a224>] (die+0x0/0x1d8) from [<c004e7d0>] (__do_kernel_fault+0x7c/0x8c)
[    8.39997OK
回复

使用道具 举报

1

主题

357

帖子

1111

积分

QQ游客

积分
1111
发表于 2014-10-11 09:21:56
在电量驱动加点打印信息,跟下代码,看看是执行哪句代码造成的,一般问题是访问非法指针造成的
回复 点赞

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

登录或注册

官方客服

QQ:2551456065

官方QQ群

195631883

扫一扫关注迅为公众号

群号652692981

 
快速回复 返回顶部 返回列表