diff options
author | Schrempf Frieder <frieder.schrempf@exceet.de> | 2015-10-01 12:40:16 +0000 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2015-10-02 19:33:15 -0300 |
commit | e76622d2b89952f817005ca0bf3575170aaaa7f9 (patch) | |
tree | 592f7513aafc934eb77137139ee6651897090021 /classes | |
parent | 0ad570270d47a592dd71f9af66362112874ddf28 (diff) | |
download | meta-fsl-arm-e76622d2b89952f817005ca0bf3575170aaaa7f9.tar.gz |
image_types_fsl.bbclass: make mkfs.vfat use FAT32 in all cases
as otherwise FAT16 might be used, which seems quite outdated and can
cause issues in certain environments (e.g. older versions of U-Boot)
Change-Id: I2d89ad235084c4a1289fae180df043a2f9e05e63
Signed-off-by: Frieder Schrempf <frieder.schrempf@exceet.de>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_types_fsl.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index dba2c13..80722d6 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass | |||
@@ -153,8 +153,9 @@ generate_imx_sdcard () { | |||
153 | # Create boot partition image | 153 | # Create boot partition image |
154 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ | 154 | BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ |
155 | | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }') | 155 | | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }') |
156 | rm -f ${WORKDIR}/boot.img | 156 | rm -f ${WORKDIR}/boot.img |
157 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS | 157 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -F 32 -C ${WORKDIR}/boot.img $BOOT_BLOCKS |
158 | |||
158 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE} | 159 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE} |
159 | 160 | ||
160 | # Copy boot scripts | 161 | # Copy boot scripts |
@@ -258,7 +259,7 @@ generate_mxs_sdcard () { | |||
258 | | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }') | 259 | | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }') |
259 | 260 | ||
260 | rm -f ${WORKDIR}/boot.img | 261 | rm -f ${WORKDIR}/boot.img |
261 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS | 262 | mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -F 32 -C ${WORKDIR}/boot.img $BOOT_BLOCKS |
262 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE} | 263 | mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE} |
263 | if test -n "${KERNEL_DEVICETREE}"; then | 264 | if test -n "${KERNEL_DEVICETREE}"; then |
264 | for DTS_FILE in ${KERNEL_DEVICETREE}; do | 265 | for DTS_FILE in ${KERNEL_DEVICETREE}; do |