打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
UBIFS分区制作及UBIFS烧写和启动
相关命令工具
ubiattach version 1.0 - a tool to attach MTD device to UBI.
Usage: ubiattach  <UBI control device node file name> 
[-m <MTD device number>] [-d <UBI device number>]
[--mtdn=<MTD device number>] [--devn <UBI device number>]

Example 1: ubiattach /dev/ubi_ctrl -m 0 - attach MTD device 0 (mtd0) to UBI
Example 2: ubiattach /dev/ubi_ctrl -m 0 -d 3 - attach MTD device 0 (mtd0) to UBI and
and create UBI device number 3 (ubi3)

-d, --devn=<UBI device number>  the number to assign to the newly created UBI       device(the number is assigned automatically if this is not specified)
-m, --mtdn=<MTD device number>  MTD device number to attach
-O, --vid-hdr-offset            VID header offset (do not specify this unless you really know what you do and the optimal defaults will be used)
-h, --help                      print help message
-V, --version                   print program version

ubimkvol version 1.0 - a tool to create UBI volumes.
Usage: ubimkvol <UBI device node file name> [-h] [-a <alignment>] [-n <volume ID>] [-N <name>] [-s <bytes>] [-S <LEBs>] [-t <static|dynamic>] [-V] [-m] [--alignment=<alignment>][--vol_id=<volume ID>] [--name=<name>] [--size=<bytes>] [--lebs=<LEBs>] [--type=<static|dynamic>] [--help] [--version] [--maxavsize]

Example: ubimkvol/dev/ubi0 -s 20MiB -N config_data - create a 20 Megabytes volume
named "config_data" on UBI device /dev/ubi0.

-a, --alignment=<alignment>   volume alignment (default is 1)
-n, --vol_id=<volume ID>      UBI volume ID, if not specified, the volume ID
will be assigned automatically
-N, --name=<name>             volume name
-s, --size=<bytes>            volume size volume size in bytes, kilobytes (KiB)
or megabytes (MiB)
-S, --lebs=<LEBs count>       alternative way to give volume size in logical
eraseblocks
-m, --maxavsize               set volume size to maximum available size
-t, --type=<static|dynamic>   volume type (dynamic, static), default is dynamic
-h, -?, --help                print help message
-V, --version                 print program version

The following is a compatibility option which is deprecated, do not use it
-d, --devn=<devn>             UBI device number - may be used instead of the UBI
device node name in which case the utility assumes
that the device node is "/dev/ubi<devn>"

ubidetach version 1.0 - a tool to remove UBI devices (detach MTD devices from UBI)
Usage: ubidetach<UBI control device node file name> [-d <UBI device number>] [-m <MTD device number>] [--devn <UBI device number>] [--mtdn=<MTD device number>]
Example 1: ubidetach /dev/ubi_ctrl -d 2 - delete UBI device 2 (ubi2)
Example 2: ubidetach /dev/ubi_ctrl -m 0 - detach MTD device 0 (mtd0)

-d, --devn=<UBI device number>  UBI device number to delete
-m, --mtdn=<MTD device number>  or altrnatively, MTD device number to detach -
this will delete corresponding UBI device
-h, --help                      print help message
-V, --version                   print program version

ubiformat version 1.0 - a tool to format MTD devices and flash UBI images
Usage: ubiformat <MTD device node file name> [-h] [-V] [-y] [-q] [-v]
[-x <num>] [-E <value>] [-s <bytes>] [-O <offs>] [-n]
[--help] [--version] [--yes] [--verbose] [--quiet]
[--ec=<value>] [--vid-hdr-offset=<offs>]
[--ubi-ver=<num>] [--no-volume-table]
Example 1: ubiformat /dev/mtd0 -y - format MTD device number 0 and do
not ask questions.
Example 2: ubiformat /dev/mtd0 -q -e 0 - format MTD device number 0,
be quiet and force erase counter value 0.

-s, --sub-page-size=<bytes>  minimum input/output unit used for UBI
headers, e.g. sub-page size in case of NAND
flash (equivalent to the minimum input/output
unit size by default)
-O, --vid-hdr-offset=<offs>  offset if the VID header from start of the
physical eraseblock (default is the next
minimum I/O unit or sub-page after the EC
header)
-n, --no-volume-table        only erase all eraseblock and preserve erase
counters, do not write empty volume table
-f, --flash-image=<file>     flash image file
-e, --erase-counter=<value>  use <value> as the erase counter value for all
eraseblocks
-y, --yes                    assume the answer is "yes" for all question
this program would otherwise ask
-q, --quiet                  suppress progress percentage information
-v, --verbose                be verbose
-x, --ubi-ver=<num>          UBI version number to put to EC headers
(default is 1)
-h, -?, --help               print help message
-V, --version                print program version

使用实例
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
UBIFS学习笔记之一(查看打印信息)
ubifs 操作实例
ubi层次
ubifs制作
IPC启动打印过程
Tiny6410 关于制作ubifs文件系统映像
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服