diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-11-04 12:59:13 +0100 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2020-11-17 15:09:22 +0800 |
commit | f0b1831864db8c1f234983672f414ced35ee3902 (patch) | |
tree | e399aaef62e3f3a511d9ae199781ead65f3c69b3 | |
parent | 2873ca2a7855d4a6f2c6cf931cb5a1e8dfce43c0 (diff) | |
download | u-boot-f0b1831864db8c1f234983672f414ced35ee3902.zip u-boot-f0b1831864db8c1f234983672f414ced35ee3902.tar.gz u-boot-f0b1831864db8c1f234983672f414ced35ee3902.tar.bz2 |
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 <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
-rw-r--r-- | doc/board/emulation/qemu-riscv.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/emulation/qemu-riscv.rst index b68db95..3acd406 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. |