summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSchrempf Frieder <frieder.schrempf@exceet.de>2015-10-01 12:40:16 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2015-10-06 08:41:26 -0300
commitf44bd2cc9fd55caaba9563184dafc60987b9cb68 (patch)
tree210a3da5494a8e34f959632ff1374a7079ab3856
parentf30b056c8f1af3f3122f94dbaa4698da5d620a41 (diff)
downloadmeta-fsl-arm-f44bd2cc9fd55caaba9563184dafc60987b9cb68.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>
-rw-r--r--classes/image_types_fsl.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index b542549..b9d880b 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -152,8 +152,9 @@ generate_imx_sdcard () {
152 # Create boot partition image 152 # Create boot partition image
153 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ 153 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \
154 | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }') 154 | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }')
155 rm -f ${WORKDIR}/boot.img 155 rm -f ${WORKDIR}/boot.img
156 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS 156 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -F 32 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
157
157 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE} 158 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE}
158 159
159 # Copy boot scripts 160 # Copy boot scripts
@@ -257,7 +258,7 @@ generate_mxs_sdcard () {
257 | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }') 258 | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }')
258 259
259 rm -f ${WORKDIR}/boot.img 260 rm -f ${WORKDIR}/boot.img
260 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS 261 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -F 32 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
261 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE} 262 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::/${KERNEL_IMAGETYPE}
262 if test -n "${KERNEL_DEVICETREE}"; then 263 if test -n "${KERNEL_DEVICETREE}"; then
263 for DTS_FILE in ${KERNEL_DEVICETREE}; do 264 for DTS_FILE in ${KERNEL_DEVICETREE}; do