summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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