mkfs.jffs2 参数

2024-04-29 17:08
文章标签 参数 mkfs jffs2

本文主要是介绍mkfs.jffs2 参数,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

文章来自:http://blog.sina.com.cn/s/blog_4a4163880100cogf.html

 

mkfs.jffs2: Usage: mkfs.jffs2 [OPTIONS]
Make a JFFS2 file system image from an existing directory tree
Options:
-p, --pad[=SIZE] 用16進制來表示所要輸出檔案的大小,也就是root.jffs2 很重要的是, 為了不浪費flash空間, 這個值最好符合flash driver所規劃的區塊大小。如果不足则使用0xff来填充补满。
-r, -d, --root=DIR      指定要做成image的源資料夾.(默认:当前文件夹)
-s, --pagesize=SIZE     节点页大小(默认: 4KiB)
-e, --eraseblock=SIZE   设定擦除块的大小为(默认: 64KiB)
-c, --cleanmarker=SIZE Size of cleanmarker (default 12)
-m, --compr-mode=MODE   Select compressionmode (default: priortiry)
-x, --disable-compressor=COMPRESSOR_NAME
                          Disable acompressor
-X, --enable-compressor=COMPRESSOR_NAME
                          Enable a compressor
-y, --compressor-priority=PRIORITY:COMPRESSOR_NAME
                          Set the priority ofa compressor
-L, --list-compressors Show the list of the avaiable compressors
-t, --test-compression Call decompress and compare with the original (fortest)
-n, --no-cleanmarkers   指明不添加清楚标记(nand flash 有自己的校检块,存放相关的信息。)     如果挂载后会出现类似:
 CLEANMARKER node found at 0x0042c000 has totlen 0xc != normal0x0
                          的警告,则加上-n 就会消失。
-o, --output=FILE       指定輸出image檔案的文件名.(default: stdout)
-l, --little-endian     指定使用小端格式
-b, --big-endian        指定使用大端格式
-D, --devtable=FILE     Use the named FILEas a device table file
-f, --faketime          Change all filetimes to '0' for regression testing
-q, --squash            Squash permissionsand owners making all files be owned by root
-U, --squash-uids       将所有文件的拥有者设为root用户
-P, --squash-perms      Squash permissionson all files
      --with-xattr        stuff all xattrentries into image
      --with-selinux      stuff only SELinuxLabels into jffs2 image
      --with-posix-acl    stuff only POSIXACL entries into jffs2 image
-h, --help              显示这些文字
-v, --verbose           Verbose operation
-V, --version           显示版本
-i, --incremental=FILE Parse FILE and generate appendage output for it

 

 

文章来自:http://blog.csdn.net/feihongwang/article/details/38750895

mkfs.jffs2(1)- Linux man page

Name

mkfs.jffs2 - Create a JFFS2 file system image from directory

Synopsis

mkfs.jffs2 [ -p,--pad[=SIZE] ] [ -r,-d,--root directory ] [ -s,--pagesize=SIZE ] [ -e,--eraseblock=SIZE ] [ -c,--cleanmarker=SIZE ] [ -n,--no-cleanmarkers ] [ -o,--output image.jffs2 ] [ -l,--little-endian ] [ -b,--big-endian ] [ -D,--devtable=FILE ] [ -f,--faketime ] [ -q,--squash ] [ -U,--squash-uids ] [ -P,--squash-perms ] [--with-xattr ] [ --with-selinux ] [ --with-posix-acl ] [ -m,--compression-mode=MODE ] [ -x,--disable-compressor=NAME ] [ -X,--enable-compressor=NAME ] [ -y,--compressor-priority=PRIORITY:NAME ] [ -L,--list-compressors ] [ -t,--test-compression ] [ -h,--help ] [ -v,--verbose ] [ -V,--version ] [ -i,--incremental image.jffs2 ]

Description

The program mkfs.jffs2 creates a JFFS2 (SecondJournalling Flash File System) file system image and writes the resulting imageto the file specified by the -o option or by default to the standard output, unless the standardoutput is a terminal device in which case mkfs.jffs2 will abort.

The file system image is createdusing the files and directories contained in the directory specified by theoption-r or the present directory, if the -r option is not specified.

