summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorJason Kridner <jdk@ti.com>2011-10-03 16:48:26 -0400
committerKoen Kooi <koen@dominion.thruhere.net>2011-10-08 21:07:52 +0200
commit4ab77fb9195f493c41d3d110903f2ec8234e2fd0 (patch)
treea2d9222c9248c676fb3e7038fdda21e46184f48f /classes
parent5c52cbe6a25ea3010731795bb1e1c5d94123eef0 (diff)
downloadmeta-ti-4ab77fb9195f493c41d3d110903f2ec8234e2fd0.tar.gz
classes: sdcardimage: move to 4GiB image
The card image size should be a multiple of clusters and should reserve space smaller than the card. Signed-off-by: Jason Kridner <jdk@ti.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'classes')
-rw-r--r--classes/sdcard_image.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass
index b3885df6..640c6a4a 100644
--- a/classes/sdcard_image.bbclass
+++ b/classes/sdcard_image.bbclass
@@ -10,12 +10,12 @@ IMAGE_CMD_sdimg () {
10 losetup -d $loop_dev || true 10 losetup -d $loop_dev || true
11 done 11 done
12 12
13 dd if=/dev/zero of=${SDIMG} bs=4k seek=$(echo '256 * 1024' | bc) count=1 13 dd if=/dev/zero of=${SDIMG} bs=$(echo '255 * 63 * 512' | bc) count=444
14 losetup -f ${SDIMG} 14 losetup -f ${SDIMG}
15 LOOPDEV=$(losetup -j ${SDIMG} -o 0 | cut -d ":" -f 1) 15 LOOPDEV=$(losetup -j ${SDIMG} -o 0 | cut -d ":" -f 1)
16 16
17 # Create partition table 17 # Create partition table
18 dd if=/dev/zero of=${LOOPDEV} bs=1024 count=1024 18 #dd if=/dev/zero of=${LOOPDEV} bs=1024 count=1024
19 SIZE=`fdisk -l ${LOOPDEV} | grep Disk | grep bytes | awk '{print $5}'` 19 SIZE=`fdisk -l ${LOOPDEV} | grep Disk | grep bytes | awk '{print $5}'`
20 CYLINDERS=`echo $SIZE/255/63/512 | bc` 20 CYLINDERS=`echo $SIZE/255/63/512 | bc`
21 { 21 {