Dear ALL,
I had interfaced MAX17041 fuel gauge IC to AM3517 for 2-cell battery monitoring.
I had added slave address 0X36 " I2C_BOARD_INFO("max17040", 0x36)" in board file.
And selected max17040 driver in menuconfig file.
ALSO find the attachment.....
Following is error message while booting...
[ 9.388366] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 9.396911] pgd = c0004000
[ 9.399749] [00000000] *pgd=00000000
[ 9.403533] Internal error: Oops: 17 [#1]
[ 9.407745] last sysfs file: /sys/kernel/uevent_seqnum
[ 9.413146] Modules linked in:
[ 9.416351] CPU: 0 Not tainted (2.6.37 #17)
[ 9.421142] PC is at max17040_work+0x98/0x138
[ 9.425720] LR is at max17040_work+0x90/0x138
[ 9.430267] pc : [<c027a200>] lr : [<c027a1f8>] psr: a0000013
[ 9.430297] sp : cec31f48 ip : cec31f48 fp : cec31f6c
[ 9.442321] r10: c027a168 r9 : 00000000 r8 : 00000000
[ 9.447814] r7 : ced4f6c0 r6 : ced4f6c0 r5 : ced4f6c0 r4 : ced4f6c4
[ 9.454681] r3 : 00000000 r2 : c047c110 r1 : 00000000 r0 : ced4f6c0
[ 9.461547] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 9.469207] Control: 10c5387d Table: 8e004019 DAC: 00000017
[ 9.475250] Process kworker/0:0 (pid: 4, stack limit = 0xcec302e8)
[ 9.481719] Stack: (0xcec31f48 to 0xcec32000)
[ 9.486297] 1f40: 60000013 cec02c80 cec13a00 00000000 ced4f6c4 00000007
[ 9.494873] 1f60: cec31f9c cec31f70 c0077b9c c027a174 cec13a75 cec02c80 c04627e0 cec30000
[ 9.503479] 1f80: cec02c90 00000000 00000000 00000000 cec31fbc cec31fa0 c0079170 c00779e4
[ 9.512054] 1fa0: cec1df00 cec02c80 cec31fcc c0079010 cec31ff4 cec31fc0 c007c510 c007901c
[ 9.520629] 1fc0: cec1df00 00000000 cec02c80 00000000 cec31fd0 cec31fd0 cec1df00 c007c484
[ 9.529235] 1fe0: c0069f0c 00000013 00000000 cec31ff8 c0069f0c c007c490 00000000 00000000
[ 9.537811] Backtrace:
[ 9.540405] [<c027a168>] (max17040_work+0x0/0x138) from [<c0077b9c>] (process_one_work+0x1c4/0x2d4)
[ 9.549896] r8:00000007 r7:ced4f6c4 r6:00000000 r5:cec13a00 r4:cec02c80
[ 9.556762] r3:60000013
[ 9.559509] [<c00779d8>] (process_one_work+0x0/0x2d4) from [<c0079170>] (worker_thread+0x160/0x26c)
[ 9.569000] [<c0079010>] (worker_thread+0x0/0x26c) from [<c007c510>] (kthread+0x8c/0x94)
[ 9.577484] r7:c0079010 r6:cec31fcc r5:cec02c80 r4:cec1df00
[ 9.583465] [<c007c484>] (kthread+0x0/0x94) from [<c0069f0c>] (do_exit+0x0/0x574)
[ 9.591308] r7:00000013 r6:c0069f0c r5:c007c484 r4:cec1df00
[ 9.597290] Code: e2800020 ebfd755a e59030ac e1a05000 (e5933000)
[ 9.603729] ---[ end trace 7e989dd489b46653 ]---
[ 9.608642] Unable to handle kernel paging request at virtual address fffffffc
[ 9.616210] pgd = c0004000
[ 9.619049] [fffffffc] *pgd=8f3fe021, *pte=00000000, *ppte=00000000
[ 9.625640] Internal error: Oops: 17 [#2]
[ 9.629852] last sysfs file: /sys/kernel/uevent_seqnum
[ 9.635223] Modules linked in:
[ 9.638427] CPU: 0 Tainted: G D (2.6.37 #17)
[ 9.644104] PC is at kthread_data+0x10/0x18
[ 9.648498] LR is at wq_worker_sleeping+0x14/0x7c
[ 9.653411] pc : [<c007c058>] lr : [<c0078c44>] psr: 00000193
[ 9.653442] sp : cec31cf0 ip : cec31d00 fp : cec31cfc
[ 9.665466] r10: cec1b4a8 r9 : cec1b3b8 r8 : cec1b524
[ 9.670959] r7 : c027a204 r6 : cec30000 r5 : 00000000 r4 : cec1b3c0
[ 9.677795] r3 : 00000000 r2 : 00000001 r1 : 00000000 r0 : cec1b3c0
Thanks in advance.
Rajeev.