diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2010-07-09 14:26:43 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-15 11:19:10 +0100 |
| commit | 21949128eb6e8daf8308e29c19904288f9e341ef (patch) | |
| tree | 6d6ff188497e3c18cf0f5d48ffe25ac7945c72cb /scripts/runqemu | |
| parent | 88dd324d41b9924fe25f3ffd34f779634f9c145f (diff) | |
| download | poky-21949128eb6e8daf8308e29c19904288f9e341ef.tar.gz | |
qemu-scripts: Add support for mips and powerpc machines, update qemuarm
For mips, the malta platform emulates a cirrus chipset. With the udpated
2.6.34 kernel options, we can now enable framebuffer boot for
the qemumips platform.
We need to pass a valid cpu (603e) and do a -nographic boot to
make it all the way to a prompt so graphics is disabled for now
for ppc.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'scripts/runqemu')
| -rwxr-xr-x | scripts/runqemu | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 5b44402579..25d30c98a9 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
| @@ -102,6 +102,32 @@ if [ "$MACHINE" = "qemuarm" ]; then | |||
| 102 | fi | 102 | fi |
| 103 | fi | 103 | fi |
| 104 | 104 | ||
| 105 | if [ "$MACHINE" = "qemumips" ]; then | ||
| 106 | if [ "x$ZIMAGE" = "x" ]; then | ||
| 107 | ZIMAGE=$BUILDDIR/tmp/deploy/images/vmlinux.bin-$MACHINE.bin | ||
| 108 | fi | ||
| 109 | if [ "$TYPE" = "ext3" ]; then | ||
| 110 | if [ "x$HDIMAGE" = "x" ]; then | ||
| 111 | T=$BUILDDIR/tmp/deploy/images | ||
| 112 | findimage $T $MACHINE ext3 "poky-image-sdk poky-image-sato poky-image-minimal" | ||
| 113 | fi | ||
| 114 | fi | ||
| 115 | CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr | ||
| 116 | fi | ||
| 117 | |||
| 118 | if [ "$MACHINE" = "qemuppc" ]; then | ||
| 119 | if [ "x$ZIMAGE" = "x" ]; then | ||
| 120 | ZIMAGE=$BUILDDIR/tmp/deploy/images/zImage-$MACHINE.bin | ||
| 121 | fi | ||
| 122 | if [ "$TYPE" = "ext3" ]; then | ||
| 123 | if [ "x$HDIMAGE" = "x" ]; then | ||
| 124 | T=$BUILDDIR/tmp/deploy/images | ||
| 125 | findimage $T $MACHINE ext3 "poky-image-sdk poky-image-sato poky-image-minimal" | ||
| 126 | fi | ||
| 127 | fi | ||
| 128 | CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr | ||
| 129 | fi | ||
| 130 | |||
| 105 | if [ "$MACHINE" = "spitz" ]; then | 131 | if [ "$MACHINE" = "spitz" ]; then |
| 106 | if [ "$TYPE" = "ext3" ]; then | 132 | if [ "$TYPE" = "ext3" ]; then |
| 107 | if [ "x$HDIMAGE" = "x" ]; then | 133 | if [ "x$HDIMAGE" = "x" ]; then |
| @@ -144,6 +170,8 @@ if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o | |||
| 144 | TARGET_SYS="arm-poky-linux" | 170 | TARGET_SYS="arm-poky-linux" |
| 145 | elif [ "$MACHINE" = "qemux86" ]; then | 171 | elif [ "$MACHINE" = "qemux86" ]; then |
| 146 | TARGET_SYS="i586-poky-linux" | 172 | TARGET_SYS="i586-poky-linux" |
| 173 | elif [ "$MACHINE" = "qemumips" ]; then | ||
| 174 | TARGET_SYS="mips-poky-linux" | ||
| 147 | fi | 175 | fi |
| 148 | 176 | ||
| 149 | if [ ! -e $CROSSPATH/$TARGET_SYS/bin/cc ]; then | 177 | if [ ! -e $CROSSPATH/$TARGET_SYS/bin/cc ]; then |
