Kernel panic

来源:互联网 发布:comicstudio mac破解版 编辑:程序博客网 时间:2024/05/16 17:22

1.

Warning: unable to open an initial console.
Kernel panic - not syncing: Attempted to kill init!

原因:修改bootargs在后面加上

androidboot.console=ttyS0 init=/init lcdid=1 lpj=750000

linux核心启动后最后一个动作,就是从根文档系统找出init服务,并且执行init服务。linux核心会依照下面的顺序,寻找init服务。
1. 先找 /sbin 下是否有init服务
2. /etc/init
3. /bin/init
4. 如果都找不到,就执行 /bin/sh
这个过程中,只要某一个步骤找到init服务,linux核心就会去执行该目录中的init。
如果到最后核心还是找不到init服务,linux核心会显示“kernel panic - not syncing : Attempted to kill init ! ”的错误信息,然后终止启动工作,linux核心再悄悄的死去。内核和其它文件版本之间不是很匹配

 

2.

VFS: Cannot open root device "nfsroot" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00           13312 mtdblock0 (driver?)
1f01            2560 mtdblock1 (driver?)
1f02             320 mtdblock2 (driver?)
1f03              64 mtdblock3 (driver?)
1f04              64 mtdblock4 (driver?)
1f05              64 mtdblock5 (driver?)
1f06             512 mtdblock6 (driver?)
1f07            4608 mtdblock7 (driver?)
1f08            4608 mtdblock8 (driver?)
1f09            8192 mtdblock9 (driver?)
1f0a            5632 mtdblock10 (driver?)
1f0b          262144 mtdblock11 (driver?)
1f0c            2048 mtdblock12 (driver?)
1f0d            4096 mtdblock13 (driver?)
1f0e          524288 mtdblock14 (driver?)
1f0f          131072 mtdblock15 (driver?)
1f10         1149952 mtdblock16 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

 

原因:可能是没有内核没有编译支持nfs.