北航游戏网:本站主要提供海量正版软件本地纯净,安全,无捆绑软件下载服务,热门软件和游戏应有尽有,每天更新大量精品手游及绿色软件!
网站地图
你的位置: 首页 > 游戏资讯 > 操作系统

制作yaffs2文件系统

  • 2024-02-24 05:29:27
  • 来源:其他
  • 在手机上看

    扫一扫立即进入手机端

  由于内核里没有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 文件系统 制作yaffs2文件系统
更多
  • 中文|

  • 中文|

手机游戏排行榜