From 526082860aa49028eb16b216814a5df54763a197 Mon Sep 17 00:00:00 2001 From: Shengwen Cheng Date: Thu, 25 Jan 2024 16:30:48 +0800 Subject: [PATCH] README.md: Add virtio-gpu related information --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 314881e..b695d89 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,10 @@ A minimalist RISC-V system emulator capable of running Linux the kernel and corr - UART: 8250/16550 - PLIC (platform-level interrupt controller): 32 interrupts, no priority - Standard SBI, with the timer extension -- VirtIO: virtio-blk acquires disk image from the host, and virtio-net is mapped as TAP interface +- VirtIO: + - virtio-net: Mapped with TAP interface to the host + - virtio-blk: Acquires disk image from the host to the guest + - virtio-gpu: Currently supports 2D rendering mode with SDL as front-end ## Prerequisites @@ -24,6 +27,14 @@ For macOS, use the following command: $ brew install dtc ``` +SDL2 and Pixman are required for enabling virtio-gpu. +To install them on Debian/Ubuntu Linux, enter the following command: + +```shell +sudo apt install libsdl2-dev libsdl2-2.0-0 libsdl2-image-dev \ + libsdl2-image-2.0-0 libpixman-1-dev +``` + For demonstration purposes, ext4 is used for file system mounting. `ext4` is a native Linux filesystem, offering stability, high capacity, reliability, and performance while requiring minimal maintenance. The `mkfs.ext4` command can