歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux3.6.5的yaffs移植

Linux3.6.5的yaffs移植

日期:2017/2/28 14:53:57   编辑:Linux教程
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不能識別等,可以參考:http://www.linuxidc.com/Linux/2013-01/77761.htm)

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,進入內核源碼目錄,配置內核,命令:[[email protected]]#make menuconfig,進入內核配置界面。

File systems --->

[*] Miscellaneous filesystems --->

<*> yaffs2 file system support

如果在文件系統配置界面中發現沒有yaffs的配置選項,解決辦法:

在配置界面,查找 /yaffs,找到如圖的說明:

其中[]內的參數是對應選項當前的狀態,要讓yaffs_fs選項為[y],依賴於MISC_FILESYSTEMS 和 MTD_BLOCK同時為[y],但是後者當前狀態為[n],因此,需要將其選為[y]。請自行配置。

Copyright © Linux教程網 All Rights Reserved