summaryrefslogtreecommitdiff
path: root/scripts/qemu
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/qemu
parentf4a8621a19550e4168a45e69386c82f031aa37f1 (diff)
downloadopenembedded-core-4a9392f5a3295b900eebc81fd6fd64a8029525df.tar.gz
openembedded-core-4a9392f5a3295b900eebc81fd6fd64a8029525df.tar.bz2
openembedded-core-4a9392f5a3295b900eebc81fd6fd64a8029525df.tar.xz
openembedded-core-4a9392f5a3295b900eebc81fd6fd64a8029525df.zip
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/qemu')
-rw-r--r--scripts/qemu/README58
-rwxr-xr-xscripts/qemu/qemu-ext28
-rwxr-xr-xscripts/qemu/qemu-ifup2
-rwxr-xr-xscripts/qemu/qemu-nfs14
4 files changed, 0 insertions, 82 deletions
diff --git a/scripts/qemu/README b/scripts/qemu/README
deleted file mode 100644
index 10bf64ebb..000000000
--- a/scripts/qemu/README
+++ /dev/null
@@ -1,58 +0,0 @@
-qemu-arm poky image notes
-=========================
-
-Poky can generate qemu-system-arm bootable kernels and images with can
-then be used on an x86 desktop. There are two ways to run such images;
-
-Via ext2 filesystem image
-==========================
-
-Run;
-
-qemu-ext2 <zimage-qemuarm>.bin <filesystem-qemuarm>.ext2
-
-
-Via NFS
-========
-
-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/<built image>.rootfs.tar.bz2 into /srv/qemuarm
-
-Move poky built qemu-system-arm into your path, i.e;
-
-% cp ./build/tmp/staging/i686-linux/bin/qemu-system-arm /usr/local/bin
-
-Finally, launch:
-
-% ./qemu-nfs ../../build/tmp/deploy/images/<zimage-qemuarm>.bin
-
-( change perms on /dev/net/tun to run as non root )
-
-Notes
-=====
-
- - 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
diff --git a/scripts/qemu/qemu-ext2 b/scripts/qemu/qemu-ext2
deleted file mode 100755
index 4d69f0f1c..000000000
--- a/scripts/qemu/qemu-ext2
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-if [ -z "$QEMU_MEMORY" ]
-then
-QEMU_MEMORY="64M"
-fi
-
-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 da3918c6a..000000000
--- a/scripts/qemu/qemu-ifup
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-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 503aaa2e0..000000000
--- a/scripts/qemu/qemu-nfs
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-if [ -z "$QEMU_MEMORY" ]
-then
-QEMU_MEMORY="64M"
-fi
-
-# New command-line for versatile/PB
-dd if=/dev/zero of=/tmp/blank bs=1024 count=8192
-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
-rm /tmp/blank
-
-# Old command-line for versatile/CP
-#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