mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
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>
This commit is contained in:
parent
2873ca2a78
commit
f0b1831864
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue