summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorSchrempf Frieder <frieder.schrempf@exceet.de>2015-10-01 12:40:16 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2016-04-19 15:03:20 -0300
commit1c62a8f1dfe90433b8823ce71866a9824702e1c1 (patch)
tree31ed0fc7c6487d57abc2329e9252ea5f80ff9c34 /classes
parent4a2a2dadfe6ac0a7cd3feccae9467c93d9718c62 (diff)
downloadmeta-freescale-1c62a8f1dfe90433b8823ce71866a9824702e1c1.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.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index dba2c133..80722d68 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