All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kang Kai <Kai.Kang@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>,
	openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] runqemu-internal: Fix qemu networking for qemuarm64
Date: Tue, 23 Dec 2014 08:54:51 +0800	[thread overview]
Message-ID: <5498BD5B.4030800@windriver.com> (raw)
In-Reply-To: <1419243206.13316.70.camel@linuxfoundation.org>

On 2014年12月22日 18:13, Richard Purdie wrote:
> This brings qemuarm64 into feature parity with the other qemu machines
> and enables the automated testing on the autobuilder.

Great!  It will be enormously helpful.
Thanks.

--Kai

>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
> diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
> index c219419..f6274e2 100755
> --- a/scripts/runqemu-internal
> +++ b/scripts/runqemu-internal
> @@ -264,7 +264,7 @@ else
>               ROOTFS_OPTIONS="-hda $ROOTFS"
>           fi
>           if [ "$MACHINE" = "qemuarm64" ]; then
> -            QEMU_NETWORK_CMD="-netdev user,id=net0 -device virtio-net-device,netdev=net0"
> +            QEMU_NETWORK_CMD="-netdev tap,id=net0,ifname=$TAP,script=no,downscript=no -device virtio-net-device,netdev=net0 "
>               DROOT="/dev/vda"
>               ROOTFS_OPTIONS="-drive id=disk0,file=$ROOTFS -device virtio-blk-device,drive=disk0"
>           fi
> @@ -381,7 +381,7 @@ if [ "$MACHINE" = "qemuarm64" ]; then
>       export QEMU_AUDIO_DRV="none"
>       QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS"
>       if [ "${FSTYPE:0:3}" = "ext" -o "$FSTYPE" = "btrfs" ]; then
> -        KERNCMDLINE="root=/dev/vda rw console=ttyAMA0,38400 mem=$QEMU_MEMORY highres=off"
> +        KERNCMDLINE="root=/dev/vda rw console=ttyAMA0,38400 mem=$QEMU_MEMORY highres=off $KERNEL_NETWORK_CMD"
>           # qemu-system-aarch64 only support '-machine virt -cpu cortex-a57' for now
>           QEMUOPTIONS="$QEMU_NETWORK_CMD -machine virt -cpu cortex-a57 $ROOTFS_OPTIONS $QEMU_UI_OPTIONS"
>       fi
>
>
>
>


-- 
Regards,
Neil | Kai Kang



      reply	other threads:[~2014-12-23  0:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-22 10:13 [PATCH] runqemu-internal: Fix qemu networking for qemuarm64 Richard Purdie
2014-12-23  0:54 ` Kang Kai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5498BD5B.4030800@windriver.com \
    --to=kai.kang@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.