Skip to contentSkip to conversation

HDD problem with Xilinx virtex-ml507 board

Qemu-devel Lê Đức Tài 1 participant 1 message Jun 11, 2011

lore
Share & tools
lore
#0 lore raw

Hi,
I have a problem when emulating virtex-ml507.
Loop device can not be mounted as hda, no partitions are listed.

My environment is as following:

1. Qemu 0.14.1 build with libfdt support.

2. Kernel download from Xilinx Git server.
config is customized from 44x/virtex_defconfig with enable some option to
make kernel can automount filesystem:
Under device drivers--->block devices:
CONFIG_BLK_DEV_LOOP
CONFIG_BLK_DEV_RAM
CONFIG_BLK_DEV_NBD
Under device drivers--->ATA/ATAPI/MFM/RLL support CONFIG_IDE_GD
CONFIG_IDE_GD_ATA
CONFIG_BLK_DEV_GENERIC
CONFIG_BLK_DEV_PIIX
Under file systems:
CONFIG_AUTOFS_FS
CONFIG_AUTOFS4_FS
Also the ext2, ext3 file systems are supported

3. RFS is busybox

Run Qemu:

$ qemu-system-ppc -M virtex-ml507 -kernel vmlinux -m 256 -hda rootfs_ppc.ext2 
-append "console=ttyS0 root=/dev/hda" -nographic
Output:
[    0.755969] NET: Registered protocol family 17
[    0.760477] hd: no drives specified - use hd=cyl,head,sectors on kernel 
command line
[    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 device "hda" or unknown-block(2,0)
[    0.792438] Please append a correct "root=" boot option; here are the 
available partitions:
[    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