From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45377 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pzpz0-0006FQ-JZ for qemu-devel@nongnu.org; Wed, 16 Mar 2011 08:37:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pzpyy-0004k4-0D for qemu-devel@nongnu.org; Wed, 16 Mar 2011 08:37:44 -0400 Received: from mail-vx0-f173.google.com ([209.85.220.173]:51611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pzpyx-0004jp-UE for qemu-devel@nongnu.org; Wed, 16 Mar 2011 08:37:43 -0400 Received: by vxb41 with SMTP id 41so1678072vxb.4 for ; Wed, 16 Mar 2011 05:37:43 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 16 Mar 2011 12:37:42 +0000 Message-ID: Subject: Re: [Qemu-devel] IDE/SCSI devices support in ARM realview-pbx-a9 board From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sid Kapoor Cc: qemu-devel@nongnu.org On 16 March 2011 12:24, Sid Kapoor 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=3D/dev/hda1 rw console=3DttyAMA0 rdinit=3D/sbin/init"= -net nic > -net tap,ifname=3Dtap0,script=3Dno -hda rootfs.img > > But the issue I am facing is that there is no /dev/hda1 or similar device > nodes=C2=A0in 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=3D/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