summaryrefslogtreecommitdiffstats
path: root/recipes/mkcard/files/mkcard.sh
diff options
context:
space:
mode:
authorKalle Viironen <kalle.viironen@digia.com>2014-04-15 15:13:33 +0300
committerKalle Viironen <kalle.viironen@digia.com>2014-04-15 15:13:40 +0300
commitbfb97bc3cc517c42647f5f8b1308bb7b1f4c76f1 (patch)
tree534bfaffc99f288f395297c625e284fea6e50401 /recipes/mkcard/files/mkcard.sh
parenta68e1ea9b2904f7c69330e534da877cf19376219 (diff)
parent03be9b83d45659d0d98fa1bf69853e0aa297ed32 (diff)
downloadmeta-boot2qt-QtEE_v2.1.0.tar.gz
Merge branch 'stable' into releaseQtEE_v2.1.0
* stable: wpa-supplicant: include headers and sources for external usage bootfs: need to use fakeroot for tar'ing sdk: include bluez4-dev package to sdk Create boot.tar.gz as part of the image build image: include CA certificates to image adbd: use network connection in imx53qsb sdk: libcap is required for QtWebEngine Include licenses to the image adbd: make switching between usb and ethernet easier use package groups for image content Create only tar.gz image type Change from dylan to dora brach in README mkcard: remove recipe for mkcard Change-Id: Id56ca219d05f2f833a4de3fc3ca057c5cf50a562
Diffstat (limited to 'recipes/mkcard/files/mkcard.sh')
-rwxr-xr-xrecipes/mkcard/files/mkcard.sh62
1 files changed, 0 insertions, 62 deletions
diff --git a/recipes/mkcard/files/mkcard.sh b/recipes/mkcard/files/mkcard.sh
deleted file mode 100755
index e75a176..0000000
--- a/recipes/mkcard/files/mkcard.sh
+++ /dev/null
@@ -1,62 +0,0 @@
1#! /bin/sh
2# mkcard.sh v0.5
3# (c) Copyright 2009 Graeme Gregory <dp@xora.org.uk>
4# Licensed under terms of GPLv2
5#
6# Parts of the procudure base on the work of Denys Dmytriyenko
7# http://wiki.omap.com/index.php/MMC_Boot_Format
8
9export LC_ALL=C
10
11if [ $# -ne 1 ]; then
12 echo "Usage: $0 <drive>"
13 exit 1;
14fi
15
16DRIVE=$1
17
18dd if=/dev/zero of=$DRIVE bs=1024 count=1024
19
20SIZE=`fdisk -l $DRIVE | grep Disk | grep bytes | awk '{print $5}'`
21
22echo DISK SIZE - $SIZE bytes
23
24CYLINDERS=`echo $SIZE/255/63/512 | bc`
25
26echo CYLINDERS - $CYLINDERS
27
28{
29echo ,9,0x0C,*
30echo ,,,-
31} | sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE
32
33sleep 1
34
35# handle various device names.
36# note something like fdisk -l /dev/loop0 | egrep -E '^/dev' | cut -d' ' -f1
37# won't work due to https://bugzilla.redhat.com/show_bug.cgi?id=649572
38
39PARTITION1=${DRIVE}1
40if [ ! -b ${PARTITION1} ]; then
41 PARTITION1=${DRIVE}p1
42fi
43
44PARTITION2=${DRIVE}2
45if [ ! -b ${PARTITION2} ]; then
46 PARTITION2=${DRIVE}p2
47fi
48
49# now make partitions.
50if [ -b ${PARTITION1} ]; then
51 umount ${PARTITION1}
52 mkfs.vfat -F 32 -n "boot" ${PARTITION1}
53else
54 echo "Cant find boot partition in /dev"
55fi
56
57if [ -b ${PARITION2} ]; then
58 umount ${PARTITION2}
59 mke2fs -t ext3 -j -L "rootfs" ${PARTITION2}
60else
61 echo "Cant find rootfs partition in /dev"
62fi