Skip to content

mmc support for QEMU

Harm Berntsen u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gpio: do not include <asm/arch/gpio.h> on ARCH_QEMUarch/arm/include/asm/gpio.h+0 -01 reply
2/3acpi: Only include asm header when availableinclude/acpi/acpi_table.h+0 -04 replies
3/3mmc: Only retrieve cd pin when GPIO is enableddrivers/mmc/pci_mmc.c+0 -04 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/3
2/3R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] mmc support for QEMU

Hi,

This patch series allows you to use a mmc drive from within QEMU:

1. make qemu_arm_defconfig
2. Enable the CONFIG_DM_MMC, CONFIG_MMC_PCI, CONFIG_MMC_SDHCI options
3. Run quemu as follows:

?? qemu-system-arm
?? -machine virt,highmem=off \
?? -device sdhci-pci \
?? -device sd-card,drive=mydrive \
?? -drive id=mydrive,if=none,format=raw,file=mmcblk0.bin \
?? -bios u-boot.bin

The MMC image can now be used to boot :)

Regards,
Harm

Harm Berntsen (3):
? gpio: do not include <asm/arch/gpio.h> on ARCH_QEMU ? acpi: Only include asm table when available ? mmc: Only retrieve cd pin when GPIO is enabled

?arch/arm/include/asm/gpio.h | 3 ++-
?drivers/mmc/pci_mmc.c?????? | 2 ++
?include/acpi/acpi_table.h?? | 2 ++

?3 files changed, 6 insertions(+), 1 deletion(-)