免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234下一页
最近访问板块 发新帖
查看: 14796 | 回复: 34

[内存管理] linux内核启动问题,什么原因 [复制链接]

论坛徽章:
0
发表于 2014-03-09 16:43 |显示全部楼层
Unable to handle kernel paging request for data at address 0xffef7ffd
Faulting instruction address: 0xc0014bc4
Oops: Kernel access of bad area, sig: 11 [#1]
MPC8536 DS
Modules linked in:
NIP: c0014bc4 LR: c0225874 CTR: 00000000
REGS: ef827dc0 TRAP: 0300   Not tainted  (2.6.32-rc5)
MSR: 00029000 <EE,ME,CE>  CR: 44022028  XER: 20000000
DEAR: ffef7ffd, ESR: 00000000
TASK = ef830000[1] 'swapper' THREAD: ef826000
GPR00: 00000063 ef827e70 ef830000 ffef7ffd c02e1cff ffef7ffc ef800388 00000000
GPR08: 00000001 ef800390 c3ffaf59 c0373b5c 22022028 4f940daf 00000000 00000000
GPR16: 3ffb0a78 00000000 ef812100 c02e3d3c c02e3d4c c02e3d60 c02e3d58 c02e3d68
GPR24: ef827ef8 ef827f20 00000002 00000000 efffeadc ef827ea8 c02e1d00 cfffffff
NIP [c0014bc4] strcmp+0x8/0x24
LR [c0225874] of_find_property+0x4c/0x7c
Call Trace:
[ef827e70] [c0131a7c] kobject_set_name_vargs+0x6c/0x84 (unreliable)
[ef827e90] [c02258b4] of_get_property+0x10/0x34
[ef827ea0] [c0225e44] of_device_is_compatible+0x24/0xa0
[ef827ed0] [c0226174] of_find_compatible_node+0x78/0xc4
[ef827ef0] [c0343a5c] fsl_usb_of_init+0x148/0x4a0
[ef827fa0] [c0001dc8] do_one_initcall+0x40/0x1dc
[ef827fd0] [c033c1e0] kernel_init+0xc4/0x130
[ef827ff0] [c000f550] kernel_thread+0x4c/0x68
Instruction dump:
3884ffff 8c050001 2c000000 4082fff8 38a5ffff 8c040001 2c000000 9c050001
4082fff4 4e800020 38a3ffff 3884ffff <8c650001> 2c830000 8c040001 7c601851
---[ end trace 31fd0ba7d8756001 ]---
Kernel panic - not syncing: Attempted to kill init!
Call Trace:
[ef827cb0] [c0007004] show_stack+0x3c/0x17c (unreliable)
[ef827cf0] [c0022818] panic+0x94/0x168
[ef827d40] [c00262d0] do_exit+0x4e0/0x5e8
[ef827d80] [c000cf70] kernel_bad_stack+0x0/0x50
[ef827da0] [c0012e8c] bad_page_fault+0x98/0xe8
[ef827db0] [c000fc80] handle_page_fault+0x7c/0x80
[ef827e70] [c0131a7c] kobject_set_name_vargs+0x6c/0x84
[ef827e90] [c02258b4] of_get_property+0x10/0x34
[ef827ea0] [c0225e44] of_device_is_compatible+0x24/0xa0
[ef827ed0] [c0226174] of_find_compatible_node+0x78/0xc4
[ef827ef0] [c0343a5c] fsl_usb_of_init+0x148/0x4a0
[ef827fa0] [c0001dc8] do_one_initcall+0x40/0x1dc
[ef827fd0] [c033c1e0] kernel_init+0xc4/0x130
[ef827ff0] [c000f550] kernel_thread+0x4c/0x68
Rebooting in 180 seconds..

论坛徽章:
1
拜羊年徽章
日期:2015-03-03 16:15:43
发表于 2014-03-10 08:49 |显示全部楼层
freescale的usb驱动启动的时候出问题,你可以把这个usb驱动先拿掉看看。

论坛徽章:
15
射手座
日期:2014-02-26 13:45:082015年迎新春徽章
日期:2015-03-04 09:54:452015年辞旧岁徽章
日期:2015-03-03 16:54:15羊年新春福章
日期:2015-02-26 08:47:552015年亚洲杯之卡塔尔
日期:2015-02-03 08:33:45射手座
日期:2014-12-31 08:36:51水瓶座
日期:2014-06-04 08:33:52天蝎座
日期:2014-05-14 14:30:41天秤座
日期:2014-04-21 08:37:08处女座
日期:2014-04-18 16:57:05戌狗
日期:2014-04-04 12:21:33技术图书徽章
日期:2014-03-25 09:00:29
发表于 2014-03-10 09:53 |显示全部楼层
把出问题的内核模块干掉试试。

论坛徽章:
0
发表于 2014-03-10 21:40 |显示全部楼层
回复 2# linuxfellow


    谢谢,以下算是初始化完内存和中断了,那接下去的oops是什么,是网络部分吗?


MMU: Allocated 136 bytes of context maps for 31 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
Kernel command line:
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1035344k/1048576k available (3172k kernel code, 12644k reserved, 200k data, 217k bss, 140k init)
Kernel virtual memory layout:
  * 0xfffef000..0xfffff000  : fixmap
  * 0xff800000..0xffc00000  : highmem PTEs
  * 0xff7b6000..0xff800000  : early ioremap
  * 0xf1000000..0xff7b6000  : vmalloc & ioremap
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:512
mpic: Setting up MPIC " OpenPIC  " version 1.2 at ffe40000, max 1 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
clocksource: timebase mult[3c00275] shift[22] registered
Console: colour dummy device 80x25
Mount-cache hash table entries: 512
NET: Registered protocol family 16

Unable to handle kernel paging request for data at address 0xfb7ffe7f
Faulting instruction address: 0xc008bd9c
Oops: Kernel access of bad area, sig: 11 [#1]
MPC8536 DS
Modules linked in:
NIP: c008bd9c LR: c0310764 CTR: 00000000
REGS: ef827e70 TRAP: 0300   Not tainted  (2.6.32-rc5)
MSR: 00021000 <ME,CE>  CR: 44022088  XER: 00000000
DEAR: fb7ffe7f, ESR: 00000000
TASK = ef830000[1] 'swapper' THREAD: ef826000
GPR00: 00000000 ef827f20 ef830000 c0349378 000080d0 ef82a000 ef842030 00000000
GPR08: 00000040 c0350000 ef84215c c0349770 00000008 4f940da7 00000000 00000000
GPR16: 3ffb0a78 00000000 00000000 c031c028 c02a3ec0 c025a3e8 c03496f0 c025a3d8
GPR24: c0349378 00000002 ef8021c0 ef809338 00000040 000080d0 00029000 fb7ffe7f
NIP [c008bd9c] kmem_cache_alloc+0x58/0x9c
LR [c0310764] cacheinfo_cpu_online+0x314/0x3ec
Call Trace:
[ef827f20] [00000001] 0x1 (unreliable)
[ef827f40] [c0310764] cacheinfo_cpu_online+0x314/0x3ec
[ef827f80] [c03101bc] register_cpu_online+0x10/0x20
[ef827f90] [c02f87ec] topology_init+0x58/0x70
[ef827fb0] [c0001df0] do_one_initcall+0x68/0x1e8
[ef827fe0] [c02f61d4] kernel_init+0xb8/0x120
[ef827ff0] [c000e768] kernel_thread+0x4c/0x68
Instruction dump:
83830090 2f9f0000 40be0020 7cc802a6 38e30080 7fa4eb78 38a0ffff 4bfffacd
7c7f1b78 48000014 8003008c 5400103a <7c1f002e> 90030080 7fc00106 73a08000
---[ end trace 31fd0ba7d8756001 ]---
Kernel panic - not syncing: Attempted to kill init!
Rebooting in 180 seconds..

论坛徽章:
1
拜羊年徽章
日期:2015-03-03 16:15:43
发表于 2014-03-11 05:58 |显示全部楼层
本帖最后由 linuxfellow 于 2014-03-11 06:00 编辑

回复 4# prettyguyzq
现在问题出在topology_init。 系统在初始化系统多cpu拓扑结构时出问题。
你这样一步一步向前推很花时间。一般的做法是,下载一个能工作的版本, 尽量不做任何改动让这个版本先运行起来。从这个版本开始,逐步加上自己的模块。

   

论坛徽章:
0
发表于 2014-03-11 13:52 |显示全部楼层
回复 5# linuxfellow


    我这个板子也是自己做的,官方开发板是DDR2内存条的,我改成DDR3的了,现在不加模块驱动还好,一打开一个就出现如下一大堆内存初始化的问题,感觉无从下手啊
BUG: Bad page state in process swapper  pfn:3fdf4,
page:c0b78e80 flagsnull) count:0 mapcount:1 mappingnull) index:0
Call Trace:
[c033df30] [c0006abc] show_stack+0x58/0x164 (unreliable)
[c033df70] [c006a8f0] bad_page+0x10c/0x134
[c033df90] [c02f59d8] mem_init+0x138/0x2a8
[c033dfc0] [c02f0720] start_kernel+0x14c/0x2b0
[c033dff0] [c0000398] skpinv+0x2b0/0x2ec
BUG: Bad page state in process swapper  pfn:3fdf5
page:c0b78ea0 flagsnull) count:0 mapcount:1 mappingnull) index:0
Call Trace:
[c033df30] [c0006abc] show_stack+0x58/0x164 (unreliable)
[c033df70] [c006a8f0] bad_page+0x10c/0x134
[c033df90] [c02f59d8] mem_init+0x138/0x2a8
[c033dfc0] [c02f0720] start_kernel+0x14c/0x2b0
[c033dff0] [c0000398] skpinv+0x2b0/0x2ec

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:58:11
发表于 2014-03-11 14:16 |显示全部楼层
把完整的log贴出来啊

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:58:11
发表于 2014-03-11 14:20 |显示全部楼层
把完整的log贴出来啊

