QEMU command line

From Openmoko

(Difference between revisions)
Jump to: navigation, search
Line 5: Line 5:
 
  .PHONY: run-qemu-vnc
 
  .PHONY: run-qemu-vnc
 
  run-qemu-vnc: stamps/qemu build/qemu/openmoko/openmoko-sd.image
 
  run-qemu-vnc: stamps/qemu build/qemu/openmoko/openmoko-sd.image
   ( cd build/qemu && arm-softmmu/qemu-system-arm \
+
   ( cd build/qemu && arm-softmmu/<font color=blue>qemu-system-arm</font> \
 
    -M gta01 -m 130 -usb -show-cursor \
 
    -M gta01 -m 130 -usb -show-cursor \
 
  -vnc localhost:1 -monitor stdio \
 
  -vnc localhost:1 -monitor stdio \
Line 12: Line 12:
 
  -kernel openmoko/openmoko-kernel.bin )
 
  -kernel openmoko/openmoko-kernel.bin )
  
After typing make run-qemu-vnc you can open ssh and scp connections to the emulated phone, as described in [[OpenMoko under QEMU#Simple network connection with pppd|QEMU manual]].
+
(the executable is highlighted in blue). After typing make run-qemu-vnc you can open ssh and scp connections to the emulated phone, as described in [[OpenMoko under QEMU#Simple network connection with pppd|QEMU manual]].
  
 
[[Category:Developer software]]
 
[[Category:Developer software]]

Revision as of 11:18, 2 January 2008

The actual command line for starting the emulator may not be obvious if you use MokoMakefile command make run-qemu (or similar) to start it. However it is immediately visible in the Makefile in the root folder. If you need to start QEMU with options other than default, one of the ways is simply to create a new target, copy-pasting the run-qemu, later changing the target name (for instance, into run-qemu-vnc) and editing the options.

For instance, here is a target which opens the local connection to the virtual phone:

.PHONY: run-qemu-vnc
run-qemu-vnc: stamps/qemu build/qemu/openmoko/openmoko-sd.image
 	( cd build/qemu && arm-softmmu/qemu-system-arm \
	  	-M gta01 -m 130 -usb -show-cursor \
	 	-vnc localhost:1 -monitor stdio \
	 	-mtdblock openmoko/openmoko-flash.image \
	 	-sd openmoko/openmoko-sd.image \
	 	-kernel openmoko/openmoko-kernel.bin )

(the executable is highlighted in blue). After typing make run-qemu-vnc you can open ssh and scp connections to the emulated phone, as described in QEMU manual.

Personal tools

The actual command line for starting the emulator may not be obvious if you use MokoMakefile command make run-qemu (or similar) to start it. However it is immediately visible in the Makefile in the root folder. If you need to start QEMU with options other than default, one of the ways is simply to create a new target, copy-pasting the run-qemu, later changing the target name (for instance, into run-qemu-vnc) and editing the options.

For instance, here is a target which opens the local connection to the virtual phone:

.PHONY: run-qemu-vnc
run-qemu-vnc: stamps/qemu build/qemu/openmoko/openmoko-sd.image
 	( cd build/qemu && arm-softmmu/qemu-system-arm \
	  	-M gta01 -m 130 -usb -show-cursor \
	 	-vnc localhost:1 -monitor stdio \
	 	-mtdblock openmoko/openmoko-flash.image \
	 	-sd openmoko/openmoko-sd.image \
	 	-kernel openmoko/openmoko-kernel.bin )

After typing make run-qemu-vnc you can open ssh and scp connections to the emulated phone, as described in QEMU manual.