linux-kernel - 内核恐慌 - 不同步:试图杀死 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
请帮我解决这个问题。
解决方案
这可能会对您有所帮助。
正如你所说,有一个像下面这样的日志。
Kernel panic - not syncing:Attempted to kill init, exit code=0x000000b
这意味着init
(busybox) 已退出,退出代码为0xb
. 所以内核陷入恐慌。这可能是由网络问题引起的。但我们暂时不能断定这是由于网络造成的。
你说,你看到了崩溃,没有 NFS。我认为解决崩溃可能是解决这种情况的更好方法。
请分享没有 NFS 配置的崩溃日志。如果您共享日志,我会检查它。
推荐阅读
- reactjs - 设置状态后子组件不重新渲染
- angular - Angular 7 路由保护不起作用
- c - 在 TI XDAIS 算法中使用 const、静态 const 或全局变量的正确方法
- docker - Cloudera 管理器未运行
- python - 在熊猫中第一次达到某个值的最有效方法是什么?
- search - Kotlin如何通过with子句组合不同的接收器而不重复它
- node.js - Node JS PostgreSQL TypeError:无法读取未定义的属性“then”
- django - 如何制作:在文本字段中输入“输入”会导致段落中断?
- javascript - 我将如何通过将 MySQL 数组与另一个数组进行比较来更改它?
- swift - 如何在集合视图中制作图像半径?