From: Heinrich Schuchardt Date: Wed, 4 Nov 2020 11:59:13 +0000 (+0100) Subject: doc: qemu-riscv: describe attaching a disk image X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=f0b1831864db8c1f234983672f414ced35ee3902;p=u-boot.git doc: qemu-riscv: describe attaching a disk image How to add an emulated disk to QEMU may not be known to the user. Signed-off-by: Heinrich Schuchardt Reviewed-by: Bin Meng --- diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/emulation/qemu-riscv.rst index b68db95a45..3acd40630e 100644 --- a/doc/board/emulation/qemu-riscv.rst +++ b/doc/board/emulation/qemu-riscv.rst @@ -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.