After calculating the arguments for mkfs.ubifs
and ubinize
, which are used
in the creation of the UBI file system, the final values must be added to the petalinux-config
options.
Calculating mkfs.ubifs Arguments
Argument | Description |
---|---|
|
The minimum I/O unit. Values are static based on the Flash type.
|
|
The logical erase block size of the UBI volume. leb-size/-e = PEB size - EC - VID = 128 K - 64 B - 64 B = 130944 B |
|
Specifies maximum file-system size in logical erase blocks
|
The final expanded values for
mkfs.ubifs
arguments
are-m 2 -e 130944 -c 400
mkfs.ubifs Arguments
Argument | Description |
---|---|
|
The minimum I/O unit. The following values are
static based on the Flash type.
|
|
Tells ubinize that the physical erase block size of the flash chip
for which the UBI image is created is 128 KiB. -peb-size / -p = 128
KB. The SPI datasheet or command from the U-Boot terminal provide
this value.
|
|
Tells ubinize that the flash supports sub-pages. This should not be more than the min-io-size. --sub-page-size / -s = 1 based on the min-io-size. |
-m 2 -p 128KiB -s 1
Note: The specified
mkfs.ubifs
arguments and ubinize
arguments are based on QSPI
128 KB erase size.