aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-05-15 10:18:46 -0700
committerKhem Raj <raj.khem@gmail.com>2010-05-15 10:21:31 -0700
commitf75f6d005a0d91b3f349d08347d2453e30711247 (patch)
treea1cd66e3e415bb1d2f7450e4947112537b6dde1d /contrib
parent3f052215b0c4c3cc83e661be342c538872bf0d3d (diff)
downloadopenembedded-f75f6d005a0d91b3f349d08347d2453e30711247.tar.gz
qemuppc: Add new machine qemuppc running ppc on QEMU.
* Tested with DISTRO=minimal image=minimal-image * Adjust run-qemu.sh to use native-qemu and fix variables needed for powerpc run. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/qemu/run-qemu.sh29
1 files changed, 23 insertions, 6 deletions
diff --git a/contrib/qemu/run-qemu.sh b/contrib/qemu/run-qemu.sh
index 922d28238c..85caa58a1f 100755
--- a/contrib/qemu/run-qemu.sh
+++ b/contrib/qemu/run-qemu.sh
@@ -23,6 +23,23 @@
#
#auto eth0
+# before using this script make sure that the following variables are set
+# as per your build system environment
+
+# kernel
+# hdimage
+# libc
+# server
+# gateway
+# netmask
+# address
+# hostname
+# nfsdir
+# device
+# qemuifup
+# qemuifdown
+# qemupath
+
supported_archs="{arm mips x86}"
if [ $# -ne 1 ]; then
echo -en "
@@ -65,14 +82,14 @@ case $arch in
arch=ppc
address="10.0.1.103"
macaddr="00:16:3e:00:00:03"
- machine="bamboo"
+ machine="g3beige"
gdbport="1236"
consoleopt="console=ttyS0"
rootdisk="hdc" #hdc4
- qemu="qemu-system-ppcemb"
+ qemu="qemu-system-ppc"
libc="eglibc"
- kernel="/scratch/oe/deploy/$libc/images/qemu$arch/uImage-qemuppc.bin"
- hdimage="/scratch/oe/deploy/$libc/images/qemu$arch/helloworld-image-qemuppc.ext2"
+ kernel="/scratch/oe/deploy/$libc/images/qemu$arch/vmlinux-qemuppc.bin"
+ hdimage="/scratch/oe/deploy/$libc/images/qemu$arch/minimalist-image-qemuppc.ext2"
;;
sh|sh4)
arch=sh4
@@ -140,7 +157,7 @@ ipopt="ip=$address::$gateway:$netmask:$hostname:$device:off"
init=""
qemuifup="/home/kraj/work/oe/openembedded/contrib/qemu/qemu-ifup"
qemuifdown="/home/kraj/work/oe/openembedded/contrib/qemu/qemu-ifdown"
-
+qemupath="/scratch/oe/qemu$arch/sysroots/x86_64-linux/usr/bin"
uid=`whoami`
iface=`sudo tunctl -b -u $uid`
@@ -153,7 +170,7 @@ fi
echo "Starting QEMU ..."
set -x
#-L /scratch/oe/deploy/$libc/images/qemu$arch \
-$qemu -M $machine --snapshot $gdbit -m $mem -kernel $kernel -hda $hdimage \
+$qemupath/$qemu -M $machine --snapshot $gdbit -m $mem -kernel $kernel -hda $hdimage \
-usb -usbdevice wacom-tablet -nographic --no-reboot -localtime \
-append "$consoleopt $rootfs $ipopt $init debug user_debug=-1" \
$netopt