[PATCH 0/1] virtio: add driver for virtio_console devices

Bin Meng bmeng.cn at gmail.com
Fri Jun 9 11:27:31 CEST 2023


Hi,

On Tue, Jun 6, 2023 at 9:26 PM Ying-Chun Liu (PaulLiu)
<paulliu at debian.org> wrote:
>
> This is an implementation of single-character virtio-console. Part of the
> patch is based on barebox implementations.
>
> To test the patch, we can build qemu_arm64_defconfig target. Enable
> CONFIG_VIRTIO_CONSOLE. And run qemu-system-aarch64 with
>  -device virtio-serial-pci,id=virtio-serial0 \
>  -chardev file,id=charconsole0,path=/tmp/serialconsolelog \
>  -device virtconsole,chardev=charconsole0,id=console0 \
>

With this command, it still uses the on-board UART but not
virtio-console. Would you please post test instructions on using
virtio-console as the U-Boot serial console? Thanks!

> When in U-boot console, type "dm tree" and we should be able to see the
> virtio-console device.
>
> A. Cody Schuffelen (1):
>   virtio: add driver for virtio_console devices
>
>  drivers/virtio/Kconfig          |   8 ++
>  drivers/virtio/Makefile         |   1 +
>  drivers/virtio/virtio-uclass.c  |   1 +
>  drivers/virtio/virtio_console.c | 158 ++++++++++++++++++++++++++++++++
>  include/virtio.h                |   2 +
>  5 files changed, 170 insertions(+)
>  create mode 100644 drivers/virtio/virtio_console.c
>
> --

Regards,
Bin


More information about the U-Boot mailing list