From 608b001036081ea01301ed517dea60cf674c48a4 Mon Sep 17 00:00:00 2001 From: Jose Diaz de Grenu Date: Mon, 28 Aug 2017 17:26:17 +0200 Subject: [PATCH] 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 --- meta-digi-arm/conf/machine/include/ccimx6ul.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta-digi-arm/conf/machine/include/ccimx6ul.inc b/meta-digi-arm/conf/machine/include/ccimx6ul.inc index 6c1d679fd..302bf54d9 100644 --- a/meta-digi-arm/conf/machine/include/ccimx6ul.inc +++ b/meta-digi-arm/conf/machine/include/ccimx6ul.inc @@ -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"