Received: from eggs.gnu.org ([140.186.70.92]:58573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVFJ8-00063Z-B2 for qemu-devel@nongnu.org; Fri, 10 Jun 2011 23:56:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVFJ7-0003hw-5S for qemu-devel@nongnu.org; Fri, 10 Jun 2011 23:56:22 -0400 Received: from nm7-vm0.bullet.mail.sg1.yahoo.com ([115.178.12.201]:22954) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QVFJ6-0003hs-3D for qemu-devel@nongnu.org; Fri, 10 Jun 2011 23:56:21 -0400 Message-ID: <941795.21033.qm@web77918.mail.sg1.yahoo.com> Date: Sat, 11 Jun 2011 11:56:14 +0800 (SGT) From: =?utf-8?B?TMOqIMSQ4bupYyBUw6Bp?= MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1665207453-1307764574=:21033" Subject: [Qemu-devel] HDD problem with Xilinx virtex-ml507 board List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" Cc: Alexander Graf , "qemu-devel@nongnu.orgDevelopers" --0-1665207453-1307764574=:21033 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi,=0AI have a problem when emulating virtex-ml507.=0ALoop device can not b= e mounted as hda, no partitions are listed.=0A=0AMy environment is as follo= wing:=0A=0A1. Qemu 0.14.1 build with libfdt support.=0A=0A2. Kernel downloa= d from Xilinx Git server.=0A config is customized from 44x/virtex_defcon= fig with enable some option to =0Amake kernel can automount filesystem:=0A = Under device drivers--->block devices:=0A CONFIG_BLK_DEV_LOOP=0A C= ONFIG_BLK_DEV_RAM=0A CONFIG_BLK_DEV_NBD=0A Under device drivers--->AT= A/ATAPI/MFM/RLL support =0A CONFIG_IDE_GD=0A CONFIG_IDE_GD_ATA=0A = CONFIG_BLK_DEV_GENERIC=0A CONFIG_BLK_DEV_PIIX=0A Under file systems:= =0A CONFIG_AUTOFS_FS=0A CONFIG_AUTOFS4_FS=0A Also the ext2, ext3 = file systems are supported=0A=0A3. RFS is busybox=0A=0ARun Qemu:=0A$ qemu-s= ystem-ppc -M virtex-ml507 -kernel vmlinux -m 256 -hda rootfs_ppc.ext2 =0A-a= ppend "console=3DttyS0 root=3D/dev/hda" -nographic=0AOutput:=0A[ 0.75596= 9] NET: Registered protocol family 17=0A[ 0.760477] hd: no drives specif= ied - use hd=3Dcyl,head,sectors on kernel =0Acommand line=0A[ 0.782726] = Root-NFS: no NFS server address=0A[ 0.782932] VFS: Unable to mount root = fs via NFS, trying floppy.=0A[ 0.790541] VFS: Cannot open root device "h= da" or unknown-block(2,0)=0A[ 0.792438] Please append a correct "root=3D= " boot option; here are the =0Aavailable partitions:=0A[ 0.795265] Kerne= l panic - not syncing: VFS: Unable to mount root fs on =0Aunknown-block(2,0= )=0A=0ACan you help me for this problem?=0AThank.=0A=0ATaiLD --0-1665207453-1307764574=:21033 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi,
I have a problem when emulatin= g virtex-ml507.
Loop device can not be mounted as hda, no partiti= ons are listed.

My environment is as following:
=
1. Qemu 0.14.1 build with libfdt support.

2. Kernel dow= nload from Xilinx Git server.

    con
fig is customized from 44x/virtex_defconfig with enable some option to make kerne= l can automount filesystem:
    Under device drivers--->block devices:
    CONFIG_BLK_DEV_LOOP
  &= nbsp; CONFIG_BLK_DEV_RAM
    CONFIG_BLK_DEV_NBD

  &= nbsp; Under device drivers--->ATA/ATAPI/MFM/RLL support
 = ;   CONFIG_IDE_GD
    CONFIG_IDE_GD_ATA
&nbs= p;   CONFIG_BLK_DEV_GENERIC
    CONFIG_BLK_DEV_= PIIX

 &= nbsp;  Under file systems:
    CONFIG_A= UTOFS_FS
    CONFIG_AUTOFS= 4_FS

=     Also the ext2, ext3  file systems are supported<= br>
3. RFS is busybox

Run Qemu:
$ qemu-system-ppc -M virtex-ml507 -k= ernel vmlinux -m 256 -hda rootfs_ppc.ext2 -append "console=3DttyS0 root=3D/dev/hda" -nograp= hic
Output:
[    0.755969] NET: Re= gistered protocol family 17
[    0.760477] hd: no = drives specified - use hd=3Dcyl,head,sectors on kernel command line<= br style=3D"font-family: Courier New,courier,monaco,monospace,sans-serif;">= [    0.782726] Root-NFS: no NFS server address
= [    0.782932] VFS: Unable to mount root fs via NFS, trying floppy.

[    0.790541] VFS: Cannot open root devi= ce "hda" or unknown-block(2,0)
[    0.792438] Plea= se append a correct "root=3D" boot option; here are the available partition= s:
[    0.795265] Kernel panic - not syncing: VFS:= Unable to mount root fs on unknown-block(2,0)


Can you= help me for this problem?
Thank.

TaiLD

--0-1665207453-1307764574=:21033--