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

Ying-Chun Liu (PaulLiu) paulliu at debian.org
Tue Jun 6 15:25:39 CEST 2023


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 \

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

-- 
2.39.2



More information about the U-Boot mailing list