From 4c37cc8af65709b9f29a2bc9115bc5c4ef9b7464 Mon Sep 17 00:00:00 2001 From: Jeremy Stashluk Date: Mon, 6 Aug 2012 11:54:26 -0400 Subject: 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 --- classes/image_types_fsl.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index 58f5249..1ed817f 100644 --- a/classes/image_types_fsl.bbclass +++ b/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 -- cgit v1.2.3-54-g00ecf