Actually I try to emulate a real eMMC. I thought an sdcard would be sufficient, 
but I'm not sure.

eMMC (Embedded Multi Media Card) has a feature called RPMB (Replay Protected 
Memory Block).

Now if I think more about it I should rephrase the question. 

How to configure qemu to emulate an eMMC drive?

The setup is running on a real hardware, but we want to use qemu for 
development. The device are expensive and if we can get the setup running on 
qemu we would be independent to the hardware for development and beside we 
would safe money.

Thank you
Sven

-----Ursprüngliche Nachricht-----
Von: Peter Maydell <peter.mayd...@linaro.org> 
Gesendet: Dienstag, 18. Januar 2022 20:30
An: Schultschik, Sven (DI PA DCP R&D 2) <sven.schultsc...@siemens.com>
Cc: qemu-discuss@nongnu.org
Betreff: Re: qemu aarch64 virt sdcard

On Tue, 18 Jan 2022 at 18:13, Schultschik, Sven <sven.schultsc...@siemens.com> 
wrote:
> I try to add an eMMC to a qemu aarch64 virt machine. This for I try to use 
> the type if=sd but it fails and I don’t find any hint, how to do it properly.

This is because the virt board doesn't have an SD controller.

> So I search now a while how I could add a sd-card, mmc, emmc drive to 
> a virt machine type.#
>
>
>
> Or is there another way to add such a drive? I need it for the secure boot 
> optee RPMB setup.

You could try plugging in the PCI SD controller with '-device pc-sdhci'
and then plugging the emulated SD card into that. But if you can I would really 
recommend not trying to use SD card. Use some other kind of block device -- 
surely OPTEE has support for other kinds of disk ?

thanks
-- PMM

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to