summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu.README
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-01-16 13:49:34 +0000
committerRichard Purdie <richard@openedhand.com>2007-01-16 13:49:34 +0000
commit990788b29580f8689933b5af21dc9cb62c726b0e (patch)
tree58b7cb274830e8f615b78dbd7ab7452276a1ae9a /scripts/poky-qemu.README
parent6531611d9a02ebee72229ee475601a5717222e56 (diff)
downloadpoky-990788b29580f8689933b5af21dc9cb62c726b0e.tar.gz
scripts: Rename scripts, update README
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1146 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts/poky-qemu.README')
-rw-r--r--scripts/poky-qemu.README96
1 files changed, 96 insertions, 0 deletions
diff --git a/scripts/poky-qemu.README b/scripts/poky-qemu.README
new file mode 100644
index 0000000000..1b4e763a38
--- /dev/null
+++ b/scripts/poky-qemu.README
@@ -0,0 +1,96 @@
1Poky images with QEMU
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.
6There are two scripts, runqemu and poky-qemu, one for use within poky,
7the other externally.
8
9QEMU outside Poky (poky-qemu)
10=============================
11
12The poky-qemu script is run as:
13
14 MACHINE=<machine> poky-qemu <zimage> <filesystem>
15
16where:
17
18 <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)
20 <machine> is "qemuarm" or "qemux86"
21
22The MACHINE=<machine> prefix is optional and without it the script will try
23to detect the machine name from the name of the <zimage> file.
24
25If <filesystem> isn't specified, nfs booting will be assumed.
26
27
28QEMU within Poky (runqemu)
29==========================
30
31The runqemu script is run as:
32
33 runqemu <target> <type> <zimage> <filesystem>
34
35where:
36
37 <target> is "qemuarm" or "qemux86"
38 <type> is "ext2" or "nfs"
39 <zimage> is the path to a kernel (zimage-qemuarm.bin)
40 <filesystem> is the path to an ext2 image (filesystem-qemuarm.ext2)
41
42It will default to the qemuarm, ext2 and the last kernel and oh-image-sdk
43image built by poky.
44
45
46Notes
47=====
48
49 - The scripts run qemu using sudo. Change perms on /dev/net/tun to
50 run as non root
51 - 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.
53 - The default NFS mount points are /srv/nfs/qemux86 or /srv/nfs/qemuarm
54 depending on the target type.
55 - You can set QEMU_MEMORY to control amount of available memory (default 64M).
56 - You can set SERIAL_LOGFILE to have the serial output from the image logged
57 to a file.
58
59
60NFS Image Notes
61===============
62
63As root;
64
65% apt-get install nfs-kernel-server
66
67% mkdir /srv/nfs/qemuarm
68
69Edit via /etc/exports :
70
71# /etc/exports: the access control list for filesystems which may be exported
72# to NFS clients. See exports(5).
73/srv/nfs/qemuarm 192.168.7.2(rw,no_root_squash)
74
75% /etc/init.d/nfs-kernel-server restart
76
77% modprobe tun
78
79untar build/tmp/deploy/images/<built image>.rootfs.tar.bz2 into /srv/nfs/qemuarm
80
81Finally, launch:
82
83% runqemu <target> nfs
84
85(Substitute qemux86 for qemuarm when using qemux86)
86
87
88Known Issues
89============
90
91 - There is a bug in the ARM qemu in that means occasionally it will use 100%
92 cpu. You will need to restart it in this situation.
93 - There is a problem with the ARM image not auto assigning an IP when using an
94 ext2 image. To have working TCP/IP connectivity run:
95 'ifconfig eth0 192.168.7.2 up'
96