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

在移植Linux系統到arm上時遇到“Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004”的問題,這個問題網上有各種解決辦法,但是,都不能夠解決我的問題。


我的解決辦法是:把根目錄裏面的lib全部刪除,重新再重編譯鏈下面拷貝相應庫文件。


解決過程:1、刪除rootfs下的lib;

2、在busybox裏面選擇Build Options->[*] Build BusyBox as a static binary (no shared libs);

3、make;makeinstall

4、把rootfs通過nfs的方式掛載到設備,這樣做的好處是不用每次都燒錄文件系統鏡像;

5、重啓設備可以看到系統可以完全跑起來了,以上4個步驟可以定位到問題出在lib下的庫;

6、關閉Build Options->[ ] Build BusyBox as a static binary (no shared libs);

7、make;makeinstall

8、從編譯鏈下重新拷貝庫到lib。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章