Hi, I am new to USB device drivers, I have to bringup USB ADB with Android Kernel 3.0, When I try to enable ADB using echo 1 > /sys/class/android_usb/android0/enable, Kernel Crashes Occurs. Can some one help me how do I debug this and what could be the reason for a Kernel Crash
[ 118.030000] Unable to handle kernel NULL pointer dereference at virtual address 00000018 [ 118.040000] pgd = c7058000 [ 118.040000] [00000018] *pgd=2706c831, *pte=00000000, *ppte=00000000 [ 118.050000] Internal error: Oops: 17 [#1] PREEMPT [ 118.050000] Modules linked in: [ 118.050000] CPU: 0 Tainted: G W (3.0.1-perf+ #7) [ 118.050000] PC is at enable_store+0x50/0x144 [ 118.050000] LR is at enable_store+0x30/0x144 [ 118.050000] pc : [<c0239304>] lr : [<c02392e4>] psr: 60000013 [ 118.050000] sp : c7041f18 ip : ffffffda fp : be931e16 [ 118.050000] r10: c798a908 r9 : 00000002 r8 : c7b38220 [ 118.050000] r7 : 00000002 r6 : 00000001 r5 : c794a1e0 r4 : 00000000 [ 118.050000] r3 : c0532c20 r2 : c7054000 r1 : 00000001 r0 : 00000000 [ 118.050000] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user [ 118.050000] Control: 10c5787d Table: 27058019 DAC: 00000015 [ 118.050000] [ 118.050000] PC: 0xc0239284: [ 118.050000] 9284 e3c3303f e5932004 e2422001 e5832004 e5933000 e3130002 0a000000 eb0637ab [ 118.050000] 92a4 e1a00006 e1a01005 e8bd4070 eafffbb9 e92d40f7 e1a04002 e1a07003 ebfe2bfd [ 118.050000] 92c4 e28d2008 e59f110c e3a06001 e1a05000 e1a00004 e595400c e5226004 ebfd30b9 [ 118.050000] 92e4 e59d1004 e5d53014 e3510000 0a000021 e3530000 1a00002d e59f30dc e1a00004 [ 118.050000] 9304 e594c018 e28310ec e59f20d0 e1d3e0b8 e7d7c41e e584c018 e5d3c00a e5c4c01b [ 118.050000] 9324 e5d3c00b e5c4c01c e1d3e0bc e594c01c e7d7c41e e584c01c e5d3c004 e5c4c015 [ 118.050000] 9344 e5d3c005 e5c4c016 e5d33006 e5c43017 ebfffdec e5940000 e5903000 e5933014 [ 118.050000] 9364 e3530000 0a000001 e1a01006 e12fff33 e3a03001 ea00000b e3530000 0a00000b [ 118.050000] [ 118.050000] LR: 0xc0239264: [ 118.050000] 9264 e5832004 e590300c e1530001 1a000000 ebffffa9 e121f004 e1a0200d e3c23d7f [ 118.050000] 9284 e3c3303f e5932004 e2422001 e5832004 e5933000 e3130002 0a000000 eb0637ab [ 118.050000] 92a4 e1a00006 e1a01005 e8bd4070 eafffbb9 e92d40f7 e1a04002 e1a07003 ebfe2bfd [ 118.050000] 92c4 e28d2008 e59f110c e3a06001 e1a05000 e1a00004 e595400c e5226004 ebfd30b9 [ 118.050000] 92e4 e59d1004 e5d53014 e3510000 0a000021 e3530000 1a00002d e59f30dc e1a00004 [ 118.050000] 9304 e594c018 e28310ec e59f20d0 e1d3e0b8 e7d7c41e e584c018 e5d3c00a e5c4c01b [ 118.050000] 9324 e5d3c00b e5c4c01c e1d3e0bc e594c01c e7d7c41e e584c01c e5d3c004 e5c4c015 [ 118.050000] 9344 e5d3c005 e5c4c016 e5d33006 e5c43017 ebfffdec e5940000 e5903000 e5933014 [ 118.050000] [ 118.050000] SP: 0xc7041e98: [ 118.050000] 1e98 c7041ec4 000080d0 c7041f14 c7054000 c7041f1c c7041ed4 c03e1234 c01849f4 [ 118.050000] 1eb8 c7041f14 0000040f 00000007 00000001 00000002 c002ed90 00000000 00000001 [ 118.050000] 1ed8 c7054000 c0532c20 00000000 c794a1e0 00000001 00000002 c7b38220 00000002 [ 118.050000] 1ef8 c798a908 be931e16 ffffffda c7041f18 c02392e4 c0239304 60000013 ffffffff [ 118.050000] 1f18 c798a900 00000001 c7054000 c79a6968 c7b38238 c7041f80 c03e9a20 c01c0f94 [ 118.050000] 1f38 c79a6968 c010b08c 00000002 c7b88ac0 0001dee0 c7041f80 00000002 c7040000 [ 118.050000] 1f58 00000000 c00be834 c7b88ac0 0001dee0 c7b88ac0 0001dee0 00000000 00000000 [ 118.050000] 1f78 00000002 c00be968 00000000 00000000 00000002 00000000 00000002 00000002 [ 118.050000] [ 118.050000] R2: 0xc7053f80: [ 118.050000] 3f80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 118.050000] 3fa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 118.050000] 3fc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 118.050000] 3fe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 118.050000] 4000 00000a31 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 118.050000] 4020 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 118.050000] 4040 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 118.050000] 4060 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 118.050000] [ 118.050000] R3: 0xc0532ba0: [ 118.050000] 2ba0 00000100 c0234314 00000000 c04a7036 00000100 c02342bc 00000000 c04a7040 [ 118.050000] 2bc0 00000100 c02341a4 00000000 c04a7049 00000180 c0234184 c0234808 00000000 [ 118.050000] 2be0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 118.050000] 2c00 00000000 00000000 00000000 00000000 00000000 c02324cc c0232494 c023245c [ 118.050000] 2c20 02000112 00000000 000118d1 0000ffff 00000100 00000000 c04a8ef1 00000000 [ 118.050000] 2c40 00000000 00000409 00ffff02 00000000 c05333f0 00000000 c0532c44 c0532d7c [ 118.050000] 2c60 c0532d94 00000000 c0532c44 c0532d88 c0532da0 00000000 00000000 c04a4fe6 [ 118.050000] 2c80 00000000 00000000 00000409 00ffff03 00000000 c0533400 00000000 c0533408 [ 118.050000] [ 118.050000] R5: 0xc794a160: [ 118.050000] a160 c79a5620 c794a164 c794a164 00000000 00000000 c052196c 00000000 00000001 [ 118.050000] a180 00000001 00000000 c03effc4 c794a18c c794a18c 05900000 00000100 00000000 [ 118.050000] a1a0 c79a58a0 c798aa38 c798aa38 c78188e0 c798aa38 c052aa90 c79a6c68 00000002 [ 118.050000] a1c0 00000003 c794a220 00000000 00000000 00000000 00000000 00000000 00000000 [ 118.050000] a1e0 c0533080 c05332ac c05332dc 00000000 c798a900 00000000 00000200 c794a1fc [ 118.050000] a200 c794a1fc c023cd70 00000000 00000000 00000000 00000000 00000000 00000000 [ 118.050000] a220 c04a8a46 00000000 00000000 00000000 00000000 c7818d20 00000000 00000000 [ 118.050000] a240 c01c564c 00000000 00000000 00000000 00000000 00000000 00000000 c798a9c0 [ 118.050000] [ 118.050000] R8: 0xc7b381a0: [ 118.050000] 81a0 ff7fefbf cfb7dc73 eeb3cfbf ee7fee73 ddfbccff edf9ee3b df7feef7 dffbefbf [ 118.050000] 81c0 fefb5ebf dfbbdef7 fdf7cf3f edbfeef3 fd7bcfbf cd7bfef7 ffffff7f febfcd7b [ 118.050000] 81e0 de37fe73 fdbbdc77 ffbffe7f cfbfef7b fcbfddfb fd3bfcfb ef77ed3b defffef3 [ 118.050000] 8200 fcbbfdff ffb7df77 ddf7ff7b ec37fff7 dff7ccbf 7fb3ceeb f4ffdd77 df37ded7 [ 118.050000] 8220 00000000 00000000 00000000 00000000 c7054000 c03e9a20 00000000 c7b3823c [ 118.050000] 8240 c7b3823c 00000001 00000000 c7a7aa70 c7a7aa70 00000000 00000000 00000000 [ 118.050000] 8260 00000000 000081a4 00000000 00000000 00000000 00000000 00000076 01312cf9 [ 118.050000] 8280 00000076 01312cf9 00000076 01312cf9 00000000 00000000 00000000 00000000 [ 118.050000] [ 118.050000] R10: 0xc798a888: [ 118.050000] a888 00000000 00000000 00000000 c798a7d4 c798a954 7fffffff c798a8a0 c798a8a0 [ 118.050000] a8a8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 c798a8c4 [ 118.050000] a8c8 c798a8c4 00000000 00000000 00a000df c798a8d8 c798a8d8 c7841198 c798a824 [ 118.050000] a8e8 c7954b04 00000001 c7846620 00000000 c01c14a4 00000000 00000000 c7998560 [ 118.050000] a908 c79a58c0 c798a84c c79a1a34 c794a1a0 c7818de0 c052aa70 c79a6c38 00000002 [ 118.050000] a928 00000007 00000000 00000000 00000001 c798a938 c798a938 00000000 00000000 [ 118.050000] a948 00000000 00000000 00000000 c798a894 c79a1a7c 7fffffff c798a960 c798a960 [ 118.050000] a968 00000000 00000000 00000000 00000000 00000000 00000000 00000000 c798a984 [ 118.050000] Process sh (pid: 93, stack limit = 0xc70402e8) [ 118.050000] Stack: (0xc7041f18 to 0xc7042000) [ 118.050000] 1f00: c798a900 00000001 [ 118.050000] 1f20: c7054000 c79a6968 c7b38238 c7041f80 c03e9a20 c01c0f94 c79a6968 c010b08c [ 118.050000] 1f40: 00000002 c7b88ac0 0001dee0 c7041f80 00000002 c7040000 00000000 c00be834 [ 118.050000] 1f60: c7b88ac0 0001dee0 c7b88ac0 0001dee0 00000000 00000000 00000002 c00be968 [ 118.050000] 1f80: 00000000 00000000 00000002 00000000 00000002 00000002 00000000 00000004 [ 118.050000] 1fa0: c002f4a8 c002f300 00000002 00000002 00000001 0001dee0 00000002 0001cb40 [ 118.050000] 1fc0: 00000002 00000002 00000000 00000004 00000001 00000001 0001c698 be931e16 [ 118.050000] 1fe0: 0001b808 be931968 000163d5 afd0b48c 60000010 00000001 00000000 00000000 [ 118.050000] [<c0239304>] (enable_store+0x50/0x144) from [<c01c0f94>] (dev_attr_store+0x1c/0x20) [ 118.050000] [<c01c0f94>] (dev_attr_store+0x1c/0x20) from [<c010b08c>] (sysfs_write_file+0x108/0x13c) [ 118.050000] [<c010b08c>] (sysfs_write_file+0x108/0x13c) from [<c00be834>] (vfs_write+0xac/0x134) [ 118.050000] [<c00be834>] (vfs_write+0xac/0x134) from [<c00be968>] (sys_write+0x3c/0x68) [ 118.050000] [<c00be968>] (sys_write+0x3c/0x68) from [<c002f300>] (ret_fast_syscall+0x0/0x30) [ 118.050000] Code: e3530000 1a00002d e59f30dc e1a00004 (e594c018) [ 118.790000] ---[ end trace 88be191f12103bb7 ]--- [ 118.800000] Kernel panic - not syncing: Fatal exception [ 118.800000] [<c0035050>] (unwind_backtrace+0x0/0x12c) from [<c03c6844>] (panic+0x70/0x188) [ 118.810000] [<c03c6844>] (panic+0x70/0x188) from [<c0033310>] (die +0x1a4/0x1e0) [ 118.820000] [<c0033310>] (die+0x1a4/0x1e0) from [<c003828c>] (__do_kernel_fault+0x64/0x84) [ 118.820000] [<c003828c>] (__do_kernel_fault+0x64/0x84) from [<c0038514>] (do_page_fault+0x268/0x288) [ 118.830000] [<c0038514>] (do_page_fault+0x268/0x288) from [<c00292f0>] (do_DataAbort+0x34/0x94) [ 118.840000] [<c00292f0>] (do_DataAbort+0x34/0x94) from [<c002ed90>] (__dabt_svc+0x70/0xa0) [ 118.850000] Exception stack(0xc7041ed0 to 0xc7041f18) [ 118.860000] 1ec0: 00000000 00000001 c7054000 c0532c20 [ 118.860000] 1ee0: 00000000 c794a1e0 00000001 00000002 c7b38220 00000002 c798a908 be931e16 [ 118.870000] 1f00: ffffffda c7041f18 c02392e4 c0239304 60000013 ffffffff [ 118.880000] [<c002ed90>] (__dabt_svc+0x70/0xa0) from [<c0239304>] (enable_store+0x50/0x144) [ 118.890000] [<c0239304>] (enable_store+0x50/0x144) from [<c01c0f94>] (dev_attr_store+0x1c/0x20) [ 118.900000] [<c01c0f94>] (dev_attr_store+0x1c/0x20) from [<c010b08c>] (sysfs_write_file+0x108/0x13c) [ 118.900000] [<c010b08c>] (sysfs_write_file+0x108/0x13c) from [<c00be834>] (vfs_write+0xac/0x134) [ 118.910000] [<c00be834>] (vfs_write+0xac/0x134) from [<c00be968>] (sys_write+0x3c/0x68) [ 118.920000] [<c00be968>] (sys_write+0x3c/0x68) from [<c002f300>] (ret_fast_syscall+0x0/0x30) Thanks Venumadhav -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en