From: Peter Maydell <peter.maydell@linaro.org>
To: Prasad Joshi <prasadjoshi124@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu: hardware error: pl011_read: Bad offset 16000018
Date: Mon, 29 Nov 2010 15:13:21 +0000 [thread overview]
Message-ID: <AANLkTi=G6DRMmOTufG3JfSEnorhD0PeE_yp0xpXq5=c2@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=mmd5xxGBOZD+GmQQsf7ZD=p8Z_7VZD4s_cuKT@mail.gmail.com>
On 29 November 2010 14:37, Prasad Joshi <prasadjoshi124@gmail.com> wrote:
> I am running QEMU Arm emulation on x86_64 machine. I downloaded the
> arm-test kernel and the initrd image available on QEMU download site.
>
> When I run the qemu-system-arm with the memory less than or equal to
> 256M everything works fine.
> prasad@prasad-desktop:~/Downloads/arm-test$ qemu-system-arm -kernel
> zImage.integrator -initrd arm_root.img -m 256
>
> But, when I assign memory more than 256M it fails to run
This is because the Integrator development board only supports
a maximum of 256M of RAM (the hole in its physical address
layout for RAM is that large, and after that come some memory
mapped devices).
> prasad@prasad-desktop:~/Downloads/arm-test$ qemu-system-arm -kernel
> zImage.integrator -initrd arm_root.img -m 512
> qemu: hardware error: pl011_read: Bad offset 16000018
It's a bug that we don't do something sensible when the user
requests more memory than the board supports (like bailing
out with an error), rather than blindly mapping both RAM and
devices into the same place and then booting the kernel.
(Slight tangent but related:) the interface to the board init
routine for "how much RAM should we model?" is a bit
limiting because there's no way to tell the difference between
"ram size specified by user on command line" and "ram size
which is a random default from vl.c". (It would be useful for
most boards models to default to whatever the maximum
standard amount of memory for them is, for instance.)
Incidentally the Integrator is a truly ancient devboard and I'm
not sure it deserves to be the default any more ;-)
-- PMM
next prev parent reply other threads:[~2010-11-29 15:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-29 14:37 [Qemu-devel] qemu: hardware error: pl011_read: Bad offset 16000018 Prasad Joshi
2010-11-29 15:13 ` Peter Maydell [this message]
2010-11-29 15:45 ` Prasad Joshi
2010-11-29 15:50 ` 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='AANLkTi=G6DRMmOTufG3JfSEnorhD0PeE_yp0xpXq5=c2@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=prasadjoshi124@gmail.com \
--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).