summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu-internal
diff options
context:
space:
mode:
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