在内核工作期间内核恐慌

时间:2015-09-22 08:00:41

标签: linux-kernel arm kernel ubifs

我有以下问题。我正在使用一些基于Linux的嵌入式系统。 我用我的linux创建一个图像,将其加载到设备并运行。在添加一些第三方模块之前,一切都很酷。在此之后,加载失败,带有以下堆栈:

 lib80211: common routines for IEEE802.11 drivers
 [    2.760000] UBIFS: parse sync
 [    2.770000] UBIFS error (pid 1): ubifs_read_node: bad node type (0 but expected 6)
 [    2.780000] UBIFS error (pid 1): ubifs_read_node: bad node at LEB 0:0
 [    2.810000] List of all partitions:
 [    2.810000] 1f00            1024 mtdblock0 (driver?)
 [    2.810000] 1f01            1024 mtdblock1 (driver?)
 [    2.820000] 1f02            1024 mtdblock2 (driver?)
 [    2.820000] 1f03            1024 mtdblock3 (driver?)
 [    2.830000] 1f04           40960 mtdblock4 (driver?)
 [    2.830000] 1f05           38656 mtdblock5 (driver?)
 [    2.840000] 1f06           40960 mtdblock6 (driver?)
 [    2.840000] 1f07           38656 mtdblock7 (driver?)
 [    2.850000] 1f08           40960 mtdblock8 (driver?)
 [    2.850000] 1f09            1024 mtdblock9 (driver?)
 [    2.860000] 1f0a            1024 mtdblock10 (driver?)
 [    2.860000] No filesystem could mount root, tried:  ubifs
 [    2.870000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)
 [    2.880000] [<c0054bdc>] (unwind_backtrace+0x0/0xe4) from [<c033b1f8>] (panic+0x68/0x188)
 [    2.890000] [<c033b1f8>] (panic+0x68/0x188) from [<c000920c>] (mount_block_root+0x238/0x288)
 [    2.890000] [<c000920c>] (mount_block_root+0x238/0x288) from     [<c0009430>] (prepare_namespace+0x88/0x1c0)
 [    2.900000] [<c0009430>] (prepare_namespace+0x88/0x1c0) from [<c0008e80>] (kernel_init+0x1c8/0x218)
 [    2.910000] [<c0008e80>] (kernel_init+0x1c8/0x218) from [<c004fbb8>]  (kernel_thread_exit+0x0/0x8)
 [    2.920000] CPU0: stopping
 [    2.920000] [<c0054bdc>] (unwind_backtrace+0x0/0xe4) from [<c004e2cc>] (do_IPI+0xd8/0x150)
 [    2.920000] [<c004e2cc>] (do_IPI+0xd8/0x150) from [<c0402c88>] (__irq_svc+0x48/0xe8)
 [    2.920000] Exception stack(0xc043ff78 to 0xc043ffc0)
 [    2.920000] ff60:                                                       c044e5ac 00000000
 [    2.920000] ff80: c043ffc0 00000000 c043e000 c044ab38 c04600a8 c044ab30 000266b4 413fc090
 [    2.920000] ffa0: 0000001f 00000000 c04cbc58 c043ffc0 c004fc10 c004fc14 60000013 ffffffff
 [    2.920000] [<c0402c88>] (__irq_svc+0x48/0xe8) from [<c004fc14>] (default_idle+0x24/0x28)
 [    2.920000] [<c004fc14>] (default_idle+0x24/0x28) from [<c004fd7c>] (cpu_idle+0x40/0x94)
 [    2.920000] [<c004fd7c>] (cpu_idle+0x40/0x94) from [<c0008c5c>] (start_kernel+0x318/0x374)
 [    2.920000] [<c0008c5c>] (start_kernel+0x318/0x374) from [<00008084>] (0x8084)

我不确定这个问题是否在设备的闪存上没有空间。但无论如何,我无法弄清楚这次失败的原因是什么。

这种失败的原因是什么?

'uname -r'返回以下内容:

2.6.36.4brcmarm

如果需要其他任何内容,请告诉我。

提前致谢!

1 个答案:

答案 0 :(得分:0)

好吧,当我增加文件系统的大小(mkfs.ubifs调用期间的-c参数值)时,似乎修复了问题。感谢您的所有帮助和建议!