runqemu currently only supports scsi, ide and virtio drive types. Implement QB_DRIVE_TYPE=/dev/mmcblk which adds an sdhci-pci device and mounts the rootfs file as an sd card.
Signed-off-by: Alessandro Pecugi <[email protected]> --- scripts/runqemu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/runqemu b/scripts/runqemu index 69cd44864e..d86b80b86e 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -1295,6 +1295,10 @@ to your build configuration. elif drive_type.startswith("/dev/hd"): logger.info('Using ide drive') vm_drive = "-drive file=%s,format=%s" % (self.rootfs, rootfs_format) + elif drive_type.startswith("/dev/mmcblk"): + logger.info('Using sdcard drive') + vm_drive = '-drive id=sdcard0,if=none,file=%s,format=%s -device sdhci-pci -device sd-card,drive=sdcard0' \ + % (self.rootfs, rootfs_format) elif drive_type.startswith("/dev/vdb"): logger.info('Using block virtio drive'); vm_drive = '-drive id=disk0,file=%s,if=none,format=%s -device virtio-blk-device,drive=disk0%s' \ -- 2.34.1 [CleaTrial, SECO SpA]<https://clea.ai/demo>
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#203912): https://lists.openembedded.org/g/openembedded-core/message/203912 Mute This Topic: https://lists.openembedded.org/mt/108159085/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
