This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

YAFFS2文件系统使用



用mkyaffs2image rootfs/ rootfs.yaffs2生成镜像。

uboot参照http://blog.csdn.net/lhf0921/article/details/5401116 对YAFFS2进行了支持,

以下是uboot中的操作命令:
fatload usb 0:1 0x82000000 rootfs.yaffs2 0x28fe000
nand write.yaffs2 0x82000000 0x780000 0x28fe000
然后 修改环境变量setenv bootargs console=${console} root=/dev/mtdblock4 rw rootfstype=yaffs2
接着重新启动最后打印出信息如下:

[    2.350158] yaffs: dev is 32505860 name is "mtdblock4" rw
[    2.355895] yaffs: passed flags ""
[    2.809539] VFS: Mounted root (yaffs2 filesystem) on device 31:4.
[    2.816345] Freeing init memory: 556K
[    2.820922] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    2.833984] [<c00a3678>] (unwind_backtrace+0x0/0xec) from [<c036fea4>] (panic+0x54/0x180)
[    2.842590] [<c036fea4>] (panic+0x54/0x180) from [<c0093540>] (init_post+0x9c/0xbc)
[    2.850646] [<c0093540>] (init_post+0x9c/0xbc) from [<c000870c>] (kernel_init+0x110/0x14c)
[    2.859313] [<c000870c>] (kernel_init+0x110/0x14c) from [<c009e590>] (kernel_thread_exit+0x0/0x8)

各位大神帮帮看看是什么问题,我用JFFS2启动可以的,但不知道YAFFS2为什么不行,非常感谢

还有我用CRAMFS作为根文件系统启动 挂载YAFFS2,在挂载目录下面出现 lost+found不过文件夹里面什么都没有