当前位置: 技术问答>linux和unix
Kernel panic!!!!!指教
来源: 互联网 发布时间:2016-05-20
本文导语: 编译内核时没有出现错误,启动时出现如下信息,我是刚开始编译内核,请指教! Unable to handle kernel NULL pointer dereference at virtual address 00000018 pgd = c0004000 [00000018] *pgd=00000000, *pmd = 00000000 Internal error: Oops: 5...
编译内核时没有出现错误,启动时出现如下信息,我是刚开始编译内核,请指教!
Unable to handle kernel NULL pointer dereference at virtual address 00000018
pgd = c0004000
[00000018] *pgd=00000000, *pmd = 00000000
Internal error: Oops: 5
CPU: 0
pc : [] lr : [] Not tainted
sp : c027ddc8 ip : c027ddf0 fp : c027ddec
r10: 00000000 r9 : c01cd880 r8 : 0000001d
r7 : 00000000 r6 : 00000002 r5 : c023f640 r4 : c01dc438
r3 : 00000000 r2 : 00000000 r1 : c01dc438 r0 : c023f640
Flags: nZCv IRQs on FIQs on Mode SVC_32 Segment kernel
Control: 317F Table: 20004000 DAC: 0000001D
Process swapper (pid: 1, stack limit = 0xc027c374)
Stack: (0xc027ddc8 to 0xc027e000)
ddc0: 00000000 c01cddb4 00000000 00000016 00000008 00000000
dde0: c027de04 c027ddf0 c00be69c c00e3960 00000000 c01cd894 c027de38 c027de08
de00: c00c2340 c00be610 c027de14 c01bf58f c01ae040 00002b13 00002b1b 00000008
de20: c01cd894 0000003e c018db08 c027de54 c027de3c c0027348 c00c229c 00002b1b
de40: 00002b1b c01a7310 c027de68 c027de58 c00273c4 c00272fc 00002b1b c027de84
de60: c027de6c c00274e4 c0027370 ffffd4e5 60000013 60000013 c027de9c c027de88
de80: c00277b4 c00273e4 c01bc5fc c01a7314 c027debc c027dea0 c00276d0 c0027774
dea0: 00000000 c01cd894 00000000 00000000 c027deec c027ded0 c00bea04 c0027594
dec0: c018baa8 00000000 c018db08 c023f640 00000001 00000000 00000000 00000000
dee0: c027df28 c027def0 c00c2d6c c00be9cc c027df04 c018da58 00000000 00000001
df00: 00000000 00000000 00000000 c01e08f4 0000003f 41129200 c01dc2ac c027df68
df20: c027df2c c00e1b84 c00c2ca0 c01b26d4 00000000 c01e08f4 0000006b 41129200
df40: 20015090 c01e0abc ffffffff 00000000 c01e08f4 0000006b 20015090 c027df8c
df60: c027df6c c0012218 c00e1a24 00000000 00000000 c0015f64 c01b9494 c01a6d84
df80: c027dfa8 c027df90 c0011334 c001202c c0019bbc c01a4000 c01b94a0 c027dfb8
dfa0: c027dfac c000f7d4 c0011284 c027dfcc c027dfbc c0008700 c000f7a8 00000000
dfc0: c027dfdc c027dfd0 c0008748 c00086f8 c027dff4 c027dfe0 c001a08c c000872c
dfe0: 00000000 c01a4000 00000000 c027dff8 c001dd18 c001a08c 69966db8 6cb2d1ac
Backtrace:
Function entered at [] from []
Function entered at [] from []
r5 = C01CD894 r4 = 00000000
Function entered at [] from []
Function entered at [] from []
r6 = C01A7310 r5 = 00002B1B r4 = 00002B1B
Function entered at [] from []
r4 = 00002B1B
Function entered at [] from []
r6 = 60000013 r5 = 60000013 r4 = FFFFD4E5
Function entered at [] from []
r5 = C01A7314 r4 = C01BC5FC
Function entered at [] from []
r3 = C023F640 r2 = C018DB08 r1 = 00000000 r0 = C018BAA8
r7 = 00000000 r6 = 00000000 r5 = C01CD894 r4 = 00000000
Function entered at [] from []
r7 = 00000000 r6 = 00000000 r5 = 00000000 r4 = 00000001
Function entered at [] from []
Function entered at [] from []
Function entered at [] from []
r8 = C01A6D84 r7 = C01B9494 r6 = C0015F64 r5 = 00000000
r4 = 00000000
Function entered at [] from []
r6 = C01B94A0 r5 = C01A4000 r4 = C0019BBC
Function entered at [] from []
Function entered at [] from []
r4 = 00000000
Function entered at [] from []
Function entered at [] from []
r5 = C01A4000 r4 = 00000000
Code: 0a000001 e1a00005 eb000bac e59470d4 (e5973018)
Kernel panic: Attempted to kill init!
Unable to handle kernel NULL pointer dereference at virtual address 00000018
pgd = c0004000
[00000018] *pgd=00000000, *pmd = 00000000
Internal error: Oops: 5
CPU: 0
pc : [] lr : [] Not tainted
sp : c027ddc8 ip : c027ddf0 fp : c027ddec
r10: 00000000 r9 : c01cd880 r8 : 0000001d
r7 : 00000000 r6 : 00000002 r5 : c023f640 r4 : c01dc438
r3 : 00000000 r2 : 00000000 r1 : c01dc438 r0 : c023f640
Flags: nZCv IRQs on FIQs on Mode SVC_32 Segment kernel
Control: 317F Table: 20004000 DAC: 0000001D
Process swapper (pid: 1, stack limit = 0xc027c374)
Stack: (0xc027ddc8 to 0xc027e000)
ddc0: 00000000 c01cddb4 00000000 00000016 00000008 00000000
dde0: c027de04 c027ddf0 c00be69c c00e3960 00000000 c01cd894 c027de38 c027de08
de00: c00c2340 c00be610 c027de14 c01bf58f c01ae040 00002b13 00002b1b 00000008
de20: c01cd894 0000003e c018db08 c027de54 c027de3c c0027348 c00c229c 00002b1b
de40: 00002b1b c01a7310 c027de68 c027de58 c00273c4 c00272fc 00002b1b c027de84
de60: c027de6c c00274e4 c0027370 ffffd4e5 60000013 60000013 c027de9c c027de88
de80: c00277b4 c00273e4 c01bc5fc c01a7314 c027debc c027dea0 c00276d0 c0027774
dea0: 00000000 c01cd894 00000000 00000000 c027deec c027ded0 c00bea04 c0027594
dec0: c018baa8 00000000 c018db08 c023f640 00000001 00000000 00000000 00000000
dee0: c027df28 c027def0 c00c2d6c c00be9cc c027df04 c018da58 00000000 00000001
df00: 00000000 00000000 00000000 c01e08f4 0000003f 41129200 c01dc2ac c027df68
df20: c027df2c c00e1b84 c00c2ca0 c01b26d4 00000000 c01e08f4 0000006b 41129200
df40: 20015090 c01e0abc ffffffff 00000000 c01e08f4 0000006b 20015090 c027df8c
df60: c027df6c c0012218 c00e1a24 00000000 00000000 c0015f64 c01b9494 c01a6d84
df80: c027dfa8 c027df90 c0011334 c001202c c0019bbc c01a4000 c01b94a0 c027dfb8
dfa0: c027dfac c000f7d4 c0011284 c027dfcc c027dfbc c0008700 c000f7a8 00000000
dfc0: c027dfdc c027dfd0 c0008748 c00086f8 c027dff4 c027dfe0 c001a08c c000872c
dfe0: 00000000 c01a4000 00000000 c027dff8 c001dd18 c001a08c 69966db8 6cb2d1ac
Backtrace:
Function entered at [] from []
Function entered at [] from []
r5 = C01CD894 r4 = 00000000
Function entered at [] from []
Function entered at [] from []
r6 = C01A7310 r5 = 00002B1B r4 = 00002B1B
Function entered at [] from []
r4 = 00002B1B
Function entered at [] from []
r6 = 60000013 r5 = 60000013 r4 = FFFFD4E5
Function entered at [] from []
r5 = C01A7314 r4 = C01BC5FC
Function entered at [] from []
r3 = C023F640 r2 = C018DB08 r1 = 00000000 r0 = C018BAA8
r7 = 00000000 r6 = 00000000 r5 = C01CD894 r4 = 00000000
Function entered at [] from []
r7 = 00000000 r6 = 00000000 r5 = 00000000 r4 = 00000001
Function entered at [] from []
Function entered at [] from []
Function entered at [] from []
r8 = C01A6D84 r7 = C01B9494 r6 = C0015F64 r5 = 00000000
r4 = 00000000
Function entered at [] from []
r6 = C01B94A0 r5 = C01A4000 r4 = C0019BBC
Function entered at [] from []
Function entered at [] from []
r4 = 00000000
Function entered at [] from []
Function entered at [] from []
r5 = C01A4000 r4 = 00000000
Code: 0a000001 e1a00005 eb000bac e59470d4 (e5973018)
Kernel panic: Attempted to kill init!
|
Unable to handle kernel NULL pointer dereference at virtual address 00000018
指针错误,应该是你自己加的驱动有问题。
指针错误,应该是你自己加的驱动有问题。
|
是你驱动的insmod(__init)处出现问题,你用printk调试看看
|
读了三遍都没读懂楼主的意思...
你说你打印了dest,在哪里打印的,我怎么没看到啊?“于是,我将p指向我的屏幕缓冲,程序可以清屏”,你
说的p又是哪个p啊?函数内部的还是你结尾举例的那个调用实参?
实在是读不懂你的回复,请说清楚一点吧,否则真的很难帮你...
|
应该是指针错了, 参考一下ldd第四章, 加上一些编译选项就会显示出出错的地方了
|
E478: Don't panic!