From: Andrei Gherzan Date: Fri, 18 May 2012 21:46:03 +0000 (+0300) Subject: image_types_fsl: Fix the size of the created file fs with mkfs.vfat X-Git-Tag: 2.1~1830^2 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=92345adef0b26ab290fff45fa596f78910e0e7d9;p=meta-freescale.git image_types_fsl: Fix the size of the created file fs with mkfs.vfat It looks like mkfs.vfat is using 1024B block size. The returned value of BOOT_BLOCKS was in blocks of 512B. This needs to be changed in blocks of 1024B. Signed-off-by: Andrei Gherzan --- diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index daea8ce1..da443924 100644 --- a/meta-fsl-arm/classes/image_types_fsl.bbclass +++ b/meta-fsl-arm/classes/image_types_fsl.bbclass @@ -77,7 +77,7 @@ generate_imx_sdcard () { esac BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ - | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 512 }') + | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }') mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage @@ -122,7 +122,7 @@ generate_mxs_sdcard () { esac BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ - | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 512 }') + | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }') mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage