* Re: [Qemu-devel] [RFC PATCH V1 1/2] arm_boot: added linux switch [not found] ` <f7256b2be069a80037b977e3f66f4d51418e35d0.1338512893.git.peter.crosthwaite@petalogix.com> @ 2012-06-01 9:26 ` Andreas Färber [not found] ` <CAFEAcA8RrDD_zthmmO99DsOPnYz3zGVcg5oLAnRvHR=smfBrpA@mail.gmail.com> 1 sibling, 0 replies; 2+ messages in thread From: Andreas Färber @ 2012-06-01 9:26 UTC (permalink / raw) To: Peter A. G. Crosthwaite Cc: edgar.iglesias, qemu-devel, john.williams, peter.maydell Am 01.06.2012 03:16, schrieb Peter A. G. Crosthwaite: > Added a switch to tell the bootloader that the image is linux and should be > bootstrapped as such. This is needed to boot an elf that is linux. > > Syntax would be: > > qemu-system-arm ... -kernel linux.elf -machine linux=on > > Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com> > --- > hw/arm_boot.c | 1 + > qemu-config.c | 4 ++++ > 2 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/hw/arm_boot.c b/hw/arm_boot.c > index 7447f5c..8e25873b 100644 > --- a/hw/arm_boot.c > +++ b/hw/arm_boot.c > @@ -320,6 +320,7 @@ void arm_load_kernel(CPUARMState *env, struct arm_boot_info *info) Beware that this signature has changed on qom-next branch, but I don't see a conflict here. Andreas > machine_opts = qemu_opts_find(qemu_find_opts("machine"), 0); > if (machine_opts) { > info->dtb_filename = qemu_opt_get(machine_opts, "dtb"); > + is_linux = qemu_opt_get_bool(machine_opts, "linux", 0) ? 1 : 0; > } else { > info->dtb_filename = NULL; > } > diff --git a/qemu-config.c b/qemu-config.c > index be84a03..0ee781c 100644 > --- a/qemu-config.c > +++ b/qemu-config.c > @@ -582,6 +582,10 @@ static QemuOptsList qemu_machine_opts = { > .name = "dtb", > .type = QEMU_OPT_STRING, > .help = "Linux kernel device tree file", > + }, { > + .name = "linux", > + .type = QEMU_OPT_BOOL, > + .help = "Bootstrap Linux", > }, > { /* End of list */ } > }, -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <CAFEAcA8RrDD_zthmmO99DsOPnYz3zGVcg5oLAnRvHR=smfBrpA@mail.gmail.com>]
* Re: [Qemu-devel] [RFC PATCH V1 1/2] arm_boot: added linux switch [not found] ` <CAFEAcA8RrDD_zthmmO99DsOPnYz3zGVcg5oLAnRvHR=smfBrpA@mail.gmail.com> @ 2012-06-25 1:51 ` Peter Crosthwaite 0 siblings, 0 replies; 2+ messages in thread From: Peter Crosthwaite @ 2012-06-25 1:51 UTC (permalink / raw) To: Peter Maydell Cc: edgar.iglesias, qemu-devel, john.williams, Andreas Färber Ping! @PMM You rejected my workaround in V2 (i.e. using -dtb to force is_linux) on the grounds that youd "accept some reasonable way of saying "this ELF file is a Linux kernel"," That brings us back to V1 - this patch. Any objections? Regards, Peter On Fri, Jun 1, 2012 at 11:41 AM, Peter Maydell <peter.maydell@linaro.org> wrote: > On 1 June 2012 02:16, Peter A. G. Crosthwaite > <peter.crosthwaite@petalogix.com> wrote: >> Added a switch to tell the bootloader that the image is linux and should be >> bootstrapped as such. This is needed to boot an elf that is linux. >> >> Syntax would be: >> >> qemu-system-arm ... -kernel linux.elf -machine linux=on > > This whole area is a mess. Personally I think we should have a > standard way to say "load this ELF file into memory" which isn't > target-dependent, and then we could make -kernel actually load > a kernel rather than its current "load a kernel unless it's an > ELF file in which case do something else". > > There are some back-compatibility issues there, though. > > -- PMM ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-25 1:52 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <cover.1338512893.git.peter.crosthwaite@petalogix.com> [not found] ` <f7256b2be069a80037b977e3f66f4d51418e35d0.1338512893.git.peter.crosthwaite@petalogix.com> 2012-06-01 9:26 ` [Qemu-devel] [RFC PATCH V1 1/2] arm_boot: added linux switch Andreas Färber [not found] ` <CAFEAcA8RrDD_zthmmO99DsOPnYz3zGVcg5oLAnRvHR=smfBrpA@mail.gmail.com> 2012-06-25 1:51 ` Peter Crosthwaite
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).