首页 > 解决方案 > 内核恐慌 - 不同步:试图杀死 init

问题描述

我为内核、工具链和文件系统使用 buildroot 版本-20011.02。我的定制板 ARMV7 cortexA9 SoC.Kernel 版本是 3.18.41。构建内核(uImage)、Buildroot 工具链、rootfs.tar.gz。在 buildroot 和内核中启用文件系统类型 ext4。将此 rootfs.tar.gz 提取到 /export/users/buildroot/。通过使用
exportfs -a, exportfs -rv并重新启动 nfs 服务器导出此目录。在 nfs 服务器端似乎一切正常。
这里我分享的是“make menuconfig”系统配置 -->

Init system (BusyBox)  --->

即使我尝试使用 Init system (systemV) --->
bootargs 作为bootargs console=ttyAM0,115200n8 root=/dev/nfs rw rootwait ip=dhcp nfsroot=192.168.1.40:/export/users/buildroot,tcp,v3 init=/sbin/init
每次我得到以下日志时:

VFS: mounted fs via nfs  
devtmpfs is mounted.  
Kernel panic - not syncing:Attempted to kill init, exit code=0x000000b 

请帮我解决这个问题。

标签: linux-kernel

解决方案


这可能会对您有所帮助。

正如你所说,有一个像下面这样的日志。

Kernel panic - not syncing:Attempted to kill init, exit code=0x000000b 

这意味着init(busybox) 已退出,退出代码为0xb. 所以内核陷入恐慌。这可能是由网络问题引起的。但我们暂时不能断定这是由于网络造成的。

你说,你看到了崩溃,没有 NFS。我认为解决崩溃可能是解决这种情况的更好方法。

请分享没有 NFS 配置的崩溃日志。如果您共享日志,我会检查它。


推荐阅读