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

相关文章

Andrej Karpathy最新采访:认知核心模型10亿参数就够了,AI会打破教育不公的僵局

夕小瑶科技说 原创  作者 | 海野 AI圈子的红人,AI大神Andrej Karpathy,曾是OpenAI联合创始人之一,特斯拉AI总监。上一次的动态是官宣创办一家名为 Eureka Labs 的人工智能+教育公司 ,宣布将长期致力于AI原生教育。 近日,Andrej Karpathy接受了No Priors(投资博客)的采访,与硅谷知名投资人 Sara Guo 和 Elad G

C++11第三弹:lambda表达式 | 新的类功能 | 模板的可变参数

🌈个人主页: 南桥几晴秋 🌈C++专栏: 南桥谈C++ 🌈C语言专栏: C语言学习系列 🌈Linux学习专栏: 南桥谈Linux 🌈数据结构学习专栏: 数据结构杂谈 🌈数据库学习专栏: 南桥谈MySQL 🌈Qt学习专栏: 南桥谈Qt 🌈菜鸡代码练习: 练习随想记录 🌈git学习: 南桥谈Git 🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈�

如何在页面调用utility bar并传递参数至lwc组件

1.在app的utility item中添加lwc组件: 2.调用utility bar api的方式有两种: 方法一,通过lwc调用: import {LightningElement,api ,wire } from 'lwc';import { publish, MessageContext } from 'lightning/messageService';import Ca

4B参数秒杀GPT-3.5:MiniCPM 3.0惊艳登场!

​ 面壁智能 在 AI 的世界里,总有那么几个时刻让人惊叹不已。面壁智能推出的 MiniCPM 3.0,这个仅有4B参数的"小钢炮",正在以惊人的实力挑战着 GPT-3.5 这个曾经的AI巨人。 MiniCPM 3.0 MiniCPM 3.0 MiniCPM 3.0 目前的主要功能有: 长上下文功能:原生支持 32k 上下文长度,性能完美。我们引入了

AI(文生语音)-TTS 技术线路探索学习:从拼接式参数化方法到Tacotron端到端输出

AI(文生语音)-TTS 技术线路探索学习:从拼接式参数化方法到Tacotron端到端输出 在数字化时代,文本到语音(Text-to-Speech, TTS)技术已成为人机交互的关键桥梁,无论是为视障人士提供辅助阅读,还是为智能助手注入声音的灵魂,TTS 技术都扮演着至关重要的角色。从最初的拼接式方法到参数化技术,再到现今的深度学习解决方案,TTS 技术经历了一段长足的进步。这篇文章将带您穿越时

如何确定 Go 语言中 HTTP 连接池的最佳参数?

确定 Go 语言中 HTTP 连接池的最佳参数可以通过以下几种方式: 一、分析应用场景和需求 并发请求量: 确定应用程序在特定时间段内可能同时发起的 HTTP 请求数量。如果并发请求量很高,需要设置较大的连接池参数以满足需求。例如,对于一个高并发的 Web 服务,可能同时有数百个请求在处理,此时需要较大的连接池大小。可以通过压力测试工具模拟高并发场景,观察系统在不同并发请求下的性能表现,从而

多路转接之select(fd_set介绍,参数详细介绍),实现非阻塞式网络通信

目录 多路转接之select 引入 介绍 fd_set 函数原型 nfds readfds / writefds / exceptfds readfds  总结  fd_set操作接口  timeout timevalue 结构体 传入值 返回值 代码 注意点 -- 调用函数 select的参数填充  获取新连接 注意点 -- 通信时的调用函数 添加新fd到

struts2中的json返回指定的多个参数

要返回指定的多个参数,就必须在struts.xml中的配置如下: <action name="goodsType_*" class="goodsTypeAction" method="{1}"> <!-- 查询商品类别信息==分页 --> <result type="json" name="goodsType_findPgae"> <!--在这一行进行指定,其中lis是一个List集合,但

mybatis if test 之 0当做参数传入出问题

首先前端传入了参数 if(StringUtils.isNotBlank(status)){requestParam.setProperty("status", Integer.parseInt(status));}List<SuperPojo> applicationList = groupDao.getApplicationListByReviewStatusAndMember(req

Linux的系统性能监测参数获取方法介绍

目前的工程需要简单的监测一下Linux系统的:CPU负载、内存消耗情况、几个指定目录的磁盘空间、磁盘I/O、swap的情况还有就是网络流量。   Linux下的性能检测工具其实都有很多。   mrtg(http://people.ee.ethz.ch/~oetiker/webtools/mrtg/)就是一个很不错的选择。不过用mrtg就要装sysstat、apache、snmp、pe