All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm <qemu-arm@nongnu.org>
Subject: Re: [Qemu-arm] Booting Cortex-M3 Linux kernels in qemu
Date: Wed, 20 Jun 2018 15:54:01 -0700	[thread overview]
Message-ID: <20180620225401.GA9674@roeck-us.net> (raw)
In-Reply-To: <CAFEAcA-6BHUScxvBNZ6zCF0e9YxDuN-7Y6HveoCUuT3+r=tA0Q@mail.gmail.com>

Hi Peter,

On Wed, Jun 20, 2018 at 09:52:00AM +0100, Peter Maydell wrote:
> On 19 June 2018 at 18:43, Guenter Roeck <linux@roeck-us.net> wrote:
> > Thanks a lot for the link; that gave me enough information to find
> > a solution that is not too invasive and works for me.
> >
> > I need to be able to run a single kernel image against multiple
> > devicetree files and root file systems. This doesn't work with
> > above solution since it bundles everything together (or, rather,
> > it would break my workflow). However, it was easy enough to tweak the
> > boot wrapper and load it using "-bios". I added support for "-bios",
> > "-initrd", and "-dtb" to mps2_common_init(). That change is simple
> > enough to carry in my private qemu branch.
> 
> Glad you found something that works for you.
> 
> It is also possible to write a bootwrapper that loads a
> kernel/initrd via the semihosting ABI (assuming you trust
> your guest, since semihosting lets it read/write arbitrary
> host files).
> https://git.linaro.org/arm/models/boot-wrapper.git/
> is an example of doing that for A-profile.
> 

The simple bootloader does its job, and I prefer to have a uniform user
interface - it would really be nice to have consistent support for -bios,
-initrd, and -dtb in qemu. Getting it with ~70 LOC are worth it, even
if I'll have to carry the code along myself.

The last problem I had was that either uclibc-ng or Linux doesn't support
pthreads without MM. With pthreads disabled in buildroot (and with the
cmsdk-apb-timer fix I submitted), I am able to boot an-385 to shell.

Thanks,
Guenter

      reply	other threads:[~2018-06-20 22:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-14 21:54 [Qemu-arm] Booting Cortex-M3 Linux kernels in qemu Guenter Roeck
2018-06-15  9:16 ` Peter Maydell
2018-06-15 13:30   ` Guenter Roeck
2018-06-15 13:54     ` Peter Maydell
2018-06-15 18:13       ` Guenter Roeck
2018-06-15 22:49         ` Guenter Roeck
2018-06-16 11:13         ` Peter Maydell
2018-06-16 15:08           ` Guenter Roeck
2018-06-16 18:08             ` Peter Maydell
2018-06-16 18:53               ` Guenter Roeck
2018-06-19 12:41                 ` Peter Maydell
2018-06-19 17:43                   ` Guenter Roeck
2018-06-20  8:52                     ` Peter Maydell
2018-06-20 22:54                       ` Guenter Roeck [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=20180620225401.GA9674@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@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.