On 10/15/24 17:20, Daniel P. Berrangé wrote:
On Tue, Oct 15, 2024 at 05:17:26PM +0200, Cédric Le Goater wrote:
On 10/15/24 17:00, Philippe Mathieu-Daudé wrote:
On 15/10/24 10:56, Jan Luebbe wrote:
For testing eMMC-specific functionality (such as handling boot
partitions), it would be very useful to attach them to generic VMs such
as x86_64 via the sdhci-pci device:
   ...
   -drive if=none,id=emmc-drive,file=emmc.img,format=raw \
   -device sdhci-pci \
   -device emmc,id=emmc0,drive=emmc-drive,boot-partition-size=1048576 \
   ...

While most eMMCs are soldered to boards, they can also be connected to
SD controllers with just a passive adapter, such as:
   https://docs.radxa.com/en/accessories/emmc-to-usd
   https://github.com/voltlog/emmc-wfbga153-microsd

The only change necessary to make the options above work is to avoid
disabling user_creatable, so do that. The SDHCI-PCI driver in the Linux
kernel already supports this just fine.

Signed-off-by: Jan Luebbe <j...@pengutronix.de>

Nice !

Would it be possible to add an avocado test ?

NB, no new avocado tests please. Only use the recently introduced
'functional' tests framework for new tests.

True. That reminds me that the aspeed test file needs a conversion.

Thanks,

C.




With regards,
Daniel


Reply via email to