imx6ul: ubifs: increase max leb count for linux

The current value only allows partitions of up to 8 MiB, which is not
enough for the 0x04 variant (which uses a linux partition of 24 MiB by
default).

This new value allows for up to 32 MiB (assuming 128 KiB erase block size).

Also add comments explaining the -c value and maximum partition sizes
supported.

https://jira.digi.com/browse/DEL-4971

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
(cherry picked from commit 608b001036)
This commit is contained in:
Jose Diaz de Grenu 2017-08-28 17:26:17 +02:00 committed by Francisco Gil
parent 64fd78de0f
commit 47ece15f5d
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ MACHINE_FIRMWARE_append = " ${@base_conditional('HAVE_WIFI', '1', 'firmware-qual
KERNEL_IMAGETYPE = "zImage"
# mkfs.ubifs parameters for boot partition (the one holding kernel and device tree files)
MKUBIFS_BOOT_ARGS ?= "-m 2048 -e 126976 -c 127"
# Max LEB count (-c 255) calculated for a partition of up to 32 MiB considering 128 KiB erase-block size.
MKUBIFS_BOOT_ARGS ?= "-m 2048 -e 126976 -c 255"
# mkfs.ubifs parameters for rootfs partition
# Max LEB count (-c 8191) calculated for a partition of up to 1 GiB considering 128 KiB erase-block size.
MKUBIFS_ARGS ?= "-m 2048 -e 126976 -c 8191"