论坛徽章:
0
发表于 2014-03-11 17:58 |显示全部楼层
回复 8# arm-linux-gcc


    WARNING: could not find compatible node fsl-usb2-mph or fsl-usb2-dr: FDT_ERR_NOTFOUND.
Using MPC8536 DS machine description
Memory CAM mapping: 256/256/256 Mb, residual: 256Mb
Linux version 2.6.32-rc5 (root@lhjhit) (gcc version 4.2.2) #35 Tue Mar 11 16:51:19 CST 2014
bootconsole [udbg0] enabled
setup_arch: bootmem
mpc8536_ds_setup_arch()
Found FSL PCI host bridge at 0x00000000ffe08000. Firmware bus number: 0->0
PCI host bridge /pci@ffe08000 (primary) ranges:
MEM 0x0000000080000000..0x000000008fffffff -> 0x0000000080000000
  IO 0x00000000ffc00000..0x00000000ffc0ffff -> 0x0000000000000000
/pci@ffe08000: PCICSRBAR @ 0xfff00000
Found FSL PCI host bridge at 0x00000000ffe09000. Firmware bus number: 0->0
PCI host bridge /pcie@ffe09000  ranges:
MEM 0x0000000098000000..0x000000009fffffff -> 0x0000000098000000
  IO 0x00000000ffc20000..0x00000000ffc2ffff -> 0x0000000000000000
