qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] About the sd card reader
       [not found] ` <20151001132318.GD10671@stefanha-thinkpad.redhat.com>
@ 2015-10-01 16:27   ` Programmingkid
  2015-10-02  8:12     ` Paolo Bonzini
  2015-10-02 11:50     ` Stefan Hajnoczi
  0 siblings, 2 replies; 3+ messages in thread
From: Programmingkid @ 2015-10-01 16:27 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel qemu-devel


On Oct 1, 2015, at 9:23 AM, Stefan Hajnoczi wrote:

> On Sat, Sep 26, 2015 at 10:24:31AM -0400, Programmingkid wrote:
>> I was looking at the commit history for sd.c and noticed your patch. Would you know how to make the SD card reader work for a guest like Windows, Linux, or Mac OS X? I'm trying to use this device on qemu-system-ppc and qemu-system-i386. Any help would be great.
> 
> sd.c is the core SD card emulation code.  It's not a complete device
> itself, you need a host controller interface like sdhci.c.
> 
> The sdhci-pci device might work, if you can tell a Windows/Mac/etc SDHCI
> PCI driver to accept the Red Hat 1fa4:0007 PCI ID.
> 
> Stefan

Would this device work if I installed Red Hat Linux in qemu-system-i386? 

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

* Re: [Qemu-devel] About the sd card reader
  2015-10-01 16:27   ` [Qemu-devel] About the sd card reader Programmingkid
@ 2015-10-02  8:12     ` Paolo Bonzini
  2015-10-02 11:50     ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2015-10-02  8:12 UTC (permalink / raw)
  To: Programmingkid, qemu-devel



On 01/10/2015 18:27, Programmingkid wrote:
> > > I was looking at the commit history for sd.c and noticed your patch. Would you know how to make the SD card reader work for a guest like Windows, Linux, or Mac OS X? I'm trying to use this device on qemu-system-ppc and qemu-system-i386. Any help would be great.
> > 
> > sd.c is the core SD card emulation code.  It's not a complete device
> > itself, you need a host controller interface like sdhci.c.
> > 
> > The sdhci-pci device might work, if you can tell a Windows/Mac/etc SDHCI
> > PCI driver to accept the Red Hat 1fa4:0007 PCI ID.
> 
> Would this device work if I installed Red Hat Linux in qemu-system-i386? 

The driver should be entirely generic, it should depend on the PCI class
rather than the PCI id.  The Linux driver (not just RH or Fedora---it's
the same for all distros) is that way, but on Windows it's possible that
manufacturers customize the driver to only match a particular vendor or
device id.

A quick Googling suggests that you want the "SDA Standard Compliant SD
Host Controller" Windows driver.

Paolo

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

* Re: [Qemu-devel] About the sd card reader
  2015-10-01 16:27   ` [Qemu-devel] About the sd card reader Programmingkid
  2015-10-02  8:12     ` Paolo Bonzini
@ 2015-10-02 11:50     ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2015-10-02 11:50 UTC (permalink / raw)
  To: Programmingkid; +Cc: qemu-devel qemu-devel

On Thu, Oct 01, 2015 at 12:27:09PM -0400, Programmingkid wrote:
> 
> On Oct 1, 2015, at 9:23 AM, Stefan Hajnoczi wrote:
> 
> > On Sat, Sep 26, 2015 at 10:24:31AM -0400, Programmingkid wrote:
> >> I was looking at the commit history for sd.c and noticed your patch. Would you know how to make the SD card reader work for a guest like Windows, Linux, or Mac OS X? I'm trying to use this device on qemu-system-ppc and qemu-system-i386. Any help would be great.
> > 
> > sd.c is the core SD card emulation code.  It's not a complete device
> > itself, you need a host controller interface like sdhci.c.
> > 
> > The sdhci-pci device might work, if you can tell a Windows/Mac/etc SDHCI
> > PCI driver to accept the Red Hat 1fa4:0007 PCI ID.
> > 
> > Stefan
> 
> Would this device work if I installed Red Hat Linux in qemu-system-i386? 

I don't know for sure.  You'd have to check the Linux sources to see if
any driver wants that PCI ID.

Stefan

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

end of thread, other threads:[~2015-10-02 11:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87E01859-7A3A-4EB5-A1B5-6D8386C2D3AF@gmail.com>
     [not found] ` <20151001132318.GD10671@stefanha-thinkpad.redhat.com>
2015-10-01 16:27   ` [Qemu-devel] About the sd card reader Programmingkid
2015-10-02  8:12     ` Paolo Bonzini
2015-10-02 11:50     ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).