1.Kernel panic - not syncing: Attempted to kill init!
上网搜索了一些相关信息,找到了解决问题的途径。 原因在于:编译内核和busybox使用的编译器是arm-linux-gcc 4.3.2,而这个编译器默认是打开“EABI选项”的,这样编译出来的busybox就是EABI的。但是内核编译的时候,默认是把“EABI选项”关掉的。所以busybox和内核无法正常配合。把“EABI选项”打开,重新编译内核后,一切正常。
Kernel Features --->
[*] Use the ARM EABI to compile the kernel
[*] Allow old ABI binaries to run with this kernel (EXPERIMENTAL) (NEW)
---------------------------------------------------------------------------------
2.启动时提示:cannot run '/etc/init.d/rcS': Permission denied
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing init memory: 120K
cannot run '/etc/init.d/rcS': Permission denied
(none) login:
---rcS需要有执行权限,chmod 777 rcS后就好了。
------------------------------------------------------------------------
3.启动时提示输入登录用户及密码:(none) login:
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing init memory: 120K
(none) login:
-----要求登录认证,我把inittab里的::respawn:-/bin/sh去掉之后就没有了
--------------------------------------------------------------------------------
4.提法不能运行文件,是因为shell脚本有非法字符(肉眼看不到,其实不是空格)
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing init memory: 120K
cannot run '/etc/init.d/rcS': No such file or directory
--------rcS是shell脚本文件,我是从网上拷的,所以在行尾可能有多余的非法字符,手动输入后,就开始执行rcS文件的内容了。
--------------------------------------------------------------------
5.进不了shell,呈死机状态
::askfirst:/bin/sh
我在inittab里加上这一句就好了。