summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan GUILLOT <jonathan@joggee.fr>2025-02-12 16:58:29 +0100
committerJonathan GUILLOT <jonathan@joggee.fr>2025-02-12 17:10:20 +0100
commit0ee7c736c7e07ce353e7f25ff514e9c459448103 (patch)
treecda17813d1ad7cf3a392511fec99e0550480e194
parent3bbf270c07c93d4e9b12d61e2cc762901c9cf0db (diff)
downloadmeta-freescale-0ee7c736c7e07ce353e7f25ff514e9c459448103.tar.gz
imx-imx-boot-bootpart.wks.in: Set fixed size for /boot partition
Using --size in the imx-imx-boot-bootpart.wks.in to set size of /boot partition does not result in a 256MiB partition as expected but in a ~332MiB one. Indeed, --size ensures --extra-space (default 10MiB) is added to actual data size and furthermore applies --overhead-factor (default 1.3) to the wanted size. This is exactly the case here as 256 * 1.3 = 332.8. Use --fixed-size instead to force the /boot partition to be exactly 256MiB just as it is indicated in the comments of this file. Consequently, the `do_image_wic` task will also fail if data copied in this partition are too large at creation. Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr>
-rw-r--r--wic/imx-imx-boot-bootpart.wks.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/wic/imx-imx-boot-bootpart.wks.in b/wic/imx-imx-boot-bootpart.wks.in
index e8e6e891..46a2a0a6 100644
--- a/wic/imx-imx-boot-bootpart.wks.in
+++ b/wic/imx-imx-boot-bootpart.wks.in
@@ -14,7 +14,7 @@
14# ${IMX_BOOT_SEEK} 32 or 33kiB, see reference manual 14# ${IMX_BOOT_SEEK} 32 or 33kiB, see reference manual
15# 15#
16part u-boot --source rawcopy --sourceparams="file=imx-boot.tagged" --ondisk mmcblk --no-table --align ${IMX_BOOT_SEEK} 16part u-boot --source rawcopy --sourceparams="file=imx-boot.tagged" --ondisk mmcblk --no-table --align ${IMX_BOOT_SEEK}
17part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 8192 --size 256 17part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 8192 --fixed-size 256
18part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 8192 18part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 8192
19 19
20bootloader --ptable msdos 20bootloader --ptable msdos