diff options
author | Jeremy Stashluk <jstashluk@dekaresearch.com> | 2012-08-06 11:54:26 -0400 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-08-06 13:09:23 -0300 |
commit | 4c37cc8af65709b9f29a2bc9115bc5c4ef9b7464 (patch) | |
tree | 834159aea60e0a45b31cfebf608b830ee47d4d2b | |
parent | fbd6bf786fbc041682e02ffae98a8bb9052d6e1a (diff) | |
download | meta-fsl-arm-4c37cc8af65709b9f29a2bc9115bc5c4ef9b7464.tar.gz |
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 <jstashluk@dekaresearch.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | classes/image_types_fsl.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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 () { | |||
80 | esac | 80 | esac |
81 | 81 | ||
82 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ | 82 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ |
83 | | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }') | 83 | | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }') |
84 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS | 84 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS |
85 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage | 85 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage |
86 | 86 | ||