summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/runqemu4
-rw-r--r--scripts/runqemu.README8
2 files changed, 7 insertions, 5 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 1eda1c99b8..dead347ea6 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -41,7 +41,7 @@ if [ "$MACHINE" == "qemuarm" ]; then
41 fi 41 fi
42 if [ "$TYPE" == "nfs" ]; then 42 if [ "$TYPE" == "nfs" ]; then
43 dd if=/dev/zero of=/tmp/blank bs=1024 count=8192 43 dd if=/dev/zero of=/tmp/blank bs=1024 count=8192
44 sudo $QEMU -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=$OEROOT/scripts/qemu-ifup -M versatilepb -hda /tmp/blank 44 sudo $QEMU -kernel $1 -append "root=/dev/nfs nfsroot=192.168.7.1:/srv/nfs/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=$OEROOT/scripts/qemu-ifup -M versatilepb -hda /tmp/blank
45 rm /tmp/blank 45 rm /tmp/blank
46 fi 46 fi
47fi 47fi
@@ -62,7 +62,7 @@ if [ "$MACHINE" == "qemux86" ]; then
62 fi 62 fi
63 if [ "$TYPE" == "nfs" ]; then 63 if [ "$TYPE" == "nfs" ]; then
64 dd if=/dev/zero of=/tmp/blank bs=1024 count=8192 64 dd if=/dev/zero of=/tmp/blank bs=1024 count=8192
65 sudo $QEMU -std-vga -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=$OEROOT/scripts/qemu-ifup -hda /tmp/blank 65 sudo $QEMU -std-vga -kernel $1 -append "root=/dev/nfs nfsroot=192.168.7.1:/srv/nfs/qemux86 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=$OEROOT/scripts/qemu-ifup -hda /tmp/blank
66 rm /tmp/blank 66 rm /tmp/blank
67 fi 67 fi
68fi 68fi
diff --git a/scripts/runqemu.README b/scripts/runqemu.README
index 713e273946..2f68b85cb8 100644
--- a/scripts/runqemu.README
+++ b/scripts/runqemu.README
@@ -24,24 +24,26 @@ As root;
24 24
25% apt-get install nfs-kernel-server 25% apt-get install nfs-kernel-server
26 26
27% mkdir /srv/qemuarm 27% mkdir /srv/nfs/qemuarm
28 28
29Edit via /etc/exports : 29Edit via /etc/exports :
30 30
31# /etc/exports: the access control list for filesystems which may be exported 31# /etc/exports: the access control list for filesystems which may be exported
32# to NFS clients. See exports(5). 32# to NFS clients. See exports(5).
33/srv/qemuarm 192.168.7.2(rw,no_root_squash) 33/srv/nfs/qemuarm 192.168.7.2(rw,no_root_squash)
34 34
35% /etc/init.d/nfs-kernel-server restart 35% /etc/init.d/nfs-kernel-server restart
36 36
37% modprobe tun 37% modprobe tun
38 38
39untar build/tmp/deploy/images/<built image>.rootfs.tar.bz2 into /srv/qemuarm 39untar build/tmp/deploy/images/<built image>.rootfs.tar.bz2 into /srv/nfs/qemuarm
40 40
41Finally, launch: 41Finally, launch:
42 42
43% runqemu <target> nfs 43% runqemu <target> nfs
44 44
45(Substitute qemux86 for qemuarm when using qemux86)
46
45Notes 47Notes
46===== 48=====
47 49