内核支持yaffs文件系统

内核支持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-tree

eg.

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即可。

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值