diff options
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index f350021258..2817acb19f 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -1295,6 +1295,10 @@ to your build configuration. | |||
1295 | elif drive_type.startswith("/dev/hd"): | 1295 | elif drive_type.startswith("/dev/hd"): |
1296 | logger.info('Using ide drive') | 1296 | logger.info('Using ide drive') |
1297 | vm_drive = "-drive file=%s,format=%s" % (self.rootfs, rootfs_format) | 1297 | vm_drive = "-drive file=%s,format=%s" % (self.rootfs, rootfs_format) |
1298 | elif drive_type.startswith("/dev/mmcblk"): | ||
1299 | logger.info('Using sdcard drive') | ||
1300 | vm_drive = '-drive id=sdcard0,if=none,file=%s,format=%s -device sdhci-pci -device sd-card,drive=sdcard0' \ | ||
1301 | % (self.rootfs, rootfs_format) | ||
1298 | elif drive_type.startswith("/dev/vdb"): | 1302 | elif drive_type.startswith("/dev/vdb"): |
1299 | logger.info('Using block virtio drive'); | 1303 | logger.info('Using block virtio drive'); |
1300 | vm_drive = '-drive id=disk0,file=%s,if=none,format=%s -device virtio-blk-device,drive=disk0%s' \ | 1304 | vm_drive = '-drive id=disk0,file=%s,if=none,format=%s -device virtio-blk-device,drive=disk0%s' \ |