From: Jeremy Stashluk Date: Mon, 6 Aug 2012 15:54:26 +0000 (-0400) Subject: image_types_fsl.bbclass: Calculate BOOT_BLOCKS for new boot partition num X-Git-Tag: 2.1~1731^2 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=0dc7b9bba4486352207718fd5506393a639fecb3;p=meta-freescale.git image_types_fsl.bbclass: Calculate BOOT_BLOCKS for new boot partition num The empty 1K at the beginning of the disk is no longer a partition, so the numbers reported by parted have shifted by one. Signed-off-by: Jeremy Stashluk Signed-off-by: Otavio Salvador --- diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index 58f5249e..1ed817fc 100644 --- a/meta-fsl-arm/classes/image_types_fsl.bbclass +++ b/meta-fsl-arm/classes/image_types_fsl.bbclass @@ -80,7 +80,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)) / 1024 }') + | awk '/ 1 / { 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