简体   繁体   English

打印“ VFS:已挂载的根(ubifs文件系统)”后,Linux Kernel 3.4.1挂起。

[英]Linux Kernel 3.4.1 hangs after printing “VFS: Mounted root (ubifs filesystem).”

I am trying to bring up Linux-3.4.1 on our cutom MIPS based hardware. 我正在尝试在基于MIPS的常规硬件上启动Linux-3.4.1。 It hung after printing the line 打印线后挂了

VFS:Mounted root (ubifs filesystem)

On further debugging, it was found that kernel is hanging in free_init_mem() [arch/mips/mm/init.c] . 在进一步调试中,发现内核挂在free_init_mem()[arch / mips / mm / init.c]中。 My debug prints to determine the place of hang in free_init_mem is as below : 我的调试打印以确定在free_init_mem中挂起的位置如下:

Freeing unused kernel memory:  8038e000 - 803bb000
Freeing unused kernel memory: 8038e000 page
Freeing unused kernel memory: 8038f000 page
Freeing unused kernel memory: 80390000 page
Freeing unused kernel memory: 80391000 page
Freeing unused kernel memory: 80392000 page
Freeing unused kernel memory: 80393000 page
Freeing unused kernel memory: 80394000 page
.....
Freeing unused kernel memory: 803b4000 page
<hang>

Any help to debug the above hang will be very useful. 调试上述挂起的任何帮助将非常有用。

Just some random guessing: since it hangs after freeing the init memory, I would suspect that some code is incorrectly marked __init , or some data is incorrectly marked __initdata . 只是一些随机的猜测:由于它在释放初始化内存后挂起,我怀疑某些代码未正确标记为__init ,或者某些数据未正确标记为__initdata So the corresponding pages are freed, and the kernel crashes when it needs this data. 因此,相应的页面被释放,并且内核在需要此数据时崩溃。

I guess you've done some custom kernel code to support your MIPS hardware. 我想您已经完成了一些自定义内核代码来支持您的MIPS硬件。 Double check your code to ensure that you haven't made some mistakes on this. 仔细检查您的代码,以确保您没有犯任何错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM