* [PATCH 1/1] doc: qemu-riscv: describe attaching a disk image
@ 2020-11-04 11:59 Heinrich Schuchardt
2020-11-05 8:05 ` Bin Meng
0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2020-11-04 11:59 UTC (permalink / raw)
To: u-boot
How to add an emulated disk to QEMU may not be known to the user.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
cf.
riscv: enable SATA disk on QEMU RISC-V
https://patchwork.ozlabs.org/project/uboot/list/?series=212093
---
doc/board/emulation/qemu-riscv.rst | 8 ++++++++
1 file changed, 8 insertions(+)
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.
--
2.28.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 1/1] doc: qemu-riscv: describe attaching a disk image
2020-11-04 11:59 [PATCH 1/1] doc: qemu-riscv: describe attaching a disk image Heinrich Schuchardt
@ 2020-11-05 8:05 ` Bin Meng
0 siblings, 0 replies; 2+ messages in thread
From: Bin Meng @ 2020-11-05 8:05 UTC (permalink / raw)
To: u-boot
On Wed, Nov 4, 2020 at 7:59 PM Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> How to add an emulated disk to QEMU may not be known to the user.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> cf.
> riscv: enable SATA disk on QEMU RISC-V
> https://patchwork.ozlabs.org/project/uboot/list/?series=212093
> ---
> doc/board/emulation/qemu-riscv.rst | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> 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 \
nits: riscv.img, as I think 32-bit RISC-V should also work
> + -device ide-hd,drive=mydisk,bus=ahci.0
> +
> +You will have to run 'scsi scan' to use it.
> --
Otherwise LGTM:
Reviewed-by: Bin Meng <bin.meng@windriver.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-05 8:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-04 11:59 [PATCH 1/1] doc: qemu-riscv: describe attaching a disk image Heinrich Schuchardt
2020-11-05 8:05 ` Bin Meng
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.