天天看点

<十一> yaffs2 文件系统的移植

1、 源码下载

登录 http://www.aleph1.co.uk/gitweb?p=yaffs2.git;a=summary 点击 snapshot 下载

2、 解压到内核源码 linux-3.2 同级目录下

$ tar xvf yaffs2.tar.gz

3、 往内核打 yaffs2 补丁

$ cd yaffs2

$ ./patch-ker.sh c m linux-3.2<内核路径>

4、 配置内核

make menuconfig

File systems --->

[*] Miscellaneous filesystems --->

<*> yaffs2 file system support

-*- 512 byte / page devices

[ ] Use older-style on-NAND data format with pageStatus byte (NEW)

[ ] Lets yaffs do its own ECC (NEW)

-*- 2048 byte (or larger) / page devices

[*] Autoselect yaffs2 format (NEW)

[ ] Disable yaffs from doing ECC on tags by default (NEW)

[ ] Force chunk erase check (NEW)

[ ] Empty lost and found on boot (NEW)

[*] Disable yaffs2 block refreshing

[ ] Disable yaffs2 background processing (NEW)

[*] Enable yaffs2 xattr support (NEW)5、 重新编译内核

$ make zImage

6、 拷贝内核到开发板上

$ cp arch/arm/boot/zImage /tftpboot

7、 重新启动开发板

# cat /proc/filesystems

nodev sysfs

……

romfs

yaffs

yaffs2

继续阅读