qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Chubb <peter.chubb@nicta.com.au>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] qemu-system-arm and bootloader emulation
Date: Thu, 29 Sep 2011 12:26:20 +1000	[thread overview]
Message-ID: <w4zkhoytgz.wl%peter@chubb.wattle.id.au> (raw)

Currently, qemu-system-arm attempts to emulate a simple boot-loader if 
it thinks it is booting a u-boot image or a raw image (see
hw/arm-boot.c), and not if it's booting an ELF image.

I think this is a little backwards: when I give a raw ROM image as
argument I want no boot-loader, and when I give an ELF image I want
a bootloader to do its stuff, particularly when emulating an MP
system.

And sometimes a uimage is something that is a rom image (and doesn't
need a bootloader) and sometimes it is a Linux or other OS kernel
(that may need some bootloader support).

I'm not sure what the `right' thing to do is: but I would like more
control over whether the bootloader code is executed.  One possibility
is to provide an environment variable, say, `QEMU_RAW'.  Another is to
look at the load address --- if it's equal to boot_info->loader_start
then this is a raw ROM image and qemu should treate the first few
bytes as the reset vector, and otherwise emulate the boot-loader.

What do you think?
--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au           ERTOS within National ICT Australia

                 reply	other threads:[~2011-09-29  2:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=w4zkhoytgz.wl%peter@chubb.wattle.id.au \
    --to=peter.chubb@nicta.com.au \
    --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).