All of lore.kernel.org
 help / color / mirror / Atom feed
* QEMU support for SD/MMC card
@ 2015-05-03 21:24 Patrick Doyle
  2015-05-05 10:40 ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Doyle @ 2015-05-03 21:24 UTC (permalink / raw)
  To: yocto

Can anybody point me in the direction of running an arm based QEMU
with a (simulated) SD/MMC card?

From the documentation for QEMU, I see that I can pass a -drive
parameter to QEMU with an if=sd option, which sounds (reads?) an awful
lot like I can simulate an SD/MMC card.

But looking through the Yocto supplied runqemu script, (actually,
runqemu-internal) it appears that only supports -hda or -virtio disks.

--wpd


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

* Re: QEMU support for SD/MMC card
  2015-05-03 21:24 QEMU support for SD/MMC card Patrick Doyle
@ 2015-05-05 10:40 ` Burton, Ross
  2015-05-05 12:18   ` Patrick Doyle
  0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2015-05-05 10:40 UTC (permalink / raw)
  To: Patrick Doyle; +Cc: yocto

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

On 3 May 2015 at 22:24, Patrick Doyle <wpdster@gmail.com> wrote:

> Can anybody point me in the direction of running an arm based QEMU
> with a (simulated) SD/MMC card?
>
> From the documentation for QEMU, I see that I can pass a -drive
> parameter to QEMU with an if=sd option, which sounds (reads?) an awful
> lot like I can simulate an SD/MMC card.
>
> But looking through the Yocto supplied runqemu script, (actually,
> runqemu-internal) it appears that only supports -hda or -virtio disks.
>

I've no experience using if=sd, but at the end of the day runqemu is just a
helper script, you can pass the right arguments to qemu directly or patch
the script locally.

Ross

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

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

* Re: QEMU support for SD/MMC card
  2015-05-05 10:40 ` Burton, Ross
@ 2015-05-05 12:18   ` Patrick Doyle
  2015-05-05 14:04     ` Rob Woolley
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Doyle @ 2015-05-05 12:18 UTC (permalink / raw)
  To: Burton, Ross; +Cc: yocto

On Tue, May 5, 2015 at 6:40 AM, Burton, Ross <ross.burton@intel.com> wrote:
> On 3 May 2015 at 22:24, Patrick Doyle <wpdster@gmail.com> wrote:
>>
>> Can anybody point me in the direction of running an arm based QEMU
>> with a (simulated) SD/MMC card?
>>
>> From the documentation for QEMU, I see that I can pass a -drive
>> parameter to QEMU with an if=sd option, which sounds (reads?) an awful
>> lot like I can simulate an SD/MMC card.
>>
>> But looking through the Yocto supplied runqemu script, (actually,
>> runqemu-internal) it appears that only supports -hda or -virtio disks.
>
>
> I've no experience using if=sd, but at the end of the day runqemu is just a
> helper script, you can pass the right arguments to qemu directly or patch
> the script locally.

Thanks Ross.  I've been fiddling with that a bit (a very little bit,
being distracted by other, higher priority tasks), but haven't figured
out the right incantation yet.  I may have to (gasp) look at the
source code :-)  Or maybe the monkey in me will eventually press the
right combination of keys to make it work.  The lazy programmer in me
was hoping somebody would say "Oh yeah, I do that all the time.  I
just blah blah blah".

--wpd


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

* Re: QEMU support for SD/MMC card
  2015-05-05 12:18   ` Patrick Doyle
@ 2015-05-05 14:04     ` Rob Woolley
  0 siblings, 0 replies; 4+ messages in thread
From: Rob Woolley @ 2015-05-05 14:04 UTC (permalink / raw)
  To: Patrick Doyle; +Cc: yocto

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

I was able to do something similar with my Intel Quark builds.  This is the
command line that worked for me:

/usr/local/bin/qemu-system-i386 \
     -kernel $KERNEL_FILE \
     -append "$KERNEL_CMDLINE" \
     -m 320 \
     -smp 2 \
     -net nic,vlan=1,model=e1000 \
     -net user,vlan=1 \
     -boot order=nc \
     -watchdog i6300esb \
     -rtc base=localtime \
     -pidfile $PID_FILE \
     -drive if=sd,file=$DISK_FILE \
     -device sdhci-pci \
     -display none \
     -monitor null \
     -serial stdio \
     -no-reboot

I did however, have to grab QEMU from git in order to use the sdhci-pci
device.  I recall that the changes went in around Jan/Feb 2015.

Regards,
Rob

On Tue, May 5, 2015 at 8:18 AM, Patrick Doyle <wpdster@gmail.com> wrote:

> On Tue, May 5, 2015 at 6:40 AM, Burton, Ross <ross.burton@intel.com>
> wrote:
> > On 3 May 2015 at 22:24, Patrick Doyle <wpdster@gmail.com> wrote:
> >>
> >> Can anybody point me in the direction of running an arm based QEMU
> >> with a (simulated) SD/MMC card?
> >>
> >> From the documentation for QEMU, I see that I can pass a -drive
> >> parameter to QEMU with an if=sd option, which sounds (reads?) an awful
> >> lot like I can simulate an SD/MMC card.
> >>
> >> But looking through the Yocto supplied runqemu script, (actually,
> >> runqemu-internal) it appears that only supports -hda or -virtio disks.
> >
> >
> > I've no experience using if=sd, but at the end of the day runqemu is
> just a
> > helper script, you can pass the right arguments to qemu directly or patch
> > the script locally.
>
> Thanks Ross.  I've been fiddling with that a bit (a very little bit,
> being distracted by other, higher priority tasks), but haven't figured
> out the right incantation yet.  I may have to (gasp) look at the
> source code :-)  Or maybe the monkey in me will eventually press the
> right combination of keys to make it work.  The lazy programmer in me
> was hoping somebody would say "Oh yeah, I do that all the time.  I
> just blah blah blah".
>
> --wpd
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

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

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

end of thread, other threads:[~2015-05-05 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-03 21:24 QEMU support for SD/MMC card Patrick Doyle
2015-05-05 10:40 ` Burton, Ross
2015-05-05 12:18   ` Patrick Doyle
2015-05-05 14:04     ` Rob Woolley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.