各位大神我想用YAFFS2文件系统,git clone git://www.aleph1.co.uk/yaffs2
然后打了补丁到内核,配置如下图
cd /yaffs2/utils make 编译出生成YAFFS2镜像工具mkyaffs2image 用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为什么不行,非常感谢