All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] QEMU spike machine support for U-Boot
@ 2022-01-14 16:20 Anup Patel
  2022-01-14 16:20 ` [PATCH 1/3] serial: Add RISC-V HTIF console driver Anup Patel
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Anup Patel @ 2022-01-14 16:20 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_v1 branch at:
https://github.com/avpatel/u-boot.git

Anup Patel (3):
  serial: Add RISC-V HTIF console driver
  riscv: qemu: Enable HTIF console support
  riscv: qemu: Implement is_flash_available() for MTD NOR

 board/emulation/qemu-riscv/Kconfig      |   1 +
 board/emulation/qemu-riscv/qemu-riscv.c |  17 +++
 drivers/serial/Kconfig                  |   8 ++
 drivers/serial/Makefile                 |   1 +
 drivers/serial/serial_htif.c            | 178 ++++++++++++++++++++++++
 5 files changed, 205 insertions(+)
 create mode 100644 drivers/serial/serial_htif.c

-- 
2.25.1


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

end of thread, other threads:[~2022-01-25 11:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 16:20 [PATCH 0/3] QEMU spike machine support for U-Boot Anup Patel
2022-01-14 16:20 ` [PATCH 1/3] serial: Add RISC-V HTIF console driver Anup Patel
     [not found]   ` <HK0PR03MB2994046A80E42E46BC77050EC15F9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-01-25  1:14     ` Rick Chen
2022-01-25  4:52   ` Bin Meng
2022-01-25  6:00     ` Anup Patel
2022-01-25  9:16       ` Bin Meng
2022-01-25 11:31         ` Anup Patel
2022-01-14 16:20 ` [PATCH 2/3] riscv: qemu: Enable HTIF console support Anup Patel
     [not found]   ` <HK0PR03MB299495170A039FA84DE6AA7CC15F9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-01-25  1:16     ` Rick Chen
2022-01-14 16:20 ` [PATCH 3/3] riscv: qemu: Implement is_flash_available() for MTD NOR Anup Patel
     [not found]   ` <HK0PR03MB2994115F103502B3A46F7D38C15F9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-01-25  1:18     ` Rick Chen
2022-01-25  5:03   ` Bin Meng
2022-01-25  6:02     ` Anup Patel
2022-01-25  9:46       ` Bin Meng
2022-01-25 11:32         ` Anup Patel
2022-01-18 10:10 ` [PATCH 0/3] QEMU spike machine support for U-Boot Bin Meng
2022-01-18 10:56   ` Anup Patel
2022-01-25  5:10     ` Bin Meng
2022-01-25  6:03       ` Anup Patel

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.