]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
doc: qemu-riscv: describe attaching a disk image
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 4 Nov 2020 11:59:13 +0000 (12:59 +0100)
committerAndes <uboot@andestech.com>
Tue, 17 Nov 2020 07:09:22 +0000 (15:09 +0800)
How to add an emulated disk to QEMU may not be known to the user.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
doc/board/emulation/qemu-riscv.rst

index b68db95a45f0b702a1f8e640ad91eb8abe659792..3acd40630ea617ad78efd5d45d35edba806ca627 100644 (file)
@@ -105,3 +105,11 @@ configurations are:
 
     qemu-system-riscv64 -nographic -machine virt -bios spl/u-boot-spl \
     -device loader,file=u-boot.itb,addr=0x80200000
+
+An attached disk can be emulated by adding::
+
+    -device ich9-ahci,id=ahci \
+    -drive if=none,file=riscv64.img,format=raw,id=mydisk \
+    -device ide-hd,drive=mydisk,bus=ahci.0
+
+You will have to run 'scsi scan' to use it.