diff options
| author | Matthew Allum <mallum@openedhand.com> | 2006-08-29 22:16:35 +0000 |
|---|---|---|
| committer | Matthew Allum <mallum@openedhand.com> | 2006-08-29 22:16:35 +0000 |
| commit | 6527a796160869a8590042b0fd5bab98df0fcd65 (patch) | |
| tree | 6c40774269d04f16d43c2b2ac9611187bb48fea8 /scripts | |
| parent | b1d72c57627e19cde254177f08a3a0f879a94803 (diff) | |
| download | poky-6527a796160869a8590042b0fd5bab98df0fcd65.tar.gz | |
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
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/qemu/README | 18 | ||||
| -rwxr-xr-x | scripts/qemu/qemu-ext2 | 8 | ||||
| -rwxr-xr-x | scripts/qemu/qemu-nfs | 8 |
3 files changed, 31 insertions, 3 deletions
diff --git a/scripts/qemu/README b/scripts/qemu/README index d589b761ed..10bf64ebba 100644 --- a/scripts/qemu/README +++ b/scripts/qemu/README | |||
| @@ -1,7 +1,20 @@ | |||
| 1 | qemu-arm poky image notes | ||
| 2 | ========================= | ||
| 1 | 3 | ||
| 2 | qemu-arm quick setup notes | 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 | ||
| 3 | ========================== | 8 | ========================== |
| 4 | 9 | ||
| 10 | Run; | ||
| 11 | |||
| 12 | qemu-ext2 <zimage-qemuarm>.bin <filesystem-qemuarm>.ext2 | ||
| 13 | |||
| 14 | |||
| 15 | Via NFS | ||
| 16 | ======== | ||
| 17 | |||
| 5 | As root; | 18 | As root; |
| 6 | 19 | ||
| 7 | % apt-get install nfs-kernel-server | 20 | % apt-get install nfs-kernel-server |
| @@ -30,10 +43,11 @@ Finally, launch: | |||
| 30 | 43 | ||
| 31 | ( change perms on /dev/net/tun to run as non root ) | 44 | ( change perms on /dev/net/tun to run as non root ) |
| 32 | 45 | ||
| 33 | |||
| 34 | Notes | 46 | Notes |
| 35 | ===== | 47 | ===== |
| 36 | 48 | ||
| 49 | - You can set QEMU_MEMORY env var to control amount of available memory | ||
| 50 | ( defaults to 64M ) | ||
| 37 | - There is a bug in qemu in that means occasionally it will use 100% cpu. | 51 | - There is a bug in qemu in that means occasionally it will use 100% cpu. |
| 38 | You will need to restart it in this situation. | 52 | You will need to restart it in this situation. |
| 39 | 53 | ||
diff --git a/scripts/qemu/qemu-ext2 b/scripts/qemu/qemu-ext2 new file mode 100755 index 0000000000..7402709c6c --- /dev/null +++ b/scripts/qemu/qemu-ext2 | |||
| @@ -0,0 +1,8 @@ | |||
| 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 \ No newline at end of file | ||
diff --git a/scripts/qemu/qemu-nfs b/scripts/qemu/qemu-nfs index 92c7fc24b1..d827664c92 100755 --- a/scripts/qemu/qemu-nfs +++ b/scripts/qemu/qemu-nfs | |||
| @@ -1,2 +1,8 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 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 | 2 | |
| 3 | if [ -z "$QEMU_MEMORY" ] | ||
| 4 | then | ||
| 5 | QEMU_MEMORY="64M" | ||
| 6 | fi | ||
| 7 | |||
| 8 | 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 | ||