Each block of the files to be placedinto the file system image are compressed using one of the avaiable compressorsdepending on the selected compression mode.

File systems are created with thesame endianness as the host, unless the -b or -l options are specified. JFFS2 driver in the 2.4 Linux kernel onlysupported images having the same endianness as the CPU. As of 2.5.48, thekernel can be changed with a #define to accept images of the non-nativeendianness. Full bi-endian support in the kernel is not planned.

It is unlikely that JFFS2 images areuseful except in conjuction with the MTD (Memory Technology Device) drivers inthe Linux kernel, since the JFFS2 file system driver in the kernel requires MTDdevices.

Options

Options that take SIZE arguments canbe specified as either decimal (e.g., 65536), octal (0200000), or hexidecimal(0x1000).

-p, --pad[=SIZE]

Pad output to SIZE bytes with 0xFF. If SIZE is notspecified, the output is padded to the end of the final erase block.

-r, -d, --root=DIR

Build file system from directory DIR.The default is the current directory.

-s, --pagesize=SIZE

Use page size SIZE. The default is 4KiB. This size is the maximum size of a data node.

-e, --eraseblock=SIZE

Use erase block size SIZE. Thedefault is 64 KiB. If you use a erase block size different than the erase blocksize of the target MTD device, JFFS2 may not perform optimally. If the SIZEspecified is below 4096, the units are assumed to be KiB.

-c, --cleanmarker=SIZE

Write 'CLEANMARKER' nodes with thesize specified. It is not normally appropriate to specify a size other than thedefault 12 bytes.

-n, --no-cleanmarkers

Do not write 'CLEANMARKER' nodes tothe beginning of each erase block. This option can be useful for creating JFFS2images for use on NAND flash, and for creating images which are to be used on avariety of hardware with differing eraseblock sizes.

-o, --output=FILE

Write JFFS2 image to file FILE.Default is the standard output.

-l, --little-endian

Create a little-endian JFFS2 image.Default is to make an image with the same endianness as the host.

-b, --big-endian

Create a big-endian JFFS2 image.Default is to make an image with the same endianness as the host.

-D, --devtable=FILE

Use the named FILE as a device tablefile, for including devices and changing permissions in the created image whenthe user does not have appropriate permissions to create them on the filesystem used as source.

-f, --faketime

Change all file timestamps to '0' forregression testing.

-q, --squash

Squash permissions and owners, makingall files be owned by root and removing write permission for 'group' and'other'.

-U, --squash-uids

Squash owners making all files beowned by root.

-P, --squash-perms

Squash permissions, removing writepermission for 'group' and 'other'.

--with-xattr

Enables xattr, stuff all xattrentries into jffs2 image file.

--with-selinux

Enables xattr, stuff only SELinuxLabels into jffs2 image file.

--with-posix-acl

Enable xattr, stuff only POSIX ACLentries into jffs2 image file.

-m, --compression-mode=MODE

Set the default compression mode. Thedefault mode is priority which tries the compressors in a predefinied order and chooses thefirst successful one. The alternatives are: none (mkfs will not compress) and size (mkfs will try all compressorand chooses the one which have the smallest result).

-x, --disable-compressor=NAME

Disable a compressor. Use -L to see the list of the avaiablecompressors and their default states.

-X, --enable-compressor=NAME

Enable a compressor. Use -L to see the list of the avaiablecompressors and their default states.

-y, --compressor-priority=PRIORITY:NAME

Set the priority of a compressor.Use -L to see the list of the avaiable compressors and their defaultpriority. Priorities are used by priority compression mode.

-L, --list-compressors

Show the list of the avaiablecompressors and their states.

-t, --test-compression

Call decompress after every compress- and compare the result with the original data -, and some other check.

-h, --help

Display help text.

-v, --verbose

Verbose operation.

-V, --version

Display version information.

-i, --incremental=FILE

Generate an appendage image for FILE.If FILE is written to flash and flash is appended with the output, then itseems as if it was one thing.

Bugs

JFFS2 limits device major and minornumbers to 8 bits each. Some consider this a bug.

