PMIC sends command error!
时间:10-02
整理:3721RD
点击:
有个项目要做17转15,配置好了GPIO之后一开始还能开机,然后对各个硬件优化,但是改过一次Modem和距离传感器之后发现进不了kernel了,一直在uboot重启,感觉不是modem和alsps的问题。抓log,信息是17转15m出现[power/PMIC] [mt6329_read_byte:write&read] PMIC sends command error!
求大神帮助阿
[ 25.082700] DELAY_LEN 2
[ 25.082703] TIMING 103b
[ 25.082705] START 1
[ 25.082708] FIFO_STAT 220
[ 25.082711] IO_CONFIG 3
[ 25.082714] HS 102
[ 25.082716] DEBUGSTAT 41
[ 25.087101] I2C i2c-2: Power register:
[ 25.087104] CG d7f85783
[ 25.087870] i2c i2c-2: [MT6575_i2c_start_xfer] SOFTREST mt6575-i2c:base(f1013000).
[ 25.088832] [Power/PMIC] [mt6329_write_byte] sends command error!
[ 27.088424] i2c i2c-2: addr: 10c0, transfer timeout
[ 27.089027] i2c i2c-2: I2C structure:
[ 27.089031] Mode_ch1 0
[ 27.089034] St_rs 0
[ 27.089036] Op 3
[ 27.089039] Trans_len 1
[ 27.089042] Trans_num 2
[ 27.089045] Trans_auxlen 1
[ 27.089048] Data_size ffff
[ 27.089051] Irq_stat 0
[ 27.089053] Trans_stop 0
[ 27.089056] Trans_comp 0
[ 27.089059] Trans_error 0
[ 27.092813] i2c i2c-2: I2C register:
[ 27.092816] SLAVE_ADDR c0
[ 27.092819] INTR_MASK ff
[ 27.092822] INTR_STAT 0
[ 27.092825] CONTROL 38
[ 27.092828] TRANSFER_LEN 101
[ 27.092831] TRANSAC_LEN 2
[ 27.092834] DELAY_LEN 2
[ 27.092837] TIMING 103b
[ 27.092840] START 1
[ 27.092842] FIFO_STAT 110
[ 27.092845] IO_CONFIG 3
[ 27.092848] HS 102
[ 27.092851] DEBUGSTAT 41
[ 27.097257] i2c i2c-2: Power register:
[ 27.097260] CG d7f85783
[ 27.098026] i2c i2c-2: [mt6575_i2c_start_xfer] SOFTREST mt6575-i2c:base(f1013000).
[ 27.098988] [Power/PMIC] [mt6329_read_byte:write&read] PMIC sends command error!
[ 29.098447] i2c i2c-2: addr: c0, transfer timeout
[ 29.099028] i2c i2c-2: I2C structure:
[ 29.099032] Mode_ch1 0
[ 29.099035] St_rs 0
[ 29.099037] Op 1
[ 29.099040] Trans_len 2
[ 29.099043] Trans_num 1
[ 29.099046] Trans_auxlen 0
[ 29.099049] Data_size ffff
[ 29.099052] Irq_stat 0
[ 29.099054] Trans_stop 0
[ 29.099057] Trans_comp 0
[ 29.099060] Trans_error 0
[ 29.102814] i2c i2c-2: I2C register:
[ 29.102817] SLAVE_ADDR c0
[ 29.102821] INTR_MASK ff
[ 29.102824] INTR_STAT 0
[ 29.102827] CONTROL 28
[ 29.102829] TRANSFER_LEN 2
[ 29.102832] TRANSAC_LEN 1
[ 29.102835] DELAY_LEN 2
[ 29.102838] TIMING 103b
[ 29.102841] START 1
[ 29.102844] FIFO_STAT 220
[ 29.102847] IO_CONFIG 3
[ 29.102850] HS 102
[ 29.102853] DEBUGSTAT 41
[ 29.107237] i2c i2c-2: Power register:
[ 29.107241] CG d7f85783
[ 29.108006] i2c i2c-2: [mt6575_i2c_start_xfer] SOFTREST mt6575-i2c:base(f1013000).
[ 29.108967] [Power/PMIC] [mt6329_write_byte] sends command error!
[ 30.384066] Qwdt: -- watchdog time out
[ 30.384527] backtrace of current task:
[ 30.384987] Backtrace:
[ 30.385306] [<c0039a70>] (dump_backtrace+0x0/0x110) fROM [<c003a3e8>] (show_stack+0x18/0x1c)
[ 30.386347] r7:00000002 r6:c062eee0 r5:00000001 r4:c062eee0
[ 30.387062] [<c003a3d0>] (show_stack+0x0/0x1c) from [<c006a6dc>] (mtk_wdt_isr+0x84/0xb0)
[ 30.388067] [<c006a658>] (mtk_wdt_isr+0x0/0xb0) from [<c00cfe4c>] (handle_IRQ_event+0x130/0x704)
[ 30.389154] r7:00000002 r6:0000003b r5:c062c000 r4:cefee900
[ 30.389864] [<c00cfd1c>] (handle_IRQ_event+0x0/0x704) from [<c00d2998>] (handle_level_irq+0xdc/0x174)
[ 30.391017] [<c00d28bc>] (handle_level_irq+0x0/0x174) from [<c00351d8>] (asm_do_IRQ+0x1d8/0x324)
[ 30.392102] r7:00000002 r6:0000003b r5:00000000 r4:0000003b
[ 30.392819] [<c0035000>] (asm_do_IRQ+0x0/0x324) from [<c04a5408>] (__irq_svc+0x48/0x9c)
[ 30.393807] Exception stack(0xc062df40 to 0xc062df88)
[ 30.394439] df40: 00000101 000000a8 000000a9 fffffffe c062c000 c062fda0 c066f60c c062fd98
[ 30.395456] df60: 00a2d880 412fc09a 0000001f c062df94 c062df88 c062df88 c003691c c0036920
[ 30.396471] df80: a0000013 ffffffff
[ 30.396903] r9:c062c000 r8:00000001 r7:00000002 r6:0000003b r5:f000a100
[ 30.397715] r4:ffffffff
[ 30.398046] [<c00368f0>] (default_idle+0x0/0x34) from [<c0036c68>] (cpu_idle+0x58/0xb4)
[ 30.399043] [<c0036c10>] (cpu_idle+0x0/0xb4) from [<c049f8c0>] (rest_init+0xb8/0xd8)
[ 30.400001] r7:c062fd98 r6:c003001c r5:00000000 r4:00000002
[ 30.400711] [<c049f808>] (rest_init+0x0/0xd8) from [<c0008a38>] (start_kernel+0x2ac/0x31c)
[ 30.401734] r5:00000000 r4:c07084f0
[ 30.402183] [<c000878c>] (start_kernel+0x0/0x31c) from [<00a08034>] (0xa08034)
[ 30.403077] r5:c066f6b0 r4:10c53c7d
[ 30.403520] Qwdt: -- watchdog time out
[ 30.403993] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 30.404995] pgd = c0004000
[ 30.405330] [00000000] *pgd=00000000
[ 30.405850] Internal error: Oops: 805 [#1] PREEMPT
[ 30.406434] last sysfs file:
[ 30.406803] Modules linked in:
[ 30.407184] CPU: 0 Not tainted (2.6.35.7 #1)
[ 30.407759] PC is at mtk_wdt_isr+0x90/0xb0
[ 30.408269] LR is at vprintk+0x44c/0x4c0
[ 30.408756] pc : [<c006a6e8>] lr : [<c00882e0>] psr: 60000193
[ 30.408761] sp : c062de50 ip : c062dd88 fp : c062de6c
[ 30.410183] r10: 0000001f r9 : c062c000 r8 : 00000000
[ 30.410833] r7 : 00000002 r6 : c062eee0 r5 : 00000001 r4 : c062eee0
[ 30.411645] r3 : 00000000 r2 : c062dd88 r1 : 20000193 r0 : 0000002d
[ 30.412459] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 30.413379] Control: 10c53c7d Table: 00a04059 DAC: 00000017
[ 30.414092]
求大神帮助阿
[ 25.082700] DELAY_LEN 2
[ 25.082703] TIMING 103b
[ 25.082705] START 1
[ 25.082708] FIFO_STAT 220
[ 25.082711] IO_CONFIG 3
[ 25.082714] HS 102
[ 25.082716] DEBUGSTAT 41
[ 25.087101] I2C i2c-2: Power register:
[ 25.087104] CG d7f85783
[ 25.087870] i2c i2c-2: [MT6575_i2c_start_xfer] SOFTREST mt6575-i2c:base(f1013000).
[ 25.088832] [Power/PMIC] [mt6329_write_byte] sends command error!
[ 27.088424] i2c i2c-2: addr: 10c0, transfer timeout
[ 27.089027] i2c i2c-2: I2C structure:
[ 27.089031] Mode_ch1 0
[ 27.089034] St_rs 0
[ 27.089036] Op 3
[ 27.089039] Trans_len 1
[ 27.089042] Trans_num 2
[ 27.089045] Trans_auxlen 1
[ 27.089048] Data_size ffff
[ 27.089051] Irq_stat 0
[ 27.089053] Trans_stop 0
[ 27.089056] Trans_comp 0
[ 27.089059] Trans_error 0
[ 27.092813] i2c i2c-2: I2C register:
[ 27.092816] SLAVE_ADDR c0
[ 27.092819] INTR_MASK ff
[ 27.092822] INTR_STAT 0
[ 27.092825] CONTROL 38
[ 27.092828] TRANSFER_LEN 101
[ 27.092831] TRANSAC_LEN 2
[ 27.092834] DELAY_LEN 2
[ 27.092837] TIMING 103b
[ 27.092840] START 1
[ 27.092842] FIFO_STAT 110
[ 27.092845] IO_CONFIG 3
[ 27.092848] HS 102
[ 27.092851] DEBUGSTAT 41
[ 27.097257] i2c i2c-2: Power register:
[ 27.097260] CG d7f85783
[ 27.098026] i2c i2c-2: [mt6575_i2c_start_xfer] SOFTREST mt6575-i2c:base(f1013000).
[ 27.098988] [Power/PMIC] [mt6329_read_byte:write&read] PMIC sends command error!
[ 29.098447] i2c i2c-2: addr: c0, transfer timeout
[ 29.099028] i2c i2c-2: I2C structure:
[ 29.099032] Mode_ch1 0
[ 29.099035] St_rs 0
[ 29.099037] Op 1
[ 29.099040] Trans_len 2
[ 29.099043] Trans_num 1
[ 29.099046] Trans_auxlen 0
[ 29.099049] Data_size ffff
[ 29.099052] Irq_stat 0
[ 29.099054] Trans_stop 0
[ 29.099057] Trans_comp 0
[ 29.099060] Trans_error 0
[ 29.102814] i2c i2c-2: I2C register:
[ 29.102817] SLAVE_ADDR c0
[ 29.102821] INTR_MASK ff
[ 29.102824] INTR_STAT 0
[ 29.102827] CONTROL 28
[ 29.102829] TRANSFER_LEN 2
[ 29.102832] TRANSAC_LEN 1
[ 29.102835] DELAY_LEN 2
[ 29.102838] TIMING 103b
[ 29.102841] START 1
[ 29.102844] FIFO_STAT 220
[ 29.102847] IO_CONFIG 3
[ 29.102850] HS 102
[ 29.102853] DEBUGSTAT 41
[ 29.107237] i2c i2c-2: Power register:
[ 29.107241] CG d7f85783
[ 29.108006] i2c i2c-2: [mt6575_i2c_start_xfer] SOFTREST mt6575-i2c:base(f1013000).
[ 29.108967] [Power/PMIC] [mt6329_write_byte] sends command error!
[ 30.384066] Qwdt: -- watchdog time out
[ 30.384527] backtrace of current task:
[ 30.384987] Backtrace:
[ 30.385306] [<c0039a70>] (dump_backtrace+0x0/0x110) fROM [<c003a3e8>] (show_stack+0x18/0x1c)
[ 30.386347] r7:00000002 r6:c062eee0 r5:00000001 r4:c062eee0
[ 30.387062] [<c003a3d0>] (show_stack+0x0/0x1c) from [<c006a6dc>] (mtk_wdt_isr+0x84/0xb0)
[ 30.388067] [<c006a658>] (mtk_wdt_isr+0x0/0xb0) from [<c00cfe4c>] (handle_IRQ_event+0x130/0x704)
[ 30.389154] r7:00000002 r6:0000003b r5:c062c000 r4:cefee900
[ 30.389864] [<c00cfd1c>] (handle_IRQ_event+0x0/0x704) from [<c00d2998>] (handle_level_irq+0xdc/0x174)
[ 30.391017] [<c00d28bc>] (handle_level_irq+0x0/0x174) from [<c00351d8>] (asm_do_IRQ+0x1d8/0x324)
[ 30.392102] r7:00000002 r6:0000003b r5:00000000 r4:0000003b
[ 30.392819] [<c0035000>] (asm_do_IRQ+0x0/0x324) from [<c04a5408>] (__irq_svc+0x48/0x9c)
[ 30.393807] Exception stack(0xc062df40 to 0xc062df88)
[ 30.394439] df40: 00000101 000000a8 000000a9 fffffffe c062c000 c062fda0 c066f60c c062fd98
[ 30.395456] df60: 00a2d880 412fc09a 0000001f c062df94 c062df88 c062df88 c003691c c0036920
[ 30.396471] df80: a0000013 ffffffff
[ 30.396903] r9:c062c000 r8:00000001 r7:00000002 r6:0000003b r5:f000a100
[ 30.397715] r4:ffffffff
[ 30.398046] [<c00368f0>] (default_idle+0x0/0x34) from [<c0036c68>] (cpu_idle+0x58/0xb4)
[ 30.399043] [<c0036c10>] (cpu_idle+0x0/0xb4) from [<c049f8c0>] (rest_init+0xb8/0xd8)
[ 30.400001] r7:c062fd98 r6:c003001c r5:00000000 r4:00000002
[ 30.400711] [<c049f808>] (rest_init+0x0/0xd8) from [<c0008a38>] (start_kernel+0x2ac/0x31c)
[ 30.401734] r5:00000000 r4:c07084f0
[ 30.402183] [<c000878c>] (start_kernel+0x0/0x31c) from [<00a08034>] (0xa08034)
[ 30.403077] r5:c066f6b0 r4:10c53c7d
[ 30.403520] Qwdt: -- watchdog time out
[ 30.403993] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 30.404995] pgd = c0004000
[ 30.405330] [00000000] *pgd=00000000
[ 30.405850] Internal error: Oops: 805 [#1] PREEMPT
[ 30.406434] last sysfs file:
[ 30.406803] Modules linked in:
[ 30.407184] CPU: 0 Not tainted (2.6.35.7 #1)
[ 30.407759] PC is at mtk_wdt_isr+0x90/0xb0
[ 30.408269] LR is at vprintk+0x44c/0x4c0
[ 30.408756] pc : [<c006a6e8>] lr : [<c00882e0>] psr: 60000193
[ 30.408761] sp : c062de50 ip : c062dd88 fp : c062de6c
[ 30.410183] r10: 0000001f r9 : c062c000 r8 : 00000000
[ 30.410833] r7 : 00000002 r6 : c062eee0 r5 : 00000001 r4 : c062eee0
[ 30.411645] r3 : 00000000 r2 : c062dd88 r1 : 20000193 r0 : 0000002d
[ 30.412459] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 30.413379] Control: 10c53c7d Table: 00a04059 DAC: 00000017
[ 30.414092]
有没有下载能开机的软件?
这时还能开机吗?
PMIC上的IIC好像只挂载了一个吧。
你有没有用示波器看一下IIC的波形?
下载了的,一开始还能开机的,然后一点点的给他添加功能,修改了以下modem和光感,突然就开不了机了,更奇怪的是还原代码也无法开机,难道是代码中有只要编译一次就不可返回的库或者文件?波形没有量,pmic的i2c总线只有pmic应该不会出错,而且uboot也起来了,有uboot图片
我的意思是你的源代码有没有备份?
如果有备份,你在一加一个编译一下,然后在下载,一个一个的功能加入进去,确定是什么问题。
最好还是量下IIC的波形。