diff options
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-x | scripts/poky-qemu-internal | 25 |
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 |
51 | fi | 51 | fi |
52 | 52 | ||
53 | if [ "$MACHINE" != "qemuarm" -a "$MACHINE" != "qemux86" -a "$MACHINE" != "akita" ]; then | 53 | if [ "$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 |
56 | fi | 56 | fi |
@@ -91,23 +91,22 @@ fi | |||
91 | 91 | ||
92 | if [ "$MACHINE" = "spitz" ]; then | 92 | if [ "$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 | ||
106 | fi | 104 | fi |
107 | 105 | ||
108 | if [ "$MACHINE" = "akita" ]; then | 106 | if [ "$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 |