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/poky-qemu-internal | |
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/poky-qemu-internal')
-rwxr-xr-x | scripts/poky-qemu-internal | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index 11178a7b50..8e1ffcf248 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal | |||
@@ -57,6 +57,8 @@ fi | |||
57 | 57 | ||
58 | case "$MACHINE" in | 58 | case "$MACHINE" in |
59 | "qemuarm") ;; | 59 | "qemuarm") ;; |
60 | "qemumips") ;; | ||
61 | "qemuppc") ;; | ||
60 | "qemuarmv6") ;; | 62 | "qemuarmv6") ;; |
61 | "qemuarmv7") ;; | 63 | "qemuarmv7") ;; |
62 | "qemux86") ;; | 64 | "qemux86") ;; |
@@ -82,9 +84,11 @@ fi | |||
82 | 84 | ||
83 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "qemuarmv6" -o "$MACHINE" = "qemuarmv7" ]; then | 85 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "qemuarmv6" -o "$MACHINE" = "qemuarmv7" ]; then |
84 | QEMU=qemu-system-arm | 86 | QEMU=qemu-system-arm |
87 | MACHINE_SUBTYPE=versatilepb | ||
88 | QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS" | ||
85 | # QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -force-pointer" | 89 | # QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -force-pointer" |
86 | if [ "$TYPE" = "ext3" ]; then | 90 | if [ "$TYPE" = "ext3" ]; then |
87 | KERNCMDLINE="root=/dev/sda console=ttyAMA0 console=tty0 $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" | 91 | KERNCMDLINE="root=/dev/sda console=ttyAMA0,115200 console=tty $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY highres=off" |
88 | QEMUOPTIONS="$QEMU_NETWORK_CMD -M versatilepb -hda $HDIMAGE -no-reboot $QEMU_UI_OPTIONS" | 92 | QEMUOPTIONS="$QEMU_NETWORK_CMD -M versatilepb -hda $HDIMAGE -no-reboot $QEMU_UI_OPTIONS" |
89 | fi | 93 | fi |
90 | if [ "$TYPE" = "nfs" ]; then | 94 | if [ "$TYPE" = "nfs" ]; then |
@@ -140,6 +144,29 @@ if [ "$MACHINE" = "spitz" ]; then | |||
140 | fi | 144 | fi |
141 | fi | 145 | fi |
142 | 146 | ||
147 | if [ "$MACHINE" = "qemumips" ]; then | ||
148 | QEMU=qemu-system-mips | ||
149 | MACHINE_SUBTYPE=malta | ||
150 | QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -vga cirrus" | ||
151 | if [ "$TYPE" = "ext3" ]; then | ||
152 | #KERNCMDLINE="root=/dev/hda console=ttyS0 console=tty0 $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" | ||
153 | KERNCMDLINE="root=/dev/hda console=ttyS0 console=tty $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" | ||
154 | QEMUOPTIONS="$QEMU_NETWORK_CMD -M $MACHINE_SUBTYPE -hda $HDIMAGE -no-reboot $QEMU_UI_OPTIONS" | ||
155 | fi | ||
156 | fi | ||
157 | |||
158 | if [ "$MACHINE" = "qemuppc" ]; then | ||
159 | QEMU=qemu-system-ppc | ||
160 | MACHINE_SUBTYPE=prep | ||
161 | CPU_SUBTYPE=603e | ||
162 | BIOS=powerpc_rom.bin | ||
163 | QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -nographic" | ||
164 | if [ "$TYPE" = "ext3" ]; then | ||
165 | KERNCMDLINE="root=/dev/hda console=ttyS0 console=tty0 $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" | ||
166 | QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE -M $MACHINE_SUBTYPE -bios $BIOS -hda $HDIMAGE -no-reboot $QEMU_UI_OPTIONS" | ||
167 | fi | ||
168 | fi | ||
169 | |||
143 | if [ "$MACHINE" = "akita" ]; then | 170 | if [ "$MACHINE" = "akita" ]; then |
144 | QEMU=qemu-system-arm | 171 | QEMU=qemu-system-arm |
145 | if [ "$TYPE" = "jffs2" ]; then | 172 | if [ "$TYPE" = "jffs2" ]; then |