日期:2014-05-16  浏览次数:20721 次

请教一个奇怪的问题
用的海思3110e平台,kernel版本 2.6.14,busybox1.1.2版本。

16M flash配置时,kernel和rootfs正常工作。

升级到32M flash了,刚刚好用的kernel就崩溃;重新编译之后的kernel,挂载rootfs没问题,也能正常解析inittab文件,但是,莫名其妙不能运行bin/sh,下面是出错信息:

Starting pid 622, console /dev/console: '/bin/sh'
Process '/sbin/getty -L ttyAMA0 115200 vt100 -n root -I "Auto login as root ..."
' (pid 622) exited. Scheduling it for restart.
Starting pid 623, console /dev/console: '/bin/sh'
Process '/sbin/getty -L ttyAMA0 115200 vt100 -n root -I "Auto login as root ..."
' (pid 623) exited. Scheduling it for restart.
Starting pid 624, console /dev/console: '/bin/sh'
Process '/sbin/getty -L ttyAMA0 115200 vt100 -n root -I "Auto login as root ..."
' (pid 624) exited. Scheduling it for restart.
Starting pid 625, console /dev/console: '/bin/sh'
Process '/sbin/getty -L ttyAMA0 115200 vt100 -n root -I "Auto login as root ..."
' (pid 625) exited. Scheduling it for restart.
Starting pid 626, console /dev/console: '/bin/sh'
Process '/sbin/getty -L ttyAMA0 115200 vt100 -n root -I "Auto login as root ..."
' (pid 626) exited. Scheduling it for restart.
Starting pid 627, console /dev/console: '/bin/sh'
Process '/sbin/getty -L ttyAMA0 115200 vt100 -n root -I "Auto login as root ..."
' (pid 627) exited. Scheduling it for restart.
Starting pid 628, console /dev/console: '/bin/sh'
Process '/sbin/getty -L ttyAMA0 115200 vt100 -n root -I "Auto login as root ..."
' (pid 628) exited. Scheduling it for restart.
Starting pid 629, console /dev/console: '/bin/sh'
Process '/sbin/getty -L ttyAMA0 115200 vt100 -n root -I "Auto login as root ..."
' (pid 629) exited. Scheduling it for restart.
Starting pid 630, console /dev/console: '/bin/sh'  
 
问题:到底配置内核编译选项是那里出问题了呢?困扰2天啦,请高手指点,非常感谢!

------解决方案--------------------
init是Linux系统操作中不可缺少的程序之一。 是一个由内核启动的用户级进程。
内核启动(已经被载入内存,开始运行,并已初始化所有的设备驱动程序和数据结构等)之后,就通过启动一个用户级程序init的方式来启动其他用户级的进程或服务。所以,init始终是第一个进程(其PID始终为 1)。
内核会在过去曾使用过init的几个地方查找它,它的正确位置(对Linux系统来说)是/sbin/init。如果内核找不到init,它就会试着运行 /bin/sh,如果运行失败,系统的启动也会失败。
搜了一下,希望对楼主有帮助,init没有找到啊,看来。
------解决方案--------------------
关注,init是肯定正确了,都pid 630了。感觉问题可能出在tty参数上。