標籤:linux 檔案系統
移植檔案系統時,我們可能會遇到這個問題:
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 *進行提交才能提交成功
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004