
时间:2015-06-28 00:00 来源:IT猫扑网|http://www.itmop.com/ 作者:网管联盟 我要评论(0)
由于内核里没有yaffs2文件系统生成功能,所以需要添加补丁。
1. fsMakefile.path in fs_yaffs2.tgz is the patch for kernel/fs/Makefile
在 kernel/fs/Makefile中添加如下内容
[root@localhost fs_yaffs2]# cat fsMakefile.path
--- fs/Makefile.orig 2010-01-22 11:43:38.000000000 +0800
+++ fs/Makefile 2010-01-22 11:44:22.000000000 +0800
@@ -120,3 +120,5 @@
obj-$(CONFIG_DEBUG_FS) += debugfs/
obj-$(CONFIG_OCFS2_FS) += ocfs2/
obj-$(CONFIG_GFS2_FS) += gfs2/
+# Patched by YAFFS
+obj-$(CONFIG_YAFFS_FS) += yaffs2/
[root@localhost fs_yaffs2]#
2. Kconfig.patch in fs_yaffs2.tgz is the patch for kernel/fs/Kconfig
在 kernel/fs/Kconfig中,添加如下内容
[root@localhost fs_yaffs2]# cat Kconfig.patch
--- Kconfig.pre.yaffs 2010-01-21 12:41:45.000000000 +0800
+++ Kconfig 2010-01-21 12:41:37.000000000 +0800
@@ -1182,6 +1182,10 @@
To compile the EFS file system support as a module, choose M here: the
module will be called efs.
+
+# Patched by YAFFS
+source &fs/yaffs2/Kconfig&
+
config JFFS2_FS
tristate &Journalling Flash File System v2 (JFFS2) support&
select CRC32
[root@localhost fs_yaffs2]#
最后后拷贝 yaffs2/ 到 /kerenl/fs/ 中。
3. stlinux23-host-yaffs-utils-1.0.0-3.i386.rpm is to install /opt/STM/STLinux-
2.3/host/bin/mkyaffs2image to create yaffs2 fs image.
制作文件系统工具
[root@localhost fs_yaffs2]# rpm -ivh stlinux23-host-yaffs-utils-1.0.0-3.i386.rpm --nodeps --force
这样就可以用mkyaffs2image 来制作yaffs2文件系统了~
4. use apply_yaffs2nand-app.sh
[root@localhost hanbang--mini+fs+for+ramdisk&jffs2&yaffs2]# cat apply_yaffs2nand-app.sh
echo &rm ./yaffs2fs-app.yaffs2&
rm /opt/STM/STLinux-2.3/devkit/sh4/yaffs2fs-app.yaffs2
/opt/STM/STLinux-2.3/host/bin/mkyaffs2image 1 /opt/STM/STLinux-2.3/devkit/sh4/target
/opt/STM/STLinux-2.3/devkit/sh4/yaffs2fs-app.yaffs2
echo &done !!!&
[root@localhost hanbang--mini+fs+for+ramdisk&jffs2&yaffs2]#
5. 制作文件系统:source ./apply_yaffs2nand-app.sh
关键词标签:yaffs2,文件系统
相关阅读 安装红帽子RedHat Linux9.0操作系统教程 Tomcat9.0如何安装_Tomcat9.0环境变量配置方法 多种操作系统NTP客户端配置 Linux操作系统修改IP Linux实现SCSI硬盘热插拔及在线识别 Linux下用CDMA modem拨号上网
热门文章
安装红帽子RedHat Linux9.0操作系统教程
Linux服务器:设计高性能网站架构-LLMP
使用Clonezilla迁移到虚拟Linux环境
Linux上的MRTG流量监控中心
Linux 双网卡绑定一个IP原理及实现
linux和windows等系统远程控制ubuntu桌面
人气排行 Linux下获取CPUID、硬盘序列号与MAC地址 dmidecode命令查看内存型号 linux tc实现ip流量限制 安装红帽子RedHat Linux9.0操作系统教程 linux下解压rar文件 lcx.exe、nc.exe、sc.exe入侵中的使用方法 Ubuntu linux 关机、重启、注销 命令 查看linux服务器硬盘IO读写负载 linux命令行浏览器的使用方法 Linux NFS服务固定端口及防火墙配置 U盘安装Ubuntu 10.04 Linux清除用户登录记录和命令历史方法
查看所有0条评论>>