]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/commitdiff
sdcard_image bbclass: move back to 2GB images, clarify LOOPDEV* usage
authorKoen Kooi <koen@dominion.thruhere.net>
Fri, 14 Oct 2011 10:37:10 +0000 (12:37 +0200)
committerKoen Kooi <koen@dominion.thruhere.net>
Fri, 14 Oct 2011 10:37:10 +0000 (12:37 +0200)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
classes/sdcard_image.bbclass

index 9aed4f846b40391772206f373d9881961c0faf47..be7ab3b98209495c2eaa2033f48f4e64922a0882 100644 (file)
@@ -7,6 +7,7 @@ IMAGE_FSTYPES_append = " tar.bz2 sdimg"
 LOSETUP ?= "/sbin/losetup"
 
 # Since these need to go in /etc/fstab we can hardcode them
 LOSETUP ?= "/sbin/losetup"
 
 # Since these need to go in /etc/fstab we can hardcode them
+# Since the vars are weakly assigned, you can override them from your local.conf
 LOOPDEV ?= "/dev/loop1"
 LOOPDEV_BOOT ?= "/dev/loop2"
 LOOPDEV_FS ?= "/dev/loop3"
 LOOPDEV ?= "/dev/loop1"
 LOOPDEV_BOOT ?= "/dev/loop2"
 LOOPDEV_FS ?= "/dev/loop3"
@@ -28,7 +29,7 @@ IMAGE_CMD_sdimg () {
 
        # If an SD image is already present, reuse and reformat it
        if [ ! -e ${SDIMG} ] ; then
 
        # If an SD image is already present, reuse and reformat it
        if [ ! -e ${SDIMG} ] ; then
-               dd if=/dev/zero of=${SDIMG} bs=$(echo '255 * 63 * 512' | bc) count=444
+               dd if=/dev/zero of=${SDIMG} bs=$(echo '255 * 63 * 512' | bc) count=222
        fi
 
        ${LOSETUP} ${LOOPDEV} ${SDIMG}
        fi
 
        ${LOSETUP} ${LOOPDEV} ${SDIMG}