All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] mmc support for QEMU
@ 2020-10-30  8:45 Harm Berntsen
  2020-10-30 14:34 ` Bin Meng
  0 siblings, 1 reply; 3+ messages in thread
From: Harm Berntsen @ 2020-10-30  8:45 UTC (permalink / raw)
  To: u-boot

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(-)

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

* [PATCH 0/3] mmc support for QEMU
  2020-10-30  8:45 [PATCH 0/3] mmc support for QEMU Harm Berntsen
@ 2020-10-30 14:34 ` Bin Meng
  2020-10-30 14:53   ` Harm Berntsen
  0 siblings, 1 reply; 3+ messages in thread
From: Bin Meng @ 2020-10-30 14:34 UTC (permalink / raw)
  To: u-boot

On Fri, Oct 30, 2020 at 6:56 PM Harm Berntsen <harm.berntsen@nedap.com> wrote:
>
> 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

I don't see changes made to qemu_arm_defconfig. Is that a future patch?

>
> The MMC image can now be used to boot :)
>

Regards,
Bin

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

* [PATCH 0/3] mmc support for QEMU
  2020-10-30 14:34 ` Bin Meng
@ 2020-10-30 14:53   ` Harm Berntsen
  0 siblings, 0 replies; 3+ messages in thread
From: Harm Berntsen @ 2020-10-30 14:53 UTC (permalink / raw)
  To: u-boot

Hi,

I didn't include changes in the defconfig because you need to manually
add the device to the QEMU virt machine via the command line. On the
other hand the u-boot binary size does not really matter for QEMU
environments. For CI it will also be nice to ensure this set-up will
build.

I'll send in a patch for the config when this series has been merged!

Kind regards,
Harm

-----Original Message-----
From: Bin Meng <bmeng.cn@gmail.com>
To: Harm Berntsen <harm.berntsen@nedap.com>
Cc: u-boot at lists.denx.de <u-boot@lists.denx.de>
Subject: Re: [PATCH 0/3] mmc support for QEMU
Date: Fri, 30 Oct 2020 22:34:10 +0800

On Fri, Oct 30, 2020 at 6:56 PM Harm Berntsen <harm.berntsen@nedap.com>
wrote:
> 
> 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

I don't see changes made to qemu_arm_defconfig. Is that a future patch?

> 
> The MMC image can now be used to boot :)
> 

Regards,
Bin

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

end of thread, other threads:[~2020-10-30 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30  8:45 [PATCH 0/3] mmc support for QEMU Harm Berntsen
2020-10-30 14:34 ` Bin Meng
2020-10-30 14:53   ` Harm Berntsen

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.