Skip to content

Commit

Permalink
Enhance Documentation: Clarifications and Helpers for Graphical Booti…
Browse files Browse the repository at this point in the history
…ng in QEMU

Signed-off-by: Camila Macedo <[email protected]>
  • Loading branch information
camilamacedo86 authored and Camila Macedo committed Oct 2, 2023
1 parent 288bd30 commit 4361346
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
4 changes: 3 additions & 1 deletion source/reference-manual/linux/linux-distro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ LmP MFGTools

The distro used to generate the ``mfgtool-files`` artifacts which provide the deploy and update tool for some machines (i.MX family).

.. _ref-lmp-wayland-xwayland:

LmP Wayland and LmP XWayland
****************************
*********************************

The distros which provide Wayland and XWayland support on top of ``lmp`` distro.

Expand Down
34 changes: 33 additions & 1 deletion source/reference-manual/qemu/qemu-instructions.template
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,18 @@ Booting in QEMU
Booting Graphically
-------------------

In order to boot QEMU with an OpenGL capable virtual GPU (required for Wayland/Weston), add the following flags to the QEMU CLI:
This section shows a general guideline to boot QEMU with an OpenGL capable virtual GPU (required for Wayland/Weston).
To check the available options in your system use the flag ``-display help``, i.e.:

.. parsed-literal::
$ qemu-system-aarch64 -display help
Available display backend types:
none
curses
cocoa
dbus

In general, adding the following flags to the QEMU CLI should work:

.. tabs::

Expand All @@ -111,7 +122,28 @@ In order to boot QEMU with an OpenGL capable virtual GPU (required for Wayland/W

|QEMU_GUI_FLAGS_MAC|

.. note::

You can utilize the option ``-display default``
It attempts to use the default display type corresponding to the operating system on which you are running the command.

.. note::

Do not copy the ``-nographic`` flag at the end of the QEMU CLI below.

.. important::

Specifying display options in QEMU doesn't make console-only images graphical. It just opens a potential graphical
output window. Interaction is mainly text-based. Only ``DISTRO=lmp-xwayland`` or ``DISTRO=lmp-wayland``
images have graphical interfaces.

If you are following :ref:`gs-flash-device` and downloading the console image, it won't boot with a
graphical interface. See :ref:`LmP Wayland and LmP XWayland <ref-lmp-wayland-xwayland>` to build a new
target image. Also, ensure that you download the image with the interface, which usually is
prefixed with ``lmp-factory-image``.

.. important::

Compatibility of the display options may vary, and not all options are supported on every host OS.
Refer to the `QEMU Documentation <https://www.qemu.org/>`_ for more advanced configurations and options.

0 comments on commit 4361346

Please sign in to comment.