diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-05-19 00:46:03 +0300 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2012-05-19 01:09:02 +0300 |
commit | 92345adef0b26ab290fff45fa596f78910e0e7d9 (patch) | |
tree | a79ca329a4e7517061d2c3537b52ec44c76fd895 | |
parent | dfd5e77b477083b8627e9d7e0eaabf966fcc72fe (diff) | |
download | meta-freescale-92345adef0b26ab290fff45fa596f78910e0e7d9.tar.gz |
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 <andrei@gherzan.ro>
-rw-r--r-- | meta-fsl-arm/classes/image_types_fsl.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index daea8ce1e..da4439242 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 () { | |||
77 | esac | 77 | esac |
78 | 78 | ||
79 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ | 79 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ |
80 | | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 512 }') | 80 | | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }') |
81 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS | 81 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS |
82 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage | 82 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage |
83 | 83 | ||
@@ -122,7 +122,7 @@ generate_mxs_sdcard () { | |||
122 | esac | 122 | esac |
123 | 123 | ||
124 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ | 124 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ |
125 | | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 512 }') | 125 | | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }') |
126 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS | 126 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS |
127 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage | 127 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage |
128 | 128 | ||