Qemu sdhci-pci device can't be recognized by Linux kernel

2024-02-27 Thread Li, Yong
Hello, QEMU virt platform of RISCV-64 can emulate the mmc device by using below parameters: -device sdhci-pci,sd-spec-version=3 \ -drive if=none,file=disk.img,format=raw,id=MMC1 \ -device sd-card,drive=MMC1 And as to u-boot, it do can recognize the mmc device and load the linux kernel from the

Re: [PATCH] hw/riscv/virt: Fix the boot logic if pflash0 is specified

2023-05-17 Thread Li, Yong
On 2023/5/17 10:27, Alistair Francis wrote: On Sun, Apr 23, 2023 at 11:39 PM Yong Li wrote: The firmware may be specified with -bios and the plfash0 device with option -drive if=pflash. If both options are applied, it is intented that the pflash0 will store the secure variable and the firmware

Re: [PATCH v3] hw/riscv/virt: Add a second UART for secure world

2023-05-07 Thread Li, Yong
Hi Alistair, Thanks for the information, what I'm doing is to implement the StandaloneMm and secure boot feature for RISC-V by following the ARM's way https://trustedfirmware-a.readthedocs.io/en/latest/components/secure-partition-manager-mm.html So here what I need from virt is actually the V

Re: [PATCH] hw/riscv/virt: Add a second UART for secure world

2023-04-24 Thread Li, Yong
On 2023/4/24 16:59, Peter Maydell wrote: On Mon, 24 Apr 2023 at 07:24, Yong Li wrote: The virt machine can have two UARTs and the second UART can be used when host secure-mode support is enabled. Do you mean "host" here, or "guest" ? Currently, it is an UEFI secure firmware residing in a se

Re: [PATCH] hw/riscv/virt: Add a second UART for secure world

2023-04-23 Thread Li, Yong
On 2023/4/24 10:42, LIU Zhiwei wrote: On 2023/4/24 9:01, Yong Li wrote: The virt machine can have two UARTs and the second UART can be used when host secure-mode support is enabled. Signed-off-by: Yong Li Cc: "Zhiwei Liu" Should  cc other Maintainers and Reviewers. Get the list by running