summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMatthew Allum <mallum@openedhand.com>2006-07-28 19:47:37 +0000
committerMatthew Allum <mallum@openedhand.com>2006-07-28 19:47:37 +0000
commit6e6b3818fa71766a30c21362c60487ff84c0decc (patch)
tree8460b5db5d78802a111911a405a4e2359fb82702 /scripts
parent5599ea7fb19258cc7695c9a38219c75338578759 (diff)
downloadopenembedded-core-6e6b3818fa71766a30c21362c60487ff84c0decc.tar.gz
openembedded-core-6e6b3818fa71766a30c21362c60487ff84c0decc.tar.bz2
openembedded-core-6e6b3818fa71766a30c21362c60487ff84c0decc.zip
Added scripts dir
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@584 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts')
-rw-r--r--scripts/README1
-rw-r--r--scripts/qemu/README44
-rwxr-xr-xscripts/qemu/qemu-ifup2
-rwxr-xr-xscripts/qemu/qemu-nfs2
4 files changed, 49 insertions, 0 deletions
diff --git a/scripts/README b/scripts/README
new file mode 100644
index 0000000000..5363c9b4ef
--- /dev/null
+++ b/scripts/README
@@ -0,0 +1 @@
+This directory contains Various useful scripts for working with poky
diff --git a/scripts/qemu/README b/scripts/qemu/README
new file mode 100644
index 0000000000..d589b761ed
--- /dev/null
+++ b/scripts/qemu/README
@@ -0,0 +1,44 @@
+
+qemu-arm quick setup notes
+==========================
+
+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
+=====
+
+ - 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-ifup b/scripts/qemu/qemu-ifup
new file mode 100755
index 0000000000..da3918c6ac
--- /dev/null
+++ b/scripts/qemu/qemu-ifup
@@ -0,0 +1,2 @@
+#!/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
new file mode 100755
index 0000000000..92c7fc24b1
--- /dev/null
+++ b/scripts/qemu/qemu-nfs
@@ -0,0 +1,2 @@
+#!/bin/sh
+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