From a3226f913dfde6cae0ce165e2303cbc8933a8007 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 14 Oct 2011 12:37:10 +0200 Subject: sdcard_image bbclass: move back to 2GB images, clarify LOOPDEV* usage Signed-off-by: Koen Kooi --- classes/sdcard_image.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass index 9aed4f84..be7ab3b9 100644 --- a/classes/sdcard_image.bbclass +++ b/classes/sdcard_image.bbclass @@ -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 +# 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" @@ -28,7 +29,7 @@ IMAGE_CMD_sdimg () { # 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} -- cgit v1.2.3-54-g00ecf