Meego Wiki
Views

SDK/Setup/More information

From MeeGo wiki
< SDK
Revision as of 08:27, 20 April 2011 by Wcwang (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Install kqemu accelerator for QEMU on 32-bit Windows system

Notice: The kqemu could only be used on 32-bit Windows. 64-bit Windows could not work with kqemu. You can not use emulator on 64-bit Windows. Use real device instead.

Download package from http://wiki.qemu.org/download/kqemu-1.4.0pre1.tar.gz

Get the kqemu.inf and kqemu.sys files from above package

For Windows XP system, right click the kqemu.inf file and select "install".

For Windows 7 or Windows Vista system, edit the kqemu.inf file to do below changes, and then right click the kqemu.inf, select "install".

  [DefaultInstall.NT] --> [DefaultInstall]
  [DefaultInstall.NT.Services] --> [DefaultInstall.Services]
  [Uninstall.NT] --> [Uninstall]
  [Uninstall.NT.Services] --> [Uninstall.Services]

Start the kqemu manually. Select Start > All Programs > Accessories, click right mouse button over Command Prompt, and select "Run as administrator". In Command Prompt, run the following command:

net start kqemu

You need to start kqemu again after you reboot the system.

More about QEMU Emulator

How to SSH into QEMU Image

Anytime MeeGo is running in QEMU, you can use SSH to connect to the image from another terminal on the host system.

  1. Launch QEMU with MeeGo image
  2. From a terminal on the host, connect to the running image
  3. $ ssh meego@127.0.0.1 -p 6666
    

Two user accounts are available in the MeeGo images:
User: meego Password: meego
User: root      Password: meego

Known issues about QEMU image and workarounds for them

  1. SSH into QEMU runtime as root user.
  2. edit /usr/sbin/meego-dm to add "sleep 5"
  3. sleep 5    # new added line
    shopt -s execfail
    
  1. SSH into QEMU runtime as root user.
  2. Invoke the following command:
  3. rm -rf /etc/ssh/*key*
    

For advanced users only: How to create QEMU images used by SDK for windows

The QEMU images for SDK on Linux could be built from the kick start file by using mic-image-creator tool (command to run the mic-image-creator could be found in each ks file). Ideally the images are host platform independent. However, due to the booting time and some other issues with kqemu, minor changes were done on the images obtained from ks file so that they could boot up successfully on Windows. Suppose you have had a raw image, say abc.raw, built from kick start file in hand, below are the changes needed:

1, mount into the image

sudo mount -o loop,offset=512 abc.raw /mnt

2, edit /mnt/usr/sbin/meego-dm to add "sleep 5" to solve bug #10412: mouse udev not ready before starting X server while running handset image on QEMU windows

sleep 5    # new added line
shopt -s execfail

3, edit /mnt/boot/extlinux/extlinux.conf to add kernel option "intel_idle.max-cstate=0" to solve bug #10149: Home screen can't show up after starting emulator from Qt Creator on Windows7 32bit

append ro root=/dev/sda1 vga=current intel_idle.max-cstate=0 quiet

4, unmount the image

sudo umount /mnt
  • More information: Debugging with Simulator</li>
  • Personal tools