内核恐慌 - 不同步:找不到有效的 init

Kernel panic - not syncing: No working init found

我正在尝试通过 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的显示器不显示任何东西。 有人可以帮我了解这个问题的原因吗?

错误提示您系统找不到init

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

您的文件可能已损坏,或者您的 SD 卡未被正确识别和连接。

您可能需要检查一下您的文件系统。确保 /bin /boot /dev /etc /home /install /lib ... 等所有文件夹都在 / 中。如果有多余的目录,请将其删除。

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

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

检查网卡根分区是否有rootfs