mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-17 00:33:06 +00:00
8505c0bb5c
* Add a new page about the emulation of block devices * Add semihosting to the emulation index page * Set toc maxdepth to 1 to improve readability Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
38 lines
822 B
ReStructuredText
38 lines
822 B
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0+
|
|
|
|
Emulation of block devices
|
|
--------------------------
|
|
|
|
QEMU can emulate common block devices by adding the following parameters to
|
|
the qemu-system-<arch> command line:
|
|
|
|
* MMC
|
|
|
|
.. code-block:: bash
|
|
|
|
-device sdhci-pci,sd-spec-version=3 \
|
|
-device sd-card,drive=MMC1 \
|
|
-drive if=none,file=disk.img,format=raw,id=MMC1
|
|
|
|
* NVMe
|
|
|
|
.. code-block:: bash
|
|
|
|
-drive if=none,file=disk.img,format=raw,id=NVME1 \
|
|
-device nvme,drive=NVME1,serial=nvme-1
|
|
|
|
* SATA
|
|
|
|
.. code-block:: bash
|
|
|
|
-device ahci,id=ahci0 \
|
|
-drive if=none,file=disk.img,format=raw,id=SATA1 \
|
|
-device ide-hd,bus=ahci0.0,drive=SATA1
|
|
|
|
* USB
|
|
|
|
.. code-block:: bash
|
|
|
|
-device qemu-xhci \
|
|
-drive if=none,file=disk.img,format=raw,id=USB1 \
|
|
-device usb-storage,drive=USB1
|