From: "Andreas Färber" <afaerber@suse.de>
To: Grant Likely <grant.likely@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>,
qemu-devel@nongnu.org, "patches@linaro.org" <patches@linaro.org>
Subject: Re: [Qemu-devel] [PATCH v2] Make -kernel flag optional on ARM.
Date: Fri, 30 Aug 2013 15:12:23 +0200 [thread overview]
Message-ID: <52209A37.9050306@suse.de> (raw)
In-Reply-To: <CACxGe6u8SuEbQhx19rnDYsY5NFgmOExx+uWSX0EapEsKPO8fkA@mail.gmail.com>
Hi,
Am 30.08.2013 12:58, schrieb Grant Likely:
> Hi Peter,
>
> What's the status on this patch? Is it able to be merged?
I had posted a slightly different patch earlier that just returned
immediately when qtest_enabled(). If we go with yours, we might be able
to drop mine, have you checked on that?
As for your patch I wonder, isn't there anything else to do in the
kernel_filename==NULL case?
Andreas
> On Wed, Jul 10, 2013 at 9:16 AM, Grant Likely <grant.likely@linaro.org> wrote:
>> Sometimes we want to boot the system via firmware instead of loading a
>> kernel into ram with the -kernel parameter. This patch makes the -kernel
>> parameter optional so that a bios image provided by the -pflash flag
>> will be executed.
>>
>> For example:
>> qemu-system-arm -M vexpress-a15 -pflash <filename>
>>
>> Note: Currently the file must be at least the size of the emulated flash
>> device (ie 64M for VExpress) otherwise QEMU will silently not use the
>> data. This will be fixed in a separate patch
>>
>> v2: just return if the kernel filename isn't provided
>>
>> Signed-off-by: Grant Likely <grant.likely@linaro.org>
>> Cc: Peter Maydell <peter.maydell@linaro.org>
>> Cc: qemu-devel@nongnu.org
>> ---
>> hw/arm/boot.c | 7 ++-----
>> 1 file changed, 2 insertions(+), 5 deletions(-)
>>
>> diff --git a/hw/arm/boot.c b/hw/arm/boot.c
>> index 7c0090f..e702fd7 100644
>> --- a/hw/arm/boot.c
>> +++ b/hw/arm/boot.c
>> @@ -361,11 +361,8 @@ void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info)
>> int big_endian;
>> QemuOpts *machine_opts;
>>
>> - /* Load the kernel. */
>> - if (!info->kernel_filename) {
>> - fprintf(stderr, "Kernel image must be specified\n");
>> - exit(1);
>> - }
>> + if (!info->kernel_filename)
>> + return;
>>
>> machine_opts = qemu_opts_find(qemu_find_opts("machine"), 0);
>> if (machine_opts) {
>> --
>> 1.8.1.2
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2013-08-30 13:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-10 8:16 [Qemu-devel] [PATCH v2] Make -kernel flag optional on ARM Grant Likely
2013-08-30 10:58 ` Grant Likely
2013-08-30 13:12 ` Andreas Färber [this message]
2013-08-30 13:24 ` Grant Likely
2013-08-30 13:29 ` Peter Maydell
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=52209A37.9050306@suse.de \
--to=afaerber@suse.de \
--cc=grant.likely@linaro.org \
--cc=patches@linaro.org \
--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 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).