qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Sid Kapoor <sidkapoor2000@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] IDE/SCSI devices support in ARM realview-pbx-a9 board
Date: Wed, 16 Mar 2011 12:37:42 +0000	[thread overview]
Message-ID: <AANLkTikNmd5B9mok-0UZh4XwnAXp1VSwd4ztnXDzo05k@mail.gmail.com> (raw)
In-Reply-To: <AANLkTiks4-6JPxPVk7G0FiamCQ0UnoX1EcmoennvQpqM@mail.gmail.com>

On 16 March 2011 12:24, Sid Kapoor <sidkapoor2000@gmail.com> wrote:
> I am trying to run qemu after building rootfs.img as follows:
>
> $ qemu-system-arm -M realview-pbx-a9 -m 1024M -kernel zImage.rfs -serial
> stdio -append "root=/dev/hda1 rw console=ttyAMA0 rdinit=/sbin/init" -net nic
> -net tap,ifname=tap0,script=no -hda rootfs.img
>
> But the issue I am facing is that there is no /dev/hda1 or similar device
> nodes in the qemu setup.

This is because the PCI controller for the Realview PBX is not modelled
by QEMU, so there is no way to proivde an IDE or SCSI controller to the
guest.

However, if you are willing to run qemu built from git (rather than
from a released version), there was support added very recently for
the SD card. This lets you run your image as an SD card image, by passing
'-sd rootfs.img' to qemu and using "root=/dev/mmcblk0p1" rather than
hda1.

It's possible that the SD card approach may impose restrictions on
maximum size or alignment of the image which an hd image does not;
I haven't investigated.

Hope this helps
-- PMM

  reply	other threads:[~2011-03-16 12:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-16 12:24 [Qemu-devel] IDE/SCSI devices support in ARM realview-pbx-a9 board Sid Kapoor
2011-03-16 12:37 ` Peter Maydell [this message]
2011-03-16 13:10   ` Sid Kapoor

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=AANLkTikNmd5B9mok-0UZh4XwnAXp1VSwd4ztnXDzo05k@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sidkapoor2000@gmail.com \
    /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).