Skip to contentSkip to conversation

About the sd card reader

Qemu-devel Programmingkid 3 participants 3 messages Oct 1, 2015 – Oct 2, 2015 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 10 lines · Stefan Hajnoczi
Quoted 1 line · Programmingkid

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?

#3 lore raw
Quoted 9 lines · Programmingkid
Quoted 7 lines
Quoted 1 line

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

#4 lore raw
In reply to Programmingkid
Quoted 9 lines · Programmingkid
Quoted 6 lines · Stefan Hajnoczi
Quoted 1 line · Programmingkid

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.

Quoted 6 lines
Quoted 4 lines

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