summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu.README
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-17 11:08:32 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-17 11:08:32 +0000
commit4a9392f5a3295b900eebc81fd6fd64a8029525df (patch)
tree9211a76434c7cf72cbe4b55b4320d9574089bc3b /scripts/runqemu.README
parentf4a8621a19550e4168a45e69386c82f031aa37f1 (diff)
downloadpoky-4a9392f5a3295b900eebc81fd6fd64a8029525df.tar.gz
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
Diffstat (limited to 'scripts/runqemu.README')
-rw-r--r--scripts/runqemu.README59
1 files changed, 59 insertions, 0 deletions
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 @@
1Using qemu with poky notes
2==========================
3
4Poky can generate qemu bootable kernels and images with can be used
5on a desktop system. Both arm and x86 images can currently be booted.
6The runqemu script is run as:
7
8 runqemu <target> <type> <zimage> <filesystem>
9
10where:
11
12 <target> is "qemuarm" or "qemux86"
13 <type> is "ext2" or "nfs"
14 <zimage> is the path to a kernel (zimage-qemuarm.bin)
15 <filesystem> is the path to an ext2 image (filesystem-qemuarm.ext2)
16
17It will default to the qemuarm, ext2 and the last kernel and oh-image-pda
18image built by poky.
19
20NFS Image Notes
21===============
22
23As root;
24
25% apt-get install nfs-kernel-server
26
27% mkdir /srv/qemuarm
28
29Edit via /etc/exports :
30
31# /etc/exports: the access control list for filesystems which may be exported
32# to NFS clients. See exports(5).
33/srv/qemuarm 192.168.7.2(rw,no_root_squash)
34
35% /etc/init.d/nfs-kernel-server restart
36
37% modprobe tun
38
39untar build/tmp/deploy/images/<built image>.rootfs.tar.bz2 into /srv/qemuarm
40
41Finally, launch:
42
43% runqemu <target> nfs
44
45Notes
46=====
47
48 - The runqemu script runs qemu with sudo. Change perms on /dev/net/tun to
49 run as non root
50 - You can set QEMU_MEMORY env var to control amount of available memory
51 ( defaults to 64M )
52 - There is a bug in qemu in that means occasionally it will use 100% cpu.
53 You will need to restart it in this situation.
54
55More Info
56=========
57
58 - See http://o-hand.com/~richard/qemu.html
59