[PATCH v2 0/4] QEMU spike machine support for U-Boot

Anup Patel anup at brainfault.org
Sun Feb 6 09:40:43 CET 2022


Hi Rick,

On Thu, Jan 27, 2022 at 11:41 AM Anup Patel <apatel at ventanamicro.com> wrote:
>
> We can use same U-Boot binary compiled using qemu-riscv64_smode_defconfig
> on QEMU virt machine and QEMU spike machine. To achieve this, we need HTIF
> console support for U-Boot QEMU RISC-V board hence this series.
>
> To test this series with latest OpenSBI, we can use the following command:
> qemu-system-riscv64 -M spike -m 256M -display none -serial stdio \
> -bios opensbi/build/platform/generic/firmware/fw_jump.bin -kernel \
> ./u-boot/u-boot.bin
>
> These patch can be found in qemu_riscv_htif_v2 branch at:
> https://github.com/avpatel/u-boot.git
>
> Changes since v1:
>  - Use ofnode_by_compatible() in PATCH3
>  - Updated QEMU RISC-V documentation in PATCH4
>
> Anup Patel (4):
>   serial: Add RISC-V HTIF console driver
>   riscv: qemu: Enable HTIF console support
>   riscv: qemu: Implement is_flash_available() for MTD NOR
>   doc: qemu-riscv: Update documentation for QEMU spike machine

Can this series be considered for the upcoming v2022.04 release ?

Best Regards,
Anup

>
>  board/emulation/qemu-riscv/Kconfig      |   1 +
>  board/emulation/qemu-riscv/qemu-riscv.c |  12 ++
>  doc/board/emulation/qemu-riscv.rst      |  48 ++++---
>  drivers/serial/Kconfig                  |   8 ++
>  drivers/serial/Makefile                 |   1 +
>  drivers/serial/serial_htif.c            | 178 ++++++++++++++++++++++++
>  6 files changed, 232 insertions(+), 16 deletions(-)
>  create mode 100644 drivers/serial/serial_htif.c
>
> --
> 2.25.1
>


More information about the U-Boot mailing list