1.jffs2文件系统
(1)下载mtd工程源代码,以编译mkfs.jffs2
cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs login
注意:password = anoncvs
cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs co mtd
(2)切换到utils目录下,make,得到相关工具
cd utils
make
cp mkfs.jffs2 /usr/sbin
(3)使用mkfs.jffs2工具制作jffs2根文件系统映像
事例如下:
原始根文件目录rootfs
目标根文件映像rootfs_jffs2.img
mkfs.jffs2 -o rootfs_jffs2.img -r rootfs -e 0xc000 -l --pad=0x2000000
-e 表示擦除块大小
-l表示little-endian
--pad=0x2000000 表示文件系统大小为0x2000000 bytes,如果不足则使用0xff来填充补满。
具体参数可以参考mkfs.jffs2 --help提示信息
2.yaffs2文件系统
官网:Using CVSWe operate a cvs server for our active projects. Here we give details of the setup:-
The server is cvs.aleph1.co.uk. If you just want to browse or download code then it's easiest to . This is also the best option if you are behind a firewall that does not allow direct CVS access (which is quite common).
If you want to use cvs directly then public read-only access is
available, using the pserver mechanism. Execute the following (bash)
commands to set environment variables, (or their equivalent for other
shells):
(1)源码下载,以制作mkyaffs2image,mkyaffsimage
方法一:
export CVSROOT=:pserver:anonymous@cvs.aleph1.co.uk:/home/aleph1/cvs cvs logon (Hit return when asked for a password)
cvs checkout yaffs2
方法二:
(see below for module names).
Read/write access is by SSH, for which you need an account on the server:
contact jenny@aleph1.co.uk to get access or if you are having problems.
Execute the following (bash) commands to set environment variables, (or their equivalent):
export CVS_RSH=ssh export CVSROOT=:ext:@cvs.aleph1.co.uk:/home/aleph1/cvs where username is the user i.d you have been given on the server.
Then do:
cvs checkout yaffs2Current modules are: yaffs2 yaffs
(2)切换到utils目录下,make,得到相关工具
cd utils
make
cp mkyaffs2image /usr/sbin
cp mkyaffsimage /usr/sbin
(3)使用mkyaffs2image工具制作yaffs2根文件系统映像
事例如下:
原始根文件目录rootfs
目标根文件映像rootfs_yaffs2.img
具体参数可以参考mkyaffs2image --help提示信息
更新中……
阅读(1450) | 评论(0) | 转发(0) |