qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fabien Chouteau <chouteau@adacore.com>
To: "Andreas Färber" <afaerber@suse.de>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Peter Crosthwaite" <peter.crosthwaite@xilinx.com>,
	"Alexander Graf" <agraf@suse.de>,
	qemu-devel <qemu-devel@nongnu.org>,
	"Hervé Poussineau" <hpoussin@reactos.org>,
	qemu-ppc@nongnu.org, "Artyom Tarasenko" <atar4qemu@gmail.com>
Subject: Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image
Date: Fri, 05 Apr 2013 11:19:09 +0200	[thread overview]
Message-ID: <515E970D.1010502@adacore.com> (raw)
In-Reply-To: <515DB6DE.8040201@suse.de>

On 04/04/2013 07:22 PM, Andreas Färber wrote:
> Am 04.04.2013 18:26, schrieb Artyom Tarasenko:
>> On Thu, Apr 4, 2013 at 6:20 PM, Peter Maydell <peter.maydell@linaro.org> wrote:
>>> On 4 April 2013 17:17, Fabien Chouteau <chouteau@adacore.com> wrote:
>>>
>>> But -kernel for QEMU specifically means Linux kernel; you might
>>> argue we should have picked a different option name but we're
>>> stuck with it now.
>>
>> No, it's not Linux-only. At least qemu-system-sparc can load NetBSD
>> kernel with this option.
>
> Look, you're not exactly making friends if you keep pointing out that
> something works somewhere and you try to deduce a rule out of that. ;)
>
> -bios loads something where the hardware expects it, not necessarily
> RAM. If using ELF, the entry point must be configured appropriately.
>
> -kernel loads something into RAM in a way a Linux kernel can run (and it
> does not limit itself to it, so other use cases may or may not work).
>

May I add the -pflash option to this list :)

> Loading something in a way that matches neither hardware nor Linux
> kernel is - for good or bad - simply not really supported at this time.
>
> PMM tried to get a discussion going about how to solve that latter case
> properly some months ago, possibly prompted by Xilinx, and there were
> not many responses, especially no concrete solution beyond vaguely
> pointing to devices/objects rather than fiddling with existing
> -kernel/-bios command line options.

I didn't see this discussion (there too many traffic on Qemu-devel for
me, I can't read everything).

> So I really feel this discussion is out of scope for this PReP patchset!

My goal with this patchset is to be able to load an ELF file and start
the board at its entry point. So we are exactly in the scope.

If the -kernel option is for Linux only, we have to rename it to -linux.
And we remove the ambiguous -kernel option. The question is: Do we want
a -bsd, -solaris, -vxworks, -rtems, etc...?

I think we can keep the -bios option (maybe with an -firmware alias,
this is a question of vocabulary of different architectures). But it
should be possible to disable the default bios, with '-bios -' or '-bios
none' or '-bios null' or '-bios disabled' or whatever.

And I make a proposition for new options:

-elf loads an ELF file in RAM, ROM or whatever memory area and start the
board at entry point.

-raw-bin file=<filename>,addr=0x<load address> loads something at 'addr'

Or we can mix the two with a -load option:

-load file=<raw-bin-file>
-load file=<elf-file>
-load file=<raw-bin-file>,addr=<load address>
-load file=<raw-bin-file>,addr=<load address>,entry=<start addr>

The option can be used as many times as needed on the command line.

-- 
Fabien Chouteau

  reply	other threads:[~2013-04-05  9:19 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-03 16:40 [Qemu-devel] [PATCH 0/3] PPC PReP: Use ElF kernel on PReP Fabien Chouteau
2013-04-03 16:40 ` [Qemu-devel] [PATCH 1/3] PPC PReP: Load ELF kernel Fabien Chouteau
2013-04-03 16:40 ` [Qemu-devel] [PATCH 2/3] PPC PReP: Use kernel entry to set nip at reset Fabien Chouteau
2013-04-03 16:40 ` [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image Fabien Chouteau
2013-04-03 16:59   ` Alexander Graf
2013-04-04  8:37     ` Fabien Chouteau
2013-04-04  9:26       ` Alexander Graf
2013-04-04 16:19         ` Fabien Chouteau
2013-04-04  9:46       ` Artyom Tarasenko
2013-04-04  9:50         ` Alexander Graf
2013-04-04  9:57           ` Artyom Tarasenko
2013-04-04 11:53             ` Andreas Färber
2013-04-04 11:59               ` Alexander Graf
2013-04-05 23:00                 ` Scott Wood
2013-04-06  9:01                   ` Alexander Graf
2013-04-08 17:52                     ` Scott Wood
2013-07-04  8:35                       ` Julio Guerra
2013-07-10  9:16                         ` Julio Guerra
2013-04-06  9:07                   ` Alexander Graf
2013-04-06 11:27                     ` Peter Maydell
2013-04-06 11:38                       ` Alexander Graf
2013-04-06 13:08                         ` Peter Maydell
2013-04-06 20:07                         ` [Qemu-devel] [Qemu-ppc] " Edgar E. Iglesias
2013-04-06 20:12                           ` Alexander Graf
2013-04-07  0:52                             ` Edgar E. Iglesias
2013-04-04 12:43               ` [Qemu-devel] " Peter Maydell
2013-04-04 16:17                 ` Fabien Chouteau
2013-04-04 16:20                   ` Peter Maydell
2013-04-04 16:26                     ` Artyom Tarasenko
2013-04-04 16:30                       ` Peter Maydell
2013-04-04 16:34                         ` Alexander Graf
2013-04-04 16:41                           ` Peter Maydell
2013-04-04 16:51                             ` Alexander Graf
2013-04-04 16:52                               ` Peter Maydell
2013-04-04 22:32                                 ` Alexander Graf
2013-04-04 22:35                                   ` Peter Maydell
2013-04-04 16:46                         ` Artyom Tarasenko
2013-04-04 16:51                           ` Peter Maydell
2013-04-04 17:08                             ` Artyom Tarasenko
2013-04-04 17:22                       ` Andreas Färber
2013-04-05  9:19                         ` Fabien Chouteau [this message]
2013-04-05  9:30                           ` Peter Maydell
2013-04-04 17:05                   ` Andreas Färber
2013-04-05  2:32             ` Rob Landley
2013-04-04 11:16       ` Andreas Färber
2013-04-04 16:18         ` Fabien Chouteau
2013-04-03 16:47 ` [Qemu-devel] [PATCH 0/3] PPC PReP: Use ElF kernel on PReP Alexander Graf
2013-04-03 17:32   ` Andreas Färber
2013-04-04  8:17     ` Fabien Chouteau

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=515E970D.1010502@adacore.com \
    --to=chouteau@adacore.com \
    --cc=afaerber@suse.de \
    --cc=agraf@suse.de \
    --cc=atar4qemu@gmail.com \
    --cc=hpoussin@reactos.org \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).