From ac8f7194f2b5896084a813d298ed486b4f479c91 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Thu, 6 Mar 2014 15:34:10 +0200 Subject: mkcard: remove recipe for mkcard mkcard.sh script is moved to b2qt-build-scripts, so that deployment of images is not dependent on the toolchain. Task-number: QTEE-434 Change-Id: If7a93d4e8065c38a1d7205ce29d11ca8fbf8d2cf Reviewed-by: Rainer Keller --- recipes/mkcard/files/mkcard.sh | 62 ------------------------------------------ 1 file changed, 62 deletions(-) delete mode 100755 recipes/mkcard/files/mkcard.sh (limited to 'recipes/mkcard/files/mkcard.sh') 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 @@ -#! /bin/sh -# mkcard.sh v0.5 -# (c) Copyright 2009 Graeme Gregory -# Licensed under terms of GPLv2 -# -# Parts of the procudure base on the work of Denys Dmytriyenko -# http://wiki.omap.com/index.php/MMC_Boot_Format - -export LC_ALL=C - -if [ $# -ne 1 ]; then - echo "Usage: $0 " - exit 1; -fi - -DRIVE=$1 - -dd if=/dev/zero of=$DRIVE bs=1024 count=1024 - -SIZE=`fdisk -l $DRIVE | grep Disk | grep bytes | awk '{print $5}'` - -echo DISK SIZE - $SIZE bytes - -CYLINDERS=`echo $SIZE/255/63/512 | bc` - -echo CYLINDERS - $CYLINDERS - -{ -echo ,9,0x0C,* -echo ,,,- -} | sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE - -sleep 1 - -# handle various device names. -# note something like fdisk -l /dev/loop0 | egrep -E '^/dev' | cut -d' ' -f1 -# won't work due to https://bugzilla.redhat.com/show_bug.cgi?id=649572 - -PARTITION1=${DRIVE}1 -if [ ! -b ${PARTITION1} ]; then - PARTITION1=${DRIVE}p1 -fi - -PARTITION2=${DRIVE}2 -if [ ! -b ${PARTITION2} ]; then - PARTITION2=${DRIVE}p2 -fi - -# now make partitions. -if [ -b ${PARTITION1} ]; then - umount ${PARTITION1} - mkfs.vfat -F 32 -n "boot" ${PARTITION1} -else - echo "Cant find boot partition in /dev" -fi - -if [ -b ${PARITION2} ]; then - umount ${PARTITION2} - mke2fs -t ext3 -j -L "rootfs" ${PARTITION2} -else - echo "Cant find rootfs partition in /dev" -fi -- cgit v1.2.3-54-g00ecf