Skip to content

QEMU spike machine support for U-Boot

Anup Patel u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 7 repliesIn review
  2. v13 patches 15 repliesSuperseded

Changes in v2 from the cover letter

- Use ofnode_by_compatible() in PATCH3
- Updated QEMU RISC-V documentation in PATCH4

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4serial: Add RISC-V HTIF console driverdrivers/serial/Kconfig drivers/serial/Makefile drivers/serial/serial_htif.c+187 -01 reply
2/4riscv: qemu: Enable HTIF console supportboard/emulation/qemu-riscv/Kconfig+1 -01 reply
3/4riscv: qemu: Implement is_flash_available() for MTD NORboard/emulation/qemu-riscv/qemu-riscv.c+12 -02 replies
4/4doc: qemu-riscv: Update documentation for QEMU spike machinedoc/board/emulation/qemu-riscv.rst+32 -161 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchPhilipp TomsichRick ChenBin Meng
1/4R-b R-b T-b
2/4R-b R-b R-b T-b
3/4R-b R-b T-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

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

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

 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
Signature · 1 line
2.25.1