mkfs.jffs2命令
2015-11-11 11:55
429 查看
Linux使用mkfs.jffs2命令需要安装mtd-utils工具
root@ubuntu:~# apt-get install mtd-utils
root@ubuntu:~# mkfs.jffs2 --help
mkfs.jffs2: error!: Usage: mkfs.jffs2 [OPTIONS]
Make a JFFS2 file system image from an existing directory tree
Options:
-p, --pad[=SIZE] Pad output to SIZE bytes with 0xFF. If SIZE is
not specified, the output is padded to the end of
the final erase block
-r, -d, --root=DIR Build file system from directory DIR (default: cwd)
-s, --pagesize=SIZE Use page size (max data node size) SIZE.
Set according to target system's memory management
page size (default: 4KiB)
-e, --eraseblock=SIZE Use erase block size SIZE (default: 64KiB)
-c, --cleanmarker=SIZE Size of cleanmarker (default 12)
-m, --compr-mode=MODE Select compression mode (default: priortiry)
-x, --disable-compressor=COMPRESSOR_NAME
Disable a compressor
-X, --enable-compressor=COMPRESSOR_NAME
Enable a compressor
-y, --compressor-priority=PRIORITY:COMPRESSOR_NAME
Set the priority of a compressor
-L, --list-compressors Show the list of the avaiable compressors
-t, --test-compression Call decompress and compare with the original (for test)
-n, --no-cleanmarkers Don't add a cleanmarker to every eraseblock
-o, --output=FILE Output to FILE (default: stdout)
-l, --little-endian Create a little-endian filesystem
-b, --big-endian Create a big-endian filesystem
-D, --devtable=FILE Use the named FILE as a device table file
-f, --faketime Change all file times to '0' for regression testing
-q, --squash Squash permissions and owners making all files be owned by root
-U, --squash-uids Squash owners making all files be owned by root
-P, --squash-perms Squash permissions on all files
--with-xattr stuff all xattr entries into image
--with-selinux stuff only SELinux Labels into jffs2 image
--with-posix-acl stuff only POSIX ACL entries into jffs2 image
-h, --help Display this help text
-v, --verbose Verbose operation
-V, --version Display version information
-i, --incremental=FILE Parse FILE and generate appendage output for it
jffs2文件制作命令:
mkfs.jffs2 -d ./firmware/HI3518E_OV9732/ -e 0x10000 -p 0xA00000 -o ./output/application_HI3518E_OV9732.jffs2
linux系统下命令重写第四分区:
dd if=application_HI3518E_OV9732.jffs2 of=/dev/mtdblock3
uboot下通过tftp单独重烧第四分区:
mw.b 0x82000000 ff 1000000;tftp 0x82000000 application_3518c_imx238_ex.jffs2;sf probe 0;sf erase 0x600000 0xA00000;sf write 0x82000000 0x600000 0xA00000;
root@ubuntu:~# apt-get install mtd-utils
root@ubuntu:~# mkfs.jffs2 --help
mkfs.jffs2: error!: Usage: mkfs.jffs2 [OPTIONS]
Make a JFFS2 file system image from an existing directory tree
Options:
-p, --pad[=SIZE] Pad output to SIZE bytes with 0xFF. If SIZE is
not specified, the output is padded to the end of
the final erase block
-r, -d, --root=DIR Build file system from directory DIR (default: cwd)
-s, --pagesize=SIZE Use page size (max data node size) SIZE.
Set according to target system's memory management
page size (default: 4KiB)
-e, --eraseblock=SIZE Use erase block size SIZE (default: 64KiB)
-c, --cleanmarker=SIZE Size of cleanmarker (default 12)
-m, --compr-mode=MODE Select compression mode (default: priortiry)
-x, --disable-compressor=COMPRESSOR_NAME
Disable a compressor
-X, --enable-compressor=COMPRESSOR_NAME
Enable a compressor
-y, --compressor-priority=PRIORITY:COMPRESSOR_NAME
Set the priority of a compressor
-L, --list-compressors Show the list of the avaiable compressors
-t, --test-compression Call decompress and compare with the original (for test)
-n, --no-cleanmarkers Don't add a cleanmarker to every eraseblock
-o, --output=FILE Output to FILE (default: stdout)
-l, --little-endian Create a little-endian filesystem
-b, --big-endian Create a big-endian filesystem
-D, --devtable=FILE Use the named FILE as a device table file
-f, --faketime Change all file times to '0' for regression testing
-q, --squash Squash permissions and owners making all files be owned by root
-U, --squash-uids Squash owners making all files be owned by root
-P, --squash-perms Squash permissions on all files
--with-xattr stuff all xattr entries into image
--with-selinux stuff only SELinux Labels into jffs2 image
--with-posix-acl stuff only POSIX ACL entries into jffs2 image
-h, --help Display this help text
-v, --verbose Verbose operation
-V, --version Display version information
-i, --incremental=FILE Parse FILE and generate appendage output for it
jffs2文件制作命令:
mkfs.jffs2 -d ./firmware/HI3518E_OV9732/ -e 0x10000 -p 0xA00000 -o ./output/application_HI3518E_OV9732.jffs2
linux系统下命令重写第四分区:
dd if=application_HI3518E_OV9732.jffs2 of=/dev/mtdblock3
uboot下通过tftp单独重烧第四分区:
mw.b 0x82000000 ff 1000000;tftp 0x82000000 application_3518c_imx238_ex.jffs2;sf probe 0;sf erase 0x600000 0xA00000;sf write 0x82000000 0x600000 0xA00000;
相关文章推荐
- echarts 2.2.7部署
- 19 个必须知道的 Visual Studio 快捷键
- Mac下android_sdk配置环境变量
- 【移动安全】ida idc脚本实现加密指令修改
- WPF 字体模糊解决之路
- linux screen 使用
- Android Studio 使用二三事----' ' cannot be applied to '(groovy.lang.Closure)'
- 如何使用liunx自带mysql
- 韩顺平Linux笔记(八)——Shell介绍
- DICOM:DICOM标准学习路线图(初稿)
- 自定义View相关可以重写的方法及作用 需要注意的事项
- 实现类似输入法弹起,布局收缩的效果
- Spring AOP其他几个注解介绍
- 为什么微博里面的网址链接都使用短链接?
- 《从零开始学Swift》学习笔记(Day 34)——静态属性是怎么回事?
- 冷门实用的定律(三):飞轮效应
- ZeroMQ之模式 请求回应模型(Request-Reply)
- PHP中this,self,parent的区别
- Lua中handler方法的原理详解
- Android快速SDK(14)瀑布流PlaView