/pcie@ffe09000: PCICSRBAR @ 0xfff00000
Found FSL PCI host bridge at 0x00000000ffe0a000. Firmware bus number: 0->1
PCI host bridge /pcie@ffe0a000  ranges:
MEM 0x0000000090000000..0x0000000097ffffff -> 0x0000000090000000
  IO 0x00000000ffc10000..0x00000000ffc1ffff -> 0x0000000000000000
/pcie@ffe0a000: PCICSRBAR @ 0xffffffff
Found FSL PCI host bridge at 0x00000000ffe0b000. Firmware bus number: 0->0
PCI host bridge /pcie@ffe0b000  ranges:
MEM 0x00000000a0000000..0x00000000bfffffff -> 0x00000000a0000000
  IO 0x00000000ffc30000..0x00000000ffc3ffff -> 0x0000000000000000
/pcie@ffe0b000: PCICSRBAR @ 0xfff00000
MPC8536 DS board from Freescale Semiconductor
arch: exit
Zone PFN ranges:
  DMA      0x00000000 -> 0x00030000
  Normal   0x00030000 -> 0x00030000
  HighMem  0x00030000 -> 0x00040000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00040000
MMU: Allocated 136 bytes of context maps for 31 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
Kernel command line:
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1034960k/1048576k available (3508k kernel code, 12984k reserved, 200k data, 223k bss, 144k init)
Kernel virtual memory layout:
  * 0xfffef000..0xfffff000  : fixmap
  * 0xff800000..0xffc00000  : highmem PTEs
  * 0xff7b6000..0xff800000  : early ioremap
  * 0xf1000000..0xff7b6000  : vmalloc & ioremap
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:512
mpic: Setting up MPIC " OpenPIC  " version 1.2 at ffe40000, max 1 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
clocksource: timebase mult[3c00275] shift[22] registered
Console: colour dummy device 80x25
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Unable to handle kernel paging request for data at address 0xfdfffbff
Faulting instruction address: 0xc008c58c
Oops: Kernel access of bad area, sig: 11 [#1]
MPC8536 DS
Modules linked in:
NIP: c008c58c LR: c008c538 CTR: 00000000
REGS: ef827d90 TRAP: 0300   Not tainted  (2.6.32-rc5)
MSR: 00021000 <ME,CE>  CR: 24022088  XER: 00000000
DEAR: fdfffbff, ESR: 00000000
TASK = ef830000[1] 'swapper' THREAD: ef826000
GPR00: 00000000 ef827e40 ef830000 c039d250 000000d0 c00d4da4 00000001 00000001
GPR08: 00000020 c03a0000 ef80b9d8 c037dc90 84022022 4f940fa7 00000000 00000000
GPR16: 3ffb0a78 00000000 00000000 00000000 00000000 3ffb0944 00000000 00000000
GPR24: 00000000 0000a1ff 00000008 00000010 c00d4da4 000000d0 00029000 fdfffbff
NIP [c008c58c] __kmalloc_track_caller+0xa0/0xe8
LR [c008c538] __kmalloc_track_caller+0x4c/0xe8
Call Trace:
[ef827e40] [ef827e58] 0xef827e58 (unreliable)
[ef827e60] [c007542c] kstrdup+0x3c/0x68
[ef827e80] [c00d4da4] sysfs_new_dirent+0x30/0x100
[ef827ec0] [c00d5d6c] sysfs_do_create_link+0x88/0x140
[ef827ef0] [c0173488] device_add+0x19c/0x598
[ef827f30] [c0173950] device_create_vargs+0x9c/0xd4
[ef827f60] [c01739c8] device_create+0x40/0x50
[ef827f90] [c035b298] vtconsole_class_init+0xac/0x104
[ef827fb0] [c0001df0] do_one_initcall+0x68/0x1e8
[ef827fe0] [c03491d4] kernel_init+0xb8/0x120
[ef827ff0] [c000e768] kernel_thread+0x4c/0x68
Instruction dump:
83630090 2f9f0000 40be0020 7f86e378 38e30080 7fa4eb78 38a0ffff 4bfff2dd
7c7f1b78 48000014 8003008c 5400103a <7c1f002e> 90030080 7fc00106 73a08000
---[ end trace 31fd0ba7d8756001 ]---
Kernel panic - not syncing: Attempted to kill init!
Rebooting in 180 seconds..

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:58:11
发表于 2014-03-11 19:24 |显示全部楼层
看不到cmdline,你这个log截的不全啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP