After calculating the arguments for mkfs.ubifs
and ubinize
, which are used
in the creation of the UBI file system, the final values need to 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 = 128K - 64bytes - 64 bytes = 130944 bytes |
|
Specifies maximum file-system size in logical erase blocks
max-leb-cnt/-c = QSPI ubifs partition size÷(division) leb-size = 50MB ÷ 130944 bytes = 400 bytes |
The final expanded values for
mkfs.ubifs
arguments
are-m 2 -e 130944 -c 400
Calculating ubinize Arguments
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 128KiB.
-peb-size / -p = 128 Kbytes . The SPI datasheet or
command from u-boot terminal provide this value. |
|
Tells ubinize that the flash supports sub-pages. This should not be more that 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
128KB erase size