Difference between revisions of "Template:ROM-Maker-lite mk-fsimg"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
rom-maker-lite是通过./tools/mk_fsimg.sh脚本来生成分区文件(boot.img、rootfs.img)的,mk_fsimg.sh用法如下:
+
Actually the rom-maker-lite utility calls the "./tools/mk_fsimg.sh" script to generate a boot.img and rootfs.img. Here are the popular parameters the "mk_fsimg.sh" script usually takes:
 
::{| class="wikitable"
 
::{| class="wikitable"
 
|-
 
|-
|参数||说明
+
|Parameter||Comment
 
|-
 
|-
| 参数1 ||  
+
| Parameter1 ||  
指定分区格式,支持vfat/ext4/exfat
+
Specifies a partition format. It currently supports vfat/ext4/exfat
 
|-
 
|-
| 参数2 ||
+
| Parameter 2 ||
指定输出文件;
+
Specifies an output file;
 
|-
 
|-
| 参数3 ||
+
| Parameter 3 ||
指定输入目录;
+
Specifies an input directory;
 
|-
 
|-
| 参数4 ||
+
| Parameter 4 ||
指定输出文件的大小,单位是MByte,该值必须大于输入目录,且小于partmap.txt里对应分区的大小(即length字段);<br>
+
Specifies an output file's size and the unit is MByte. This size should be greater than the input directory's size and less than the corresponding size specified(in "length") in the partmap.txt file;<br>
通常情况下由于需要保存文件系统的信息,需要比输入目录大一些;<br>
+
Since some file system information needs to be included in an image file this size will be greater than the input directory's size;<br>
 
|-
 
|-
| 参数5 ||
+
| Parameter 5 ||
指定分区的标签;
+
Specifies a partition's tag;
 
|}
 
|}

Latest revision as of 09:25, 22 July 2019

Actually the rom-maker-lite utility calls the "./tools/mk_fsimg.sh" script to generate a boot.img and rootfs.img. Here are the popular parameters the "mk_fsimg.sh" script usually takes:

Parameter Comment
Parameter1

Specifies a partition format. It currently supports vfat/ext4/exfat

Parameter 2

Specifies an output file;

Parameter 3

Specifies an input directory;

Parameter 4

Specifies an output file's size and the unit is MByte. This size should be greater than the input directory's size and less than the corresponding size specified(in "length") in the partmap.txt file;
Since some file system information needs to be included in an image file this size will be greater than the input directory's size;

Parameter 5

Specifies a partition's tag;