From: Armin Kuster <akus...@mvista.com> Signed-off-by: Armin Kuster <akus...@mvista.com> --- scripts/runqemu | 9 ++++++--- scripts/runqemu-internal | 24 ++++++++++++++++++------ 2 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/scripts/runqemu b/scripts/runqemu index de05035..9c73e25 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -121,7 +121,7 @@ while true; do arg=${1} case "$arg" in "qemux86" | "qemux86-64" | "qemuarm" | "qemuarm64" | "qemumips" | "qemumipsel" | \ - "qemumips64" | "qemush4" | "qemuppc" | "qemumicroblaze" | "qemuzynq" | "qemuzynqmp") + "qemumips64" | "qemush4" | "qemuppc" | "qemuppc64" | "qemumicroblaze" | "qemuzynq" | "qemuzynqmp") [ -z "$MACHINE" -o "$MACHINE" = "$arg" ] && MACHINE=$arg || \ error "conflicting MACHINE types [$MACHINE] and [$arg]" ;; @@ -251,13 +251,13 @@ fi if [ -z "$MACHINE" ]; then if [ "$IS_VM" = "true" ]; then [ "x$FSTYPE" = "xwic" ] && filename=$ROOTFS || filename=$VM - MACHINE=`basename $filename | sed -n 's/.*\(qemux86-64\|qemux86\|qemuarm64\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/p'` + MACHINE=`basename $filename | sed -n 's/.*\(qemux86-64\|qemux86\|qemuarm64\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemuppc64\|qemush4\).*/\1/p'` if [ -z "$MACHINE" ]; then error "Unable to set MACHINE from image filename [$VM]" fi echo "Set MACHINE to [$MACHINE] based on image [$VM]" else - MACHINE=`basename $KERNEL | sed -n 's/.*\(qemux86-64\|qemux86\|qemuarm64\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/p'` + MACHINE=`basename $KERNEL | sed -n 's/.*\(qemux86-64\|qemux86\|qemuarm64\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemuppc64\|qemush4\).*/\1/p'` if [ -z "$MACHINE" ]; then error "Unable to set MACHINE from kernel filename [$KERNEL]" fi @@ -344,6 +344,9 @@ QEMUSH4_DEFAULT_FSTYPE=ext4 QEMUPPC_DEFAULT_KERNEL=vmlinux-qemuppc.bin QEMUPPC_DEFAULT_FSTYPE=ext4 +QEMUPPC64_DEFAULT_KERNEL=vmlinux-qemuppc64.bin +QEMUPPC64_DEFAULT_FSTYPE=ext4 + QEMUMICROBLAZE_DEFAULT_KERNEL=linux.bin.ub QEMUMICROBLAZE_DEFAULT_FSTYPE=cpio diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index ea1a307..e8cc1a1 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal @@ -438,15 +438,27 @@ config_qemumips() { } config_qemuppc() { - set_mem_size 256 - QEMU=qemu-system-ppc - MACHINE_SUBTYPE=mac99 - CPU_SUBTYPE=G4 + case "$MACHINE" in + qemuppc) + set_mem_size 256 + QEMU=qemu-system-ppc + MACHINE_SUBTYPE=mac99 + CPU_SUBTYPE=G4 + MODEL=pcnet + ;; + qemuppc64) + set_mem_size 1024 + QEMU=qemu-system-ppc64 + MACHINE_SUBTYPE=pseries + CPU_SUBTYPE=POWER7 + MODEL=e1000 + ;; + esac QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS" if [ "$SLIRP_ENABLED" = "yes" ]; then QEMU_NETWORK_CMD="" else - QEMU_NETWORK_CMD="-net nic,model=pcnet $QEMU_TAP_CMD" + QEMU_NETWORK_CMD="-net nic,model=$MODEL $QEMU_TAP_CMD" fi if [ "${FSTYPE:0:3}" = "ext" -o "$FSTYPE" = "btrfs" -o "$FSTYPE" = "wic" ]; then KERNCMDLINE="root=$DROOT rw console=ttyS0 console=tty $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" @@ -543,7 +555,7 @@ case "$MACHINE" in "qemumips" | "qemumipsel" | "qemumips64") config_qemumips ;; - "qemuppc") + "qemuppc" | "qemuppc64") config_qemuppc ;; "qemush4") -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core