All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Peter Crosthwaite <crosthwaitepeter@gmail.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Peter Crosthwaite" <crosthwaite.peter@gmail.com>,
	"Liviu Ionescu" <ilg@livius.net>,
	"Pavel Fedin" <p.fedin@samsung.com>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Alistair Francis" <alistair.francis@xilinx.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Nathan Rossi" <nathan@nathanrossi.com>,
	"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [RFC PATCH v1 0/8] QOM prop overloading + ARM MPCore CPUs
Date: Fri, 18 Sep 2015 23:27:33 +0100	[thread overview]
Message-ID: <1442615253.12435.61.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAPokK=qfbvHjcxQE0P3SHE_fB1yRMyB58uwvdBjG3jnwQ34OUA@mail.gmail.com>

On Fri, 2015-09-18 at 11:14 -0700, Peter Crosthwaite wrote:
> On Fri, Sep 18, 2015 at 10:23 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > On Fri, 2015-09-18 at 09:46 -0700, Peter Crosthwaite wrote:
> >> >> My biggest fear is testing of the changes for the affected boards.
> >> >> Peter, do you much coverage of these boards in your regressions? Do you
> >> >> have automated tests in a git repo somewhere?
> >> >
> >> > The answers to these questions are "nowhere near enough" and
> >> > "unfortunately not"...
> >> >
> >>
> >> How hard would it be to do something Yocto powered? AFAIK Yocto only
> >> supports the one ARM board (Vexpress), three (+ZynqMP, +Zynq) with the
> >> Meta-Xilinx layer and there may be more with other layers (anything in
> >> meta-linaro?). Can we bitbake something that builds out a large number
> >> of ARM machines and tests them all on QEMU?
> >
> > Running our standard ARM board tests is a case of:
> >
> > git clone http://git.yoctoproject.org/git/poky
> > cd poky
> > source oe-init-build-env
> > echo 'INHERIT += "testimage"' >> ./conf/local.conf
> > MACHINE=qemuarm bitbake core-image-sato
> > MACHINE=qemuarm bitbake core-image-sato -c testimage
> >
> 
> So qemuarm is implicitly vexpress, I guess we would want to add more,
> such as qemuarm-zynq, qemuarm-zaurus, qemuarm-virt etc. Can a single
> bitbake core-image-foo build out multiple MACHINEs or does it not work
> like that?

You'd usually just MACHINE=X bitbake <image>; MACHINE=Y bitbake <image>.
If the configuration shares a common set of compiler optimisation flags,
it will reuse the image binaries.

> > You could replace core-image-sato -> core-image-minimal for a smaller
> > image and fewer tests or try core-image-sato-sdk or core-image-lsb-sdk
> > for more.
> >
> > The Quick Start guide is at
> > http://www.yoctoproject.org/docs/1.8/yocto-project-qs/yocto-project-qs.html and has various things like precanned lists of prerequisites for the package manager.
> >
> > Not sure which other boards you could try booting but I know the Zaurus
> > machines did work a long time ago as we submitted the qemu code. They
> > are now in their own layer and I've not tried them in a long time.
> 
> Do these multiple vendor layers conflict with each other and is
> merging all the different ARM machines to poky mainline feasible?

The layer model is intentional like a plugin architecture. OE was once a
monolithic repository, it grew too large and painful to work. We
therefore now have layers which have separate maintainership. The
quality does vary a bit but it did with the monolithic repo too.

In theory you can just plug the layers you want into the core and use
them, they shouldn't conflict.

> Something else that is on topic, is we should consider changing
> (subject to backwards compat) the default qemuarm machine to virt, as
> this machine is well maintained and intended for use as a pure virtual
> machine (which is intent of Yocto qemu specific target IIUC).

That would need some wider discussion with the OE community and our
kernel maintainers since I know we build a specific qemuarm kernel but
in principle it could be done.

There are also qemux86, qemux86-64, qemuppc, qemumips, qemuarm64 and
qemumips64 fwiw. I'm not sure we make the best use of qemu in these so
I'd be interested in any opinions on what we're doing there... :)

FWIW we did leave qemuarm as an armv5 cpu since we tend to test a lot of
of armv7 on real hardware.

Cheers,

Richard

      reply	other threads:[~2015-09-18 22:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-14 22:36 [Qemu-devel] [RFC PATCH v1 0/8] QOM prop overloading + ARM MPCore CPUs Peter Crosthwaite
2015-06-14 22:36 ` [Qemu-devel] [RFC PATCH v1 1/8] qom: Refactor array property code path Peter Crosthwaite
2015-06-14 22:36 ` [Qemu-devel] [RFC PATCH v1 2/8] qom: Add property overloading Peter Crosthwaite
2015-06-14 22:36 ` [Qemu-devel] [RFC PATCH v1 3/8] qom: Implement overloaded property setters Peter Crosthwaite
2015-06-14 22:37 ` [Qemu-devel] [RFC PATCH v1 4/8] qom: Delete all instances of an overloaded property Peter Crosthwaite
2015-06-14 22:37 ` [Qemu-devel] [RFC PATCH v1 5/8] qom: Disallow getting/resolving " Peter Crosthwaite
2015-06-14 22:37 ` [Qemu-devel] [RFC PATCH v1 6/8] qom: Enable overloading of Alias properties Peter Crosthwaite
2015-06-14 22:37 ` [Qemu-devel] [RFC PATCH v1 7/8] arm: realview: Factor out CPU property setters Peter Crosthwaite
2015-06-14 22:37 ` [Qemu-devel] [RFC PATCH v1 8/8] arm: axxmpcore: Add CPUs to MPCore Peter Crosthwaite
2015-06-15  7:29 ` [Qemu-devel] [RFC PATCH v1 0/8] QOM prop overloading + ARM MPCore CPUs Liviu Ionescu
2015-06-18 23:21 ` Alistair Francis
2015-09-18 16:28 ` Peter Maydell
2015-09-18 16:46   ` Peter Crosthwaite
2015-09-18 17:01     ` Peter Maydell
2015-09-18 17:23     ` Richard Purdie
2015-09-18 18:14       ` Peter Crosthwaite
2015-09-18 22:27         ` Richard Purdie [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=1442615253.12435.61.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=afaerber@suse.de \
    --cc=alistair.francis@xilinx.com \
    --cc=crosthwaite.peter@gmail.com \
    --cc=crosthwaitepeter@gmail.com \
    --cc=ilg@livius.net \
    --cc=nathan@nathanrossi.com \
    --cc=p.fedin@samsung.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.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.