主题 : NFS方式系统能启动,NandFlash不能启动,为什么呢?(同一文件系统) 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 16174
精华: 0
发帖: 43
金钱: 225 两
威望: 45 点
综合积分: 86 分
注册时间: 2010-03-14
最后登录: 2012-12-16
楼主  发表于: 2010-03-29 18:41

 NFS方式系统能启动,NandFlash不能启动,为什么呢?(同一文件系统)

管理提醒: 本帖被 qq2440 从 micro2440技术交流专区 移动到本区(2013-11-18)
NFS方式系统能启动,NandFlash不能启动,为什么呢?(同一文件系统)
首先,我用busybox 生成了一个简单的能启动的文件系统,其中busybox 生成bin linuxrc sbin 目录,另外的目录自行添加的,添加/etc/init.d/rcS,然后NFS方式,系统可以正常启动,并且看到里面的根目录!
然后,下一步我用mkyaffs2image转换这个文件系统,生成root.img下载到开发板上NandFlash,却不能启动,出错信息如下:
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 216K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel
目录中不是有linuxrc文件了吗?为什么会找不到,另外sbin/init也存在的!!!
所以想知道两个方式的启动细节的差别呀??

 
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-03-29 21:40
两者启动方式99%是一样的,其唯一的差别我已经在http://aiothome.net/read.php?tid=1702&page=5#23269给你解释了。
你的问题不在于文件系统的启动,而在于文件系统的挂载。从你给出的信息看,你NAND Flash里的yaffs文件系统事实上并没有挂载成功,也就是说,对于Linux来说,文件系统是空的,当然找不到initrc,/sbin/init这种东西。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 16174
精华: 0
发帖: 43
金钱: 225 两
威望: 45 点
综合积分: 86 分
注册时间: 2010-03-14
最后登录: 2012-12-16
2楼  发表于: 2010-03-29 23:03
kasim,你好!我的内核是kernel 2.6.13,之前我取消了devfs,现在加上了,还是有错误!
错误信息如下:
block 26 is bad
block 27 is bad
block 28 is bad
block 30 is bad
block 31 is bad
block 32 is bad
block 2102 is bad
block 2122 is bad
VFS: Mounted root (yaffs filesystem).
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing init memory: 216K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
是不是因为mount_devfs_fs(): unable to mount devfs, err: -2的原因,所以文件系统挂接有错误呢?
更新supervivi为supervivi-64M之后,usb不能识别,插上就死机!
[ 此帖被zzddzhou在2010-03-30 12:28重新编辑 ]