Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004


移植文件系统时,我们可能会遇到这个问题:

VFS: Mounted root (cramfs filesystem) readonly on device 31:3.
Freeing unused kernel memory: 176K (c0616000 - c0642000)
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004


CPU: 0 PID: 1 Comm: sh Not tainted 3.16.1-svn57 #5
[<c011b0e8>] (unwind_backtrace) from [<c0118978>] (show_stack+0x10/0x14)
[<c0118978>] (show_stack) from [<c04d5898>] (panic+0x80/0x1f4)
[<c04d5898>] (panic) from [<c0126954>] (do_exit+0x77c/0x88c)
[<c0126954>] (do_exit) from [<c0126aac>] (do_group_exit+0x48/0xb0)
[<c0126aac>] (do_group_exit) from [<c0132428>] (get_signal_to_deliver+0x22c/0x4dc)
[<c0132428>] (get_signal_to_deliver) from [<c0117cf4>] (do_work_pending+0xc8/0x444)
[<c0117cf4>] (do_work_pending) from [<c01157bc>] (work_pending+0xc/0x20)
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[<c0132428>] (get_signal_to_deliver) from [<c0117cf4>] (do_work_pending+0xc8/0x444)
[<c0117cf4>] (do_work_pending) from [<c01157bc>] (work_pending+0xc/0x20)

---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

然后系统就起不来了
这里除了网上讲的各种原因外,还可能是如下原因:
(1)busybox没做好,导致linuxrc启动失败
(2)lib目录下没有.so库,或者.so库的属性全变成了普通文件,有时候将.so库从一个目录拷贝到另一个目录,直接拷贝会出现属性变成普通文件
另外,一般用svn提交/lib目录,并不能提交.so库,需要进入到lib目录下,执行svn add *进行提交才能提交成功

你可能感兴趣的:(linux,文件系统)