diff options
author | Richard Purdie <richard@openedhand.com> | 2008-01-09 14:14:12 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-01-09 14:14:12 +0000 |
commit | 4a7acb65f6fb783a5a40a7fec606795280cbf1fe (patch) | |
tree | 6d53a8e306e6430d1d2f99dc520f3db627a60c8a | |
parent | 0f1ddc5c32e59065c1b21e04743c6771b2f8ea33 (diff) | |
download | poky-4a7acb65f6fb783a5a40a7fec606795280cbf1fe.tar.gz |
scripts: Various tweaks/fixes for the qemu scripts
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3440 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rwxr-xr-x | scripts/poky-qemu-internal | 12 | ||||
-rwxr-xr-x | scripts/runqemu | 8 |
2 files changed, 11 insertions, 9 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index e715844af4..82e6a038df 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal | |||
@@ -60,7 +60,7 @@ fi | |||
60 | if [ "$MACHINE" = "qemuarm" ]; then | 60 | if [ "$MACHINE" = "qemuarm" ]; then |
61 | QEMU=`which qemu-system-arm` | 61 | QEMU=`which qemu-system-arm` |
62 | if [ "$TYPE" = "ext2" ]; then | 62 | if [ "$TYPE" = "ext2" ]; then |
63 | QEMUOPTIONS="-append \"root=/dev/sda console=ttyAMA0 console=tty0 mem=$QEMU_MEMORY\" $QEMU_NETWORK_CMD -M versatilepb -hda $HDIMAGE -usb -usbdevice wacom-tablet" | 63 | QEMUOPTIONS="-append 'root=/dev/sda console=ttyAMA0 console=tty0 mem=$QEMU_MEMORY' $QEMU_NETWORK_CMD -M versatilepb -hda $HDIMAGE -usb -usbdevice wacom-tablet" |
64 | fi | 64 | fi |
65 | if [ "$TYPE" = "nfs" ]; then | 65 | if [ "$TYPE" = "nfs" ]; then |
66 | if [ "x$HDIMAGE" = "x" ]; then | 66 | if [ "x$HDIMAGE" = "x" ]; then |
@@ -70,14 +70,14 @@ if [ "$MACHINE" = "qemuarm" ]; then | |||
70 | echo "Error, NFS mount point $HDIMAGE doesn't exist" | 70 | echo "Error, NFS mount point $HDIMAGE doesn't exist" |
71 | return | 71 | return |
72 | fi | 72 | fi |
73 | QEMUOPTIONS="-append \"root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD -M versatilepb" | 73 | QEMUOPTIONS="-append 'root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD' $QEMU_NETWORK_CMD -M versatilepb" |
74 | fi | 74 | fi |
75 | fi | 75 | fi |
76 | 76 | ||
77 | if [ "$MACHINE" = "qemux86" ]; then | 77 | if [ "$MACHINE" = "qemux86" ]; then |
78 | QEMU=`which qemu` | 78 | QEMU=`which qemu` |
79 | if [ "$TYPE" = "ext2" ]; then | 79 | if [ "$TYPE" = "ext2" ]; then |
80 | QEMUOPTIONS="-std-vga -append \"root=/dev/hda mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD -hda $HDIMAGE -usb -usbdevice wacom-tablet" | 80 | QEMUOPTIONS="-std-vga -append 'root=/dev/hda mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD' $QEMU_NETWORK_CMD -hda $HDIMAGE -usb -usbdevice wacom-tablet" |
81 | fi | 81 | fi |
82 | if [ "$TYPE" = "nfs" ]; then | 82 | if [ "$TYPE" = "nfs" ]; then |
83 | if [ "x$HDIMAGE" = "x" ]; then | 83 | if [ "x$HDIMAGE" = "x" ]; then |
@@ -87,7 +87,7 @@ if [ "$MACHINE" = "qemux86" ]; then | |||
87 | echo "Error, NFS mount point $HDIMAGE doesn't exist." | 87 | echo "Error, NFS mount point $HDIMAGE doesn't exist." |
88 | return | 88 | return |
89 | fi | 89 | fi |
90 | QEMUOPTIONS="-std-vga -append \"root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD\" $QEMU_NETWORK_CMD" | 90 | QEMUOPTIONS="-std-vga -append 'root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD' $QEMU_NETWORK_CMD" |
91 | fi | 91 | fi |
92 | fi | 92 | fi |
93 | 93 | ||
@@ -124,6 +124,4 @@ fi | |||
124 | 124 | ||
125 | echo "Running $QEMU using sudo..." | 125 | echo "Running $QEMU using sudo..." |
126 | echo "$QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS" | 126 | echo "$QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS" |
127 | sudo $QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS | 127 | sudo "$QEMU -kernel $ZIMAGE $QEMUOPTIONS $SERIALOPTS" |
128 | |||
129 | |||
diff --git a/scripts/runqemu b/scripts/runqemu index d3df26c48a..bc40b46745 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -62,7 +62,7 @@ if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o | |||
62 | if [ "x$ZIMAGE" = "x" ]; then | 62 | if [ "x$ZIMAGE" = "x" ]; then |
63 | ZIMAGE=$BUILDDIR/tmp/deploy/images/zImage-$MACHINE.bin | 63 | ZIMAGE=$BUILDDIR/tmp/deploy/images/zImage-$MACHINE.bin |
64 | fi | 64 | fi |
65 | CROSSPATH=$BUILDDIR/tmp/cross/arm-poky-linux/bin | 65 | CROSSPATH=$BUILDDIR/tmp/cross/arm-poky-linux-gnueabi/bin |
66 | fi | 66 | fi |
67 | 67 | ||
68 | if [ "$MACHINE" = "qemuarm" ]; then | 68 | if [ "$MACHINE" = "qemuarm" ]; then |
@@ -73,6 +73,8 @@ if [ "$MACHINE" = "qemuarm" ]; then | |||
73 | HDIMAGE="$T-sdk-qemuarm.ext2" | 73 | HDIMAGE="$T-sdk-qemuarm.ext2" |
74 | elif [ -e "$T-sato-qemuarm.ext2" ]; then | 74 | elif [ -e "$T-sato-qemuarm.ext2" ]; then |
75 | HDIMAGE="$T-sato-qemuarm.ext2" | 75 | HDIMAGE="$T-sato-qemuarm.ext2" |
76 | elif [ -e "$T-minimal-qemuarm.ext2" ]; then | ||
77 | HDIMAGE="$T-minimal-qemuarm.ext2" | ||
76 | fi | 78 | fi |
77 | fi | 79 | fi |
78 | fi | 80 | fi |
@@ -105,10 +107,12 @@ if [ "$MACHINE" = "qemux86" ]; then | |||
105 | HDIMAGE=$T-sdk-qemux86.ext2 | 107 | HDIMAGE=$T-sdk-qemux86.ext2 |
106 | elif [ -e "$T-sato-qemux86.ext2" ]; then | 108 | elif [ -e "$T-sato-qemux86.ext2" ]; then |
107 | HDIMAGE=$T-sato-qemux86.ext2 | 109 | HDIMAGE=$T-sato-qemux86.ext2 |
110 | elif [ -e "$T-minimal-qemux86.ext2" ]; then | ||
111 | HDIMAGE=$T-minimal-qemux86.ext2 | ||
108 | fi | 112 | fi |
109 | fi | 113 | fi |
110 | fi | 114 | fi |
111 | CROSSPATH=$BUILDDIR/tmp/cross/i586-poky-linux/bin | 115 | CROSSPATH=$BUILDDIR/tmp/cross/i586-poky-linux-gnueabi/bin |
112 | fi | 116 | fi |
113 | 117 | ||
114 | export PATH=$CROSSPATH:$PATH | 118 | export PATH=$CROSSPATH:$PATH |