]> code.ossystems Code Review - meta-freescale.git/commitdiff
image_types_fsl.bbclass: make mkfs.vfat use FAT32 in all cases
authorSchrempf Frieder <frieder.schrempf@exceet.de>
Thu, 1 Oct 2015 12:40:16 +0000 (12:40 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:20 +0000 (15:03 -0300)
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>
classes/image_types_fsl.bbclass

index dba2c1330def136d15327a0c17d78572e5b4e841..80722d687ac00fc9b1704f5113a25c13f1b585f3 100644 (file)
@@ -153,8 +153,9 @@ generate_imx_sdcard () {
        # Create boot partition image
        BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \
                          | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }')
-        rm -f ${WORKDIR}/boot.img
-       mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
+       rm -f ${WORKDIR}/boot.img
+       mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -F 32 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
+
        mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE}
 
        # Copy boot scripts
@@ -258,7 +259,7 @@ generate_mxs_sdcard () {
                | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }')
 
                rm -f ${WORKDIR}/boot.img
-               mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
+               mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -F 32 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
                mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE}
                if test -n "${KERNEL_DEVICETREE}"; then
                        for DTS_FILE in ${KERNEL_DEVICETREE}; do