内核支持yaffs2文件系统
安装git工具
sudo apt-get install git
下载源码:
git clone git://www.aleph1.co.uk/yaffs2
2. 打补丁
运行打补丁,参考README-linux中的 如下描述:
Integrating YAFFS2 into a Linux 2.6.x kernel
--------------------------------------------We'll start by assuming you have a building linux 2.6.x source tree called
linux-dir and have the
yaffs2 source code in a directory calls yaffs-dir.yaffs-dir has a handy shell script called patch-ker.sh will painlessly do all the patching
for you.patch-ker.sh takes three parameters:
c/l copy or link: c will copy yaffs files into the kernel tree, l will
create symbolic links.
m/s multi-version or single version vfs glue layer. Suggest you use m.
linux-treeeg.
cd yaffs-dir
./patch-ker.sh c m linux-tree
比如目录:
root@VM-QT:/work/system# cd yaffs2/
root@VM-QT:/work/system/yaffs2# ./patch-ker.sh c m /work/system/linux-3.4.2
Updating /work/system/linux-3.4.2/fs/Kconfig
Updating /work/system/linux-3.4.2/fs/Makefile
进入内核目录,ls fs/yaffs2
make menuconfig
Location: │
│ -> File systems │
│ -> Miscellaneous filesystems (MISC_FILESYSTEMS [=y]) │
│ -> yaffs2 file system support (YAFFS_FS [=n]) │
│ -> 2048 byte (or larger) / page devices (YAFFS_YAFFS2 [=n])
选择y 支持 即可。
然后退出menuconfig
最后重新make uImage即可。