summaryrefslogtreecommitdiffstats
path: root/classes/sdcard_image.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/sdcard_image.bbclass')
-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 {