qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] how to ues qemu -sd option?


From: Peter Crosthwaite
Subject: Re: [Qemu-devel] how to ues qemu -sd option?
Date: Wed, 20 Feb 2013 21:49:02 +1000

Hi Weng Fan,

On Wed, Feb 20, 2013 at 6:18 PM, Markus Armbruster <address@hidden> wrote:
> Weng Fan <address@hidden> writes:
>
>> Hi all:
>> I want to use the qemu's -sd option to  emulate a sd card, so that I
>> can get more free space.
>> When I use the command "qemu-system-ppc -M mpc8544ds -kernel uImage
>> -initrd initrd.img
>> -append "root=/dev/ram rdinit=/linuxrc" -nographic -sd sd.img" to
>> start the kernel image, I can't
>> find any device like mmcblk in the /dev .
>>
>> Any ideas how to get this work?
>
> "-sd sd.img" is shorthand for "-drive if=sd,index=0,file=sd.img".  Like
> all -drive (except for if=none), it requests the board to create a
> suitable device.  Boards act on some requests, and ignore others.
> mpc8544ds ignores if=sd.
>
> To add devices beyond what the board code can do, use -device, like
> this:
>
>     -drive if=none,id=sd0,file=sd.img -device DEV-MODEL,drive=sd0
>

With minimal effort you may be able to mock something up with SDHCI,
at least in its PIO mode.The SDHCI patches are currently doing review
cycles on list.

Regards,
Peter

> with a suitable sd card DEV-MODEL.  However, I'm not aware of an sd card
> device model that can be plugged that way.  Perhaps Andreas (cc'ed)
> knows more.
>
> See also docs/qdev-device-use.txt section "Block Devices".
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]