summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu-internal
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-01-30 12:23:57 +0000
committerRichard Purdie <richard@openedhand.com>2007-01-30 12:23:57 +0000
commit3cce9ba903a35dce67c08a8344acd52a3eae3e41 (patch)
treee9f97d39fa62fe55ccb267381507dbd0fd8ece47 /scripts/poky-qemu-internal
parent9604533009f19b8deadb827da9bd957cf75d67ab (diff)
downloadpoky-3cce9ba903a35dce67c08a8344acd52a3eae3e41.tar.gz
scripts: Add support to scripts for spitz images
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1216 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-xscripts/poky-qemu-internal25
1 files changed, 12 insertions, 13 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal
index ab4ee5e616..4149e9e8a9 100755
--- a/scripts/poky-qemu-internal
+++ b/scripts/poky-qemu-internal
@@ -50,7 +50,7 @@ if [ ! -f "$ZIMAGE" ]; then
50 exit 1 50 exit 1
51fi 51fi
52 52
53if [ "$MACHINE" != "qemuarm" -a "$MACHINE" != "qemux86" -a "$MACHINE" != "akita" ]; then 53if [ "$MACHINE" != "qemuarm" -a "$MACHINE" != "qemux86" -a "$MACHINE" != "akita" -a "$MACHINE" != "spitz" ]; then
54 echo "Error, unsupported machine type $MACHINE" 54 echo "Error, unsupported machine type $MACHINE"
55 exit 1 55 exit 1
56fi 56fi
@@ -91,23 +91,22 @@ fi
91 91
92if [ "$MACHINE" = "spitz" ]; then 92if [ "$MACHINE" = "spitz" ]; then
93 QEMU=`which qemu-system-arm` 93 QEMU=`which qemu-system-arm`
94# QEMU=/usr/local/bin/qemu-system-arm 94 if [ "$TYPE" = "ext3" ]; then
95# if [ "$TYPE" = "ext2" ]; then 95 echo $HDIMAGE
96# if [ "x$HDIMAGE" = "x" ]; then 96 HDIMAGE=`readlink -f $HDIMAGE`
97# HDIMAGE=`readlink -f $BUILDDIR/tmp/deploy/images/oh-image-sdk-spitz.ext2` 97 echo $HDIMAGE
98# if [ ! -e $HDIMAGE.mbr ]; then 98 if [ ! -e "$HDIMAGE.qemudisk" ]; then
99# cp $OEROOT/mbr.bin $HDIMAGE.mbr 99 echo "Adding a partition table to the ext3 image for use by QEMU, please wait..."
100# cat $HDIMAGE >> $HDIMAGE.mbr 100 poky-addptable2image $HDIMAGE $HDIMAGE.qemudisk
101# fi 101 fi
102# HDIMAGE=$BUILDDIR/tmp/deploy/images/hdaimage.bin 102 QEMUOPTIONS="$QEMU_NETWORK_CMD -M spitz -hda $HDIMAGE.qemudisk -vertical"
103# fi 103 fi
104# QEMUOPTIONS="-append \"root=/dev/sda mem=$QEMU_MEMORY\" $QEMU_NETWORK_CMD -M spitz -hda $HDIMAGE"
105# fi
106fi 104fi
107 105
108if [ "$MACHINE" = "akita" ]; then 106if [ "$MACHINE" = "akita" ]; then
109 QEMU=`which qemu-system-arm` 107 QEMU=`which qemu-system-arm`
110 if [ "$TYPE" = "jffs2" ]; then 108 if [ "$TYPE" = "jffs2" ]; then
109 HDIMAGE=`readlink -f $HDIMAGE`
111 if [ ! -e "$HDIMAGE.qemuflash" ]; then 110 if [ ! -e "$HDIMAGE.qemuflash" ]; then
112 echo "Converting raw image into flash image format for use by QEMU, please wait..." 111 echo "Converting raw image into flash image format for use by QEMU, please wait..."
113 raw2flash.akita < $HDIMAGE > $HDIMAGE.qemuflash 112 raw2flash.akita < $HDIMAGE > $HDIMAGE.qemuflash