diff options
| author | Heinrich Schuchardt <[email protected]> | 2026-01-01 15:17:43 +0100 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2026-01-28 21:08:41 +0100 |
| commit | 86455a8e4b11f957bb5af4f75762ce8d599309f7 (patch) | |
| tree | f9d6d4f61042cca4c25cc12e3dbebe15965fbb05 | |
| parent | e8ec8d980a31c4a1d665e4aa9089d6aa27cb0d0b (diff) | |
doc: describe QEMU VGA emulation
Describe how the QEMU defconfigs can be used with an emulated GPU.
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Heinrich Schuchardt <[email protected]>
| -rw-r--r-- | doc/board/emulation/index.rst | 1 | ||||
| -rw-r--r-- | doc/board/emulation/video.rst | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/doc/board/emulation/index.rst b/doc/board/emulation/index.rst index 896f44c8087..b0139490e21 100644 --- a/doc/board/emulation/index.rst +++ b/doc/board/emulation/index.rst @@ -9,6 +9,7 @@ Emulation acpi blkdev network + video qemu-arm qemu-mips qemu-ppce500 diff --git a/doc/board/emulation/video.rst b/doc/board/emulation/video.rst new file mode 100644 index 00000000000..c144d724f51 --- /dev/null +++ b/doc/board/emulation/video.rst @@ -0,0 +1,63 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +Emulation of a graphics adapter +=============================== + +Currently QEMU's ``bochs-display`` is the only emulated GPU that U-Boot's +generic QEMU defconfigs support. It emulates a PCIe-connected graphics card +with VESA 2.0 VBE extensions. + +The following parameters can be specified: + +edid + controls whether EDID information is available. Allowable values are + ``off`` and ``on``. The default is ``on``. + +vgamem + specifies the display memory size. The default value is 16 MiB. + For UHD resolution 32 MiB is required. + +The following configuration parameters are relevant: + +CONFIG_VIDEO_BOCHS + enable support for the Bochs GPU. + +CONFIG_VIDEO_BOCHS_SIZE_X + defines the display width. + +CONFIG_VIDEO_BOCHS_SIZE_Y + defines the display height. + +CONFIG_VIDEO_PCI_DEFAULT_FB_SIZE + sets the framebuffer size that QEMU can use for a device driver that is + enabled after relocation. This should be chosen as + + .. code-block:: + + CONFIG_VIDEO_PCI_DEFAULT_FB_SIZE >= + 4 * CONFIG_VIDEO_BOCHS_SIZE_X * CONFIG_VIDEO_BOCHS_SIZE_Y + +Here is an example QEMU invocation for qemu-riscv64_smode_defconfig: + +.. code-block:: bash + + qemu-system-riscv64 \ + -M virt \ + -device bochs-display,vgamem=33554432 \ + -serial mon:stdio \ + -device qemu-xhci \ + -device usb-kbd \ + -kernel u-boot + +``mon:stdio`` provides a serial console, ``qemu-xhci`` a USB root hub, +``usb-kbd`` a USB keyboard. + +To start QEMU without GPU emulation, use parameter ``-nographic``, as shown in +the following example: + +.. code-block:: bash + + qemu-system-riscv64 \ + -M virt \ + -nographic \ + -kernel u-boot |
