Linux3.6.5的yaffs移植
Linux3.6.5的yaffs移植
1,下载源代码。进入urdir目录(为描述方便,将yaffs文件下载至urdir目录下,内核源码目录为urdir/linux3.6.5)。
如果系统已经安装git工具,直接执行:
git clonegit://www.aleph1.co.uk/yaffs2 (@qingwu:一般在终端下都有git支持)
如果没有git工具,首先下载安装git(http://git-scm.com/ ,如果在Fedora下,可直接yum安装,命令:yum installgit.i686)。当然,也可以在windows下用git工具下载(这里请注意:windows下的文件可能会出现回车换行的错误,比如^M不能识别等,可以参考:)
2,给内核打补丁
yaffs源代码下载完后,进入urdir/yaffs源代码目录,执行:
#./patch-kernel.sh c m ../linux-3.6.5
根据帮助文档说明,可知c m的含义(you wish to copy(c) or link (l) the code and the path to your kernel sources and whether youwant to use the single-version or multi-version code.)
3,进入内核源码目录,配置内核,命令:[root@localhostlinux-3.6.5]#make menuconfig,进入内核配置界面。
File systems --->
[*] Miscellaneous filesystems --->
<*> yaffs2 file system support如果在文件系统配置界面中发现没有yaffs的配置选项,解决办法:
在配置界面,查找 /yaffs,找到如图的说明:
其中[]内的参数是对应选项当前的状态,要让yaffs_fs选项为[y],依赖于MISC_FILESYSTEMS 和 MTD_BLOCK同时为[y],但是后者当前状态为[n],因此,需要将其选为[y]。请自行配置。
|
评论暂时关闭