All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] QEMU spike machine support for U-Boot
@ 2022-01-27  6:11 Anup Patel
  2022-01-27  6:11 ` [PATCH v2 1/4] serial: Add RISC-V HTIF console driver Anup Patel
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Anup Patel @ 2022-01-27  6:11 UTC (permalink / raw)
  To: Rick Chen, Bin Meng
  Cc: Atish Patra, Alistair Francis, Anup Patel, U-Boot Mailing List,
	Anup Patel

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

-- 
2.25.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-02-07  6:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-27  6:11 [PATCH v2 0/4] QEMU spike machine support for U-Boot Anup Patel
2022-01-27  6:11 ` [PATCH v2 1/4] serial: Add RISC-V HTIF console driver Anup Patel
2022-01-28 14:13   ` Bin Meng
2022-01-27  6:11 ` [PATCH v2 2/4] riscv: qemu: Enable HTIF console support Anup Patel
2022-01-28 12:36   ` Bin Meng
2022-01-27  6:11 ` [PATCH v2 3/4] riscv: qemu: Implement is_flash_available() for MTD NOR Anup Patel
2022-01-28  7:31   ` Bin Meng
2022-02-06 10:00   ` Heinrich Schuchardt
2022-01-27  6:11 ` [PATCH v2 4/4] doc: qemu-riscv: Update documentation for QEMU spike machine Anup Patel
2022-01-28  7:18   ` Bin Meng
2022-02-06  8:40 ` [PATCH v2 0/4] QEMU spike machine support for U-Boot Anup Patel
     [not found]   ` <HK0PR03MB2994AD37D80D204D94463A57C12C9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-02-07  6:10     ` Rick Chen

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.