On Sat, Jan 15, 2022 at 12:20 AM Anup Patel <apa...@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 \
I think you forgot to mention this needs an updated QEMU too, due to plain binary is now used for spike? > ./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 > Regards, Bin