|
@@ -1,19 +1,24 @@
|
|
|
-qemu-arm poky image notes
|
|
|
-=========================
|
|
|
+Using qemu with poky notes
|
|
|
+==========================
|
|
|
|
|
|
-Poky can generate qemu-system-arm bootable kernels and images with can
|
|
|
-then be used on an x86 desktop. There are two ways to run such images;
|
|
|
+Poky can generate qemu bootable kernels and images with can be used
|
|
|
+on a desktop system. Both arm and x86 images can currently be booted.
|
|
|
+The runqemu script is run as:
|
|
|
|
|
|
-Via ext2 filesystem image
|
|
|
-==========================
|
|
|
+ runqemu <target> <type> <zimage> <filesystem>
|
|
|
|
|
|
-Run;
|
|
|
+where:
|
|
|
|
|
|
-qemu-ext2 <zimage-qemuarm>.bin <filesystem-qemuarm>.ext2
|
|
|
+ <target> is "qemuarm" or "qemux86"
|
|
|
+ <type> is "ext2" or "nfs"
|
|
|
+ <zimage> is the path to a kernel (zimage-qemuarm.bin)
|
|
|
+ <filesystem> is the path to an ext2 image (filesystem-qemuarm.ext2)
|
|
|
|
|
|
+It will default to the qemuarm, ext2 and the last kernel and oh-image-pda
|
|
|
+image built by poky.
|
|
|
|
|
|
-Via NFS
|
|
|
-========
|
|
|
+NFS Image Notes
|
|
|
+===============
|
|
|
|
|
|
As root;
|
|
|
|
|
@@ -33,26 +38,22 @@ Edit via /etc/exports :
|
|
|
|
|
|
untar build/tmp/deploy/images/<built image>.rootfs.tar.bz2 into /srv/qemuarm
|
|
|
|
|
|
-Move poky built qemu-system-arm into your path, i.e;
|
|
|
-
|
|
|
-% cp ./build/tmp/staging/i686-linux/bin/qemu-system-arm /usr/local/bin
|
|
|
-
|
|
|
Finally, launch:
|
|
|
|
|
|
-% ./qemu-nfs ../../build/tmp/deploy/images/<zimage-qemuarm>.bin
|
|
|
-
|
|
|
-( change perms on /dev/net/tun to run as non root )
|
|
|
+% runqemu <target> nfs
|
|
|
|
|
|
Notes
|
|
|
=====
|
|
|
|
|
|
+ - The runqemu script runs qemu with sudo. Change perms on /dev/net/tun to
|
|
|
+ run as non root
|
|
|
- You can set QEMU_MEMORY env var to control amount of available memory
|
|
|
( defaults to 64M )
|
|
|
- There is a bug in qemu in that means occasionally it will use 100% cpu.
|
|
|
You will need to restart it in this situation.
|
|
|
|
|
|
-
|
|
|
More Info
|
|
|
=========
|
|
|
|
|
|
- See http://o-hand.com/~richard/qemu.html
|
|
|
+
|