mkfs.jffs2 does not properly handle hard links in the input directorystructure. Currently, hard linked files will be expanded to multiple identicalfiles in the output image.

Authors

David Woodhouse
Manual page written by David Schleef <ds@schleef.org>

 


这篇关于mkfs.jffs2 参数的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!


原文地址:
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.chinasem.cn/article/946660

相关文章

一文详解PostgreSQL复制参数

《一文详解PostgreSQL复制参数》PostgreSQL作为一款功能强大的开源关系型数据库,其复制功能对于构建高可用性系统至关重要,本文给大家详细介绍了PostgreSQL的复制参数,需要的朋友可... 目录一、复制参数基础概念二、核心复制参数深度解析1. max_wal_seChina编程nders:WAL

Linux高并发场景下的网络参数调优实战指南

《Linux高并发场景下的网络参数调优实战指南》在高并发网络服务场景中,Linux内核的默认网络参数往往无法满足需求,导致性能瓶颈、连接超时甚至服务崩溃,本文基于真实案例分析,从参数解读、问题诊断到优... 目录一、问题背景:当并发连接遇上性能瓶颈1.1 案例环境1.2 初始参数分析二、深度诊断:连接状态与

史上最全nginx详细参数配置

《史上最全nginx详细参数配置》Nginx是一个轻量级高性能的HTTP和反向代理服务器,同时也是一个通用代理服务器(TCP/UDP/IMAP/POP3/SMTP),最初由俄罗斯人IgorSyso... 目录基本命令默认配置搭建站点根据文件类型设置过期时间禁止文件缓存防盗链静态文件压缩指定定错误页面跨域问题

SpringBoot请求参数接收控制指南分享

《SpringBoot请求参数接收控制指南分享》:本文主要介绍SpringBoot请求参数接收控制指南,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录Spring Boot 请求参数接收控制指南1. 概述2. 有注解时参数接收方式对比3. 无注解时接收参数默认位置

Python使用getopt处理命令行参数示例解析(最佳实践)

《Python使用getopt处理命令行参数示例解析(最佳实践)》getopt模块是Python标准库中一个简单但强大的命令行参数处理工具,它特别适合那些需要快速实现基本命令行参数解析的场景,或者需要... 目录为什么需要处理命令行参数?getopt模块基础实际应用示例与其他参数处理方式的比较常见问http

Linux内核参数配置与验证详细指南

《Linux内核参数配置与验证详细指南》在Linux系统运维和性能优化中,内核参数(sysctl)的配置至关重要,本文主要来聊聊如何配置与验证这些Linux内核参数,希望对大家有一定的帮助... 目录1. 引言2. 内核参数的作用3. 如何设置内核参数3.1 临时设置(重启失效)3.2 永久设置(重启仍生效

SpringMVC获取请求参数的方法

《SpringMVC获取请求参数的方法》:本文主要介绍SpringMVC获取请求参数的方法,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下... 目录1、通过ServletAPI获取2、通过控制器方法的形参获取请求参数3、@RequestParam4、@

Spring Boot项目部署命令java -jar的各种参数及作用详解

《SpringBoot项目部署命令java-jar的各种参数及作用详解》:本文主要介绍SpringBoot项目部署命令java-jar的各种参数及作用的相关资料,包括设置内存大小、垃圾回收... 目录前言一、基础命令结构二、常见的 Java 命令参数1. 设置内存大小2. 配置垃圾回收器3. 配置线程栈大小

SpringBoot利用@Validated注解优雅实现参数校验

《SpringBoot利用@Validated注解优雅实现参数校验》在开发Web应用时,用户输入的合法性校验是保障系统稳定性的基础,​SpringBoot的@Validated注解提供了一种更优雅的解... 目录​一、为什么需要参数校验二、Validated 的核心用法​1. 基础校验2. php分组校验3

一文带你了解SpringBoot中启动参数的各种用法

《一文带你了解SpringBoot中启动参数的各种用法》在使用SpringBoot开发应用时,我们通常需要根据不同的环境或特定需求调整启动参数,那么,SpringBoot提供了哪些方式来配置这些启动参... 目录一、启动参数的常见传递方式二、通过命令行参数传递启动参数三、使用 application.pro