From 4a9392f5a3295b900eebc81fd6fd64a8029525df Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 17 Nov 2006 11:08:32 +0000 Subject: Improve the qemu scripts and documentation (qemux86 support isn't complete yet) git-svn-id: https://svn.o-hand.com/repos/poky/trunk@867 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- scripts/runqemu.README | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 scripts/runqemu.README (limited to 'scripts/runqemu.README') diff --git a/scripts/runqemu.README b/scripts/runqemu.README new file mode 100644 index 0000000000..713e273946 --- /dev/null +++ b/scripts/runqemu.README @@ -0,0 +1,59 @@ +Using qemu with poky notes +========================== + +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: + + runqemu + +where: + + is "qemuarm" or "qemux86" + is "ext2" or "nfs" + is the path to a kernel (zimage-qemuarm.bin) + 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. + +NFS Image Notes +=============== + +As root; + +% apt-get install nfs-kernel-server + +% mkdir /srv/qemuarm + +Edit via /etc/exports : + +# /etc/exports: the access control list for filesystems which may be exported +# to NFS clients. See exports(5). +/srv/qemuarm 192.168.7.2(rw,no_root_squash) + +% /etc/init.d/nfs-kernel-server restart + +% modprobe tun + +untar build/tmp/deploy/images/.rootfs.tar.bz2 into /srv/qemuarm + +Finally, launch: + +% runqemu 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 + -- cgit 1.2.3-korg