diff options
Diffstat (limited to 'scripts/qemu')
-rw-r--r-- | scripts/qemu/README | 58 | ||||
-rwxr-xr-x | scripts/qemu/qemu-ext2 | 8 | ||||
-rwxr-xr-x | scripts/qemu/qemu-ifup | 2 | ||||
-rwxr-xr-x | scripts/qemu/qemu-nfs | 14 |
4 files changed, 0 insertions, 82 deletions
diff --git a/scripts/qemu/README b/scripts/qemu/README deleted file mode 100644 index 10bf64ebba..0000000000 --- a/scripts/qemu/README +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | qemu-arm poky image notes | ||
2 | ========================= | ||
3 | |||
4 | Poky can generate qemu-system-arm bootable kernels and images with can | ||
5 | then be used on an x86 desktop. There are two ways to run such images; | ||
6 | |||
7 | Via ext2 filesystem image | ||
8 | ========================== | ||
9 | |||
10 | Run; | ||
11 | |||
12 | qemu-ext2 <zimage-qemuarm>.bin <filesystem-qemuarm>.ext2 | ||
13 | |||
14 | |||
15 | Via NFS | ||
16 | ======== | ||
17 | |||
18 | As root; | ||
19 | |||
20 | % apt-get install nfs-kernel-server | ||
21 | |||
22 | % mkdir /srv/qemuarm | ||
23 | |||
24 | Edit via /etc/exports : | ||
25 | |||
26 | # /etc/exports: the access control list for filesystems which may be exported | ||
27 | # to NFS clients. See exports(5). | ||
28 | /srv/qemuarm 192.168.7.2(rw,no_root_squash) | ||
29 | |||
30 | % /etc/init.d/nfs-kernel-server restart | ||
31 | |||
32 | % modprobe tun | ||
33 | |||
34 | untar build/tmp/deploy/images/<built image>.rootfs.tar.bz2 into /srv/qemuarm | ||
35 | |||
36 | Move poky built qemu-system-arm into your path, i.e; | ||
37 | |||
38 | % cp ./build/tmp/staging/i686-linux/bin/qemu-system-arm /usr/local/bin | ||
39 | |||
40 | Finally, launch: | ||
41 | |||
42 | % ./qemu-nfs ../../build/tmp/deploy/images/<zimage-qemuarm>.bin | ||
43 | |||
44 | ( change perms on /dev/net/tun to run as non root ) | ||
45 | |||
46 | Notes | ||
47 | ===== | ||
48 | |||
49 | - You can set QEMU_MEMORY env var to control amount of available memory | ||
50 | ( defaults to 64M ) | ||
51 | - There is a bug in qemu in that means occasionally it will use 100% cpu. | ||
52 | You will need to restart it in this situation. | ||
53 | |||
54 | |||
55 | More Info | ||
56 | ========= | ||
57 | |||
58 | - See http://o-hand.com/~richard/qemu.html | ||
diff --git a/scripts/qemu/qemu-ext2 b/scripts/qemu/qemu-ext2 deleted file mode 100755 index 4d69f0f1ca..0000000000 --- a/scripts/qemu/qemu-ext2 +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -z "$QEMU_MEMORY" ] | ||
4 | then | ||
5 | QEMU_MEMORY="64M" | ||
6 | fi | ||
7 | |||
8 | qemu-system-arm -kernel $1 -append "root=/dev/sda mem=$QEMU_MEMORY" -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=./qemu-ifup -M versatilepb -hda $2 -usb -usbdevice wacom-tablet | ||
diff --git a/scripts/qemu/qemu-ifup b/scripts/qemu/qemu-ifup deleted file mode 100755 index da3918c6ac..0000000000 --- a/scripts/qemu/qemu-ifup +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | ifconfig tap0 192.168.7.1 \ No newline at end of file | ||
diff --git a/scripts/qemu/qemu-nfs b/scripts/qemu/qemu-nfs deleted file mode 100755 index 503aaa2e02..0000000000 --- a/scripts/qemu/qemu-nfs +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -z "$QEMU_MEMORY" ] | ||
4 | then | ||
5 | QEMU_MEMORY="64M" | ||
6 | fi | ||
7 | |||
8 | # New command-line for versatile/PB | ||
9 | dd if=/dev/zero of=/tmp/blank bs=1024 count=8192 | ||
10 | qemu-system-arm -kernel $1 -append "root=/dev/nfs nfsroot=192.168.7.1:/srv/qemuarm rw ip=192.168.7.2::192.168.7.1:255.255.255.0" -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=./qemu-ifup -M versatilepb -hda /tmp/blank | ||
11 | rm /tmp/blank | ||
12 | |||
13 | # Old command-line for versatile/CP | ||
14 | #qemu-system-arm -kernel $1 -append "root=/dev/nfs nfsroot=192.168.7.1:/srv/qemuarm rw ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=$QEMU_MEMORY" -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=./qemu-ifup | ||