[PATCH v2 9/9] qemu: riscv: Enable UFS support

Neha Malcom Francis n-francis at ti.com
Thu Nov 23 05:48:57 CET 2023


Hi Bin

On 11/10/23 18:45, Bin Meng wrote:
> This enables UFS support for QEMU RISC-V 'virt' machine.
> 
> Signed-off-by: Bin Meng <bmeng at tinylab.org>
> 
> ---
> 
> (no changes since v1)
> 
>   board/emulation/qemu-riscv/Kconfig | 2 ++
>   doc/board/emulation/qemu-riscv.rst | 8 +++++++-
>   2 files changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/board/emulation/qemu-riscv/Kconfig b/board/emulation/qemu-riscv/Kconfig
> index d56b4b5bc1..f3ee1f6e90 100644
> --- a/board/emulation/qemu-riscv/Kconfig
> +++ b/board/emulation/qemu-riscv/Kconfig
> @@ -82,5 +82,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
>   	imply USB_XHCI_PCI
>   	imply USB_KEYBOARD
>   	imply CMD_USB
> +	imply UFS
> +	imply UFS_PCI
>   
>   endif
> diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/emulation/qemu-riscv.rst
> index 61137bcbf1..8a5eb1eda5 100644
> --- a/doc/board/emulation/qemu-riscv.rst
> +++ b/doc/board/emulation/qemu-riscv.rst
> @@ -131,7 +131,13 @@ An attached disk can be emulated in RISC-V virt machine by adding::
>       -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.
> +or alternatively attach an emulated UFS::
> +
> +    -device ufs,id=ufs0 \
> +    -drive if=none,file=test.img,format=raw,id=lun0 \
> +    -device ufs-lu,drive=lun0,bus=ufs0
> +
> +You will have to run 'scsi scan' to use them.
>   
>   A video console can be emulated in RISC-V virt machine by removing "-nographic"
>   and adding::

Reviewed-by: Neha Malcom Francis <n-francis at ti.com>

-- 
Thanking You
Neha Malcom Francis


More information about the U-Boot mailing list