内核恐慌 - 不同步:找不到工作初始化

时间:2016-03-14 14:42:14

标签: ubuntu operating-system kernel embedded-linux zynq

我试图通过SD卡在zynq 7000上运行Linaro Ubuntu桌面。在SD卡上制作两个分区并插入FPGA后,我在主机PC上收到此消息(通过串口使用UART链接到卡):

EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: error mounting -2
Freeing unused kernel memory: 244K (c067b000 - c06b8000)
Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.4.0-g7565292 #1
Hardware name: Xilinx Zynq Platform
[<c0015388>] (unwind_backtrace) from [<c0011fdc>] (show_stack+0x10/0x14)
[<c0011fdc>] (show_stack) from [<c01a8880>] (dump_stack+0x80/0xcc)
[<c01a8880>] (dump_stack) from [<c0092bb0>] (panic+0x84/0x1fc)
[<c0092bb0>] (panic) from [<c046da5c>] (kernel_init+0xb8/0xe4)
[<c046da5c>] (kernel_init) from [<c000f1b8>] (ret_from_fork+0x14/0x3c)
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.0-g7565292 #1
Hardware name: Xilinx Zynq Platform
[<c0015388>] (unwind_backtrace) from [<c0011fdc>] (show_stack+0x10/0x14)
[<c0011fdc>] (show_stack) from [<c01a8880>] (dump_stack+0x80/0xcc)
[<c01a8880>] (dump_stack) from [<c0013be4>] (ipi_cpu_stop+0x3c/0x6c)
[<c0013be4>] (ipi_cpu_stop) from [<c00142e4>] (handle_IPI+0x5c/0x7c)
[<c00142e4>] (handle_IPI) from [<c00093e0>] (gic_handle_irq+0x74/0x90)
[<c00093e0>] (gic_handle_irq) from [<c0012a94>] (__irq_svc+0x54/0x90)
Exception stack(0xc06b9f38 to 0xc06b9f80)
9f20:                                                       00000000 00000000
9f40: 1f4e0000 dfb95dc0 67b69607 00000000 67dd2149 00000000 dfb95450 00000000
9f60: 00000000 00000000 00000008 c06b9f88 c031d9fc c031da44 60000113 ffffffff
[<c0012a94>] (__irq_svc) from [<c031da44>] (cpuidle_enter_state+0xfc/0x1f4)
[<c031da44>] (cpuidle_enter_state) from [<c00518f8>]  (cpu_startup_entry+0x1a0/0x230)
[<c00518f8>] (cpu_startup_entry) from [<c067bc18>] (start_kernel+0x364/0x3d0)
---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.  

VGA连接的显示器不显示任何内容。 有人能帮我理解这个问题的原因吗?

2 个答案:

答案 0 :(得分:0)

错误告诉您系统找不到init

系统无法安装您的驱动器,因此错误devtmpfs: error mounting -2

您的文件可能已损坏或SD卡无法识别并正确连接。

您可能需要查看文件系统。确保/bin /boot /dev /etc /home /install /lib ...等所有文件夹都在/中。如果有的话,删除额外的目录。

答案 1 :(得分:0)

您可能需要检查文件系统中init的位置,因为错误似乎指出init不可定位。

此外,devtmpfs: error mounting -2似乎表明根分区中不存在devtmpfs安装点。

检查卡的根分区

中是否有rootfs可用