summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@debian.org>2012-05-18 15:14:50 -0700
committerOtavio Salvador <otavio@debian.org>2012-05-18 15:14:50 -0700
commitc2f7eee342338333d14a99b3ee2d655042388568 (patch)
tree747a8098709f7704d6524a2c282733f6353d50f7
parent8bde88eea6ea7b03b25a48d1ac60787bf5ad67fc (diff)
parentf01fd5f9ee6270e47970cfa330ab7c2602faeb4e (diff)
downloadmeta-fsl-arm-c2f7eee342338333d14a99b3ee2d655042388568.tar.gz
Merge pull request #9 from agherzan/master
Some fixes in the class where the sd-image is generated
-rw-r--r--classes/image_types_fsl.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 8471da2..da44392 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -77,7 +77,7 @@ generate_imx_sdcard () {
77 esac 77 esac
78 78
79 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ 79 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \
80 | awk '/ 2 / { print substr($3, 1, length($3 -1)) / 512 }') 80 | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }')
81 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS 81 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
82 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage 82 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage
83 83
@@ -122,7 +122,7 @@ generate_mxs_sdcard () {
122 esac 122 esac
123 123
124 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ 124 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \
125 | awk '/ 2 / { print substr($3, 1, length($3 -1)) / 512 }') 125 | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 1024 }')
126 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS 126 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
127 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage 127 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage
128 128