qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] IDE/SCSI devices support in ARM realview-pbx-a9 board
@ 2011-03-16 12:24 Sid Kapoor
  2011-03-16 12:37 ` Peter Maydell
  0 siblings, 1 reply; 3+ messages in thread
From: Sid Kapoor @ 2011-03-16 12:24 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 979 bytes --]

Hi all,

I am trying to run ARM realview-pbx-a9 board in QEMU. I am able to mount
rootfs through NFS, by appending root=/dev/nfs.
But I want to run the rootfs by creating a rootfs.img (by qemu-img command).

I was running NFS rootfs as follows:

$ qemu-system-arm -M realview-pbx-a9 -m 1024M -kernel zImage.nfs -serial
stdio -append "root=/dev/nfs nfsroot=xxx.xxx.xxx.xxx:/path-of-rootfs rw
console=ttyAMA0 rdinit=/sbin/init" -net nic -net tap,ifname=tap0,script=no

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.
What I want to ask is that is there support of IDE/SCSI devices on
realview-pbx-a9 board.
If yes, then how to enable it?

Thanks,
-- 
Siddharth Kapoor

[-- Attachment #2: Type: text/html, Size: 1261 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] IDE/SCSI devices support in ARM realview-pbx-a9 board
  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
  2011-03-16 13:10   ` Sid Kapoor
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Maydell @ 2011-03-16 12:37 UTC (permalink / raw)
  To: Sid Kapoor; +Cc: qemu-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] IDE/SCSI devices support in ARM realview-pbx-a9 board
  2011-03-16 12:37 ` Peter Maydell
@ 2011-03-16 13:10   ` Sid Kapoor
  0 siblings, 0 replies; 3+ messages in thread
From: Sid Kapoor @ 2011-03-16 13:10 UTC (permalink / raw)
  To: Peter Maydell; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1916 bytes --]

Hi PMM,

Thanks for a quick reply.
Well if this is the case then I would stick to the NFS rootfs itself.
Actually in the NFS case, the network bridge/tap that I have created is a
bit scrappy.
For eg., a file transfer runs for sometime and then halts for a minute or
two, resulting in almost 8-10 times slower network access through QEMU as
compared to my host machine. I guess this network behaviour is due to the
reason that the same bridge is used load rootfs as well as do the file
copy(or any other network related operation). That is the reason why I
thought of switching to rootfs.img option.
Is this network behaviour normal, or am I expecting too much ?

Thanks,
Sid

On Wed, Mar 16, 2011 at 6:07 PM, Peter Maydell <peter.maydell@linaro.org>wrote:

> 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
>



-- 
Siddharth Kapoor
Mobile - 9999169466

[-- Attachment #2: Type: text/html, Size: 2489 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-16 13:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-03-16 13:10   ` Sid Kapoor

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).