问题描述:
启动内核,运行到Freeing init memory: 120K卡死,具体如下:
......
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 120K
---------------------------------------------------------------------------------------------------
解决方法:
原因是守护进程init没有运行起来,或者运行错误。使用与编译kernel相同的交叉编译器来编译busybox,然后重新制作文件系统,内核完美启动如下:
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 120K
init started: BusyBox v1.7.0 (2010-11-26 18:26:44 CST)
starting pid 731, tty '': '/etc/init.d/rcS'
mount: mounting tmpfs on /dev failed: Invalid argument
Please press Enter to activate this console.
starting pid 736, tty '/dev/console': '/bin/sh'
#
# ls
bin etc linuxrc proc sys
dev lib lost+found sbin usr
#
本文介绍了解决启动内核时出现的卡死问题,该问题出现在Freeing init memory: 120K阶段。通过使用相同的交叉编译器重新编译busybox并制作文件系统,成功解决了守护进程init未正确启动的问题。
1402

被折叠的 条评论
为什么被折叠?



