From 6527a796160869a8590042b0fd5bab98df0fcd65 Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Tue, 29 Aug 2006 22:16:35 +0000 Subject: Add qemu-ext2 script and new notes to README git-svn-id: https://svn.o-hand.com/repos/poky/trunk@678 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- scripts/qemu/README | 18 ++++++++++++++++-- scripts/qemu/qemu-ext2 | 8 ++++++++ scripts/qemu/qemu-nfs | 8 +++++++- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100755 scripts/qemu/qemu-ext2 (limited to 'scripts') diff --git a/scripts/qemu/README b/scripts/qemu/README index d589b761e..10bf64ebb 100644 --- a/scripts/qemu/README +++ b/scripts/qemu/README @@ -1,7 +1,20 @@ +qemu-arm poky image notes +========================= -qemu-arm quick setup 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 .bin .ext2 + + +Via NFS +======== + As root; % apt-get install nfs-kernel-server @@ -30,10 +43,11 @@ Finally, launch: ( 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. diff --git a/scripts/qemu/qemu-ext2 b/scripts/qemu/qemu-ext2 new file mode 100755 index 000000000..7402709c6 --- /dev/null +++ b/scripts/qemu/qemu-ext2 @@ -0,0 +1,8 @@ +#!/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 \ No newline at end of file diff --git a/scripts/qemu/qemu-nfs b/scripts/qemu/qemu-nfs index 92c7fc24b..d827664c9 100755 --- a/scripts/qemu/qemu-nfs +++ b/scripts/qemu/qemu-nfs @@ -1,2 +1,8 @@ #!/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 + +if [ -z "$QEMU_MEMORY" ] +then +QEMU_MEMORY="64M" +fi + +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 -- cgit v1.2.3