summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu.README
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu.README')
-rw-r--r--scripts/runqemu.README88
1 files changed, 20 insertions, 68 deletions
diff --git a/scripts/runqemu.README b/scripts/runqemu.README
index 38f9306381..5908d831a4 100644
--- a/scripts/runqemu.README
+++ b/scripts/runqemu.README
@@ -1,90 +1,42 @@
1Poky images with QEMU 1Using OE images with QEMU
2===================== 2=========================
3 3
4Poky can generate qemu bootable kernels and images with can be used 4OE-Core can generate qemu bootable kernels and images with can be used
5on a desktop system. Both arm and x86 images can currently be booted. 5on a desktop system. The scripts currently support booting ARM, MIPS, PowerPC
6There are two scripts, runqemu and runqemu, one for use within poky, 6and x86 (32 and 64 bit) images. The scripts can be used within the OE build
7the other externally. 7system or externaly.
8
9QEMU outside Poky (runqemu)
10=============================
11 8
12The runqemu script is run as: 9The runqemu script is run as:
13 10
14 MACHINE=<machine> runqemu <zimage> <filesystem> 11 runqemu <machine> <zimage> <filesystem>
15 12
16where: 13where:
17 14
15 <machine> is the machine/architecture to use (qemuarm/qemumips/qemuppc/qemux86/qemux86-64)
18 <zimage> is the path to a kernel (e.g. zimage-qemuarm.bin) 16 <zimage> is the path to a kernel (e.g. zimage-qemuarm.bin)
19 <filesystem> is the path to an ext2 image (e.g. filesystem-qemuarm.ext2) 17 <filesystem> is the path to an ext2 image (e.g. filesystem-qemuarm.ext2) or an nfs directory
20 <machine> is "qemuarm" or "qemux86"
21 18
22The MACHINE=<machine> prefix is optional and without it the script will try 19If <machine> isn't specified, the script will try to detect the machine name
23to detect the machine name from the name of the <zimage> file. 20from the name of the <zimage> file.
24 21
25If <filesystem> isn't specified, nfs booting will be assumed. 22If <filesystem> isn't specified, nfs booting will be assumed.
26 23
24When used within the build system, it will default to qemuarm, ext2 and the last kernel and
25core-image-sato-sdk image built by the build system. If an sdk image isn't present it will look
26for sato and minimal images.
27 27
28QEMU within Poky (runqemu) 28Full usage instructions can be seen by running the command with no options specified.
29==========================
30
31The runqemu script is run as:
32
33 runqemu <target> <type> <zimage> <filesystem>
34
35where:
36
37 <target> is "qemuarm","qemux86","nokia800","spitz" or "akita"
38 <type> is "ext2", "nfs", "ext3" or "jffs2". (not all machines support all options)
39 <zimage> is the path to a kernel (e.g. zimage-qemuarm.bin)
40 <filesystem> is the path to the image (e.g. filesystem-qemuarm.ext2)
41
42It will default to the qemuarm, ext2 and the last kernel and core-image-sdk
43image built by poky.
44 29
45 30
46Notes 31Notes
47===== 32=====
48 33
49 - The scripts run qemu using sudo. Change perms on /dev/net/tun to 34 - The scripts run qemu using sudo. Change perms on /dev/net/tun to
50 run as non root 35 run as non root. The runqemu-gen-tapdevs script can also be used by
36 root to prepopulate the appropriate network devices.
51 - You can access the host computer at 192.168.7.1 within the image. 37 - You can access the host computer at 192.168.7.1 within the image.
52 - Your qemu system will be accessible as 192.16.7.2. 38 - Your qemu system will be accessible as 192.16.7.2.
53 - The default NFS mount points are /srv/nfs/qemux86 or /srv/nfs/qemuarm 39 - The script extracts the root filesystem specified under pseudo and sets up a userspace
54 depending on the target type. 40 NFS server to share the image over by default meaning the filesystem can be accessed by
55 - Images built for qemux86/qemuarm contain NFS server which export whole 41 both the host and guest systems.
56 rootfs (/) in read/write mode.
57 - You can set QEMU_MEMORY to control amount of available memory (default 64M).
58 - You can set SERIAL_LOGFILE to have the serial output from the image logged
59 to a file.
60
61
62NFS Image Notes
63===============
64
65As root;
66
67% apt-get install nfs-kernel-server
68
69% mkdir /srv/nfs/qemuarm
70
71Edit via /etc/exports :
72
73# /etc/exports: the access control list for filesystems which may be exported
74# to NFS clients. See exports(5).
75/srv/nfs/qemuarm 192.168.7.2(rw,no_root_squash)
76
77% /etc/init.d/nfs-kernel-server restart
78
79% modprobe tun
80
81untar build/tmp/deploy/images/<built image>.rootfs.tar.bz2 into /srv/nfs/qemuarm
82
83Finally, launch:
84
85% runqemu <target> nfs
86
87(Substitute qemux86 for qemuarm when using qemux86)
88
89 42
90 Copyright (C) 2006-2008 OpenedHand Ltd.