mirror of
https://github.com/qemu/qemu.git
synced 2025-09-28 02:24:42 +00:00

Sphinx supports the :kbd: role for notating keyboard input. They get formatted as <kbd> HTML elements in the readthedocs theme we currently use for Sphinx. Besides the better visual formatting, it also helps with accessibility as screen readers can announce the semantics of the <kbd> element to the user. Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Message-ID: <20250709-docs_rst_improvements-v2-1-cb5096ad0022@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-ID: <20250710104531.3099313-7-alex.bennee@linaro.org>
31 lines
981 B
ReStructuredText
31 lines
981 B
ReStructuredText
.. _direct_005flinux_005fboot:
|
|
|
|
Direct Linux Boot
|
|
-----------------
|
|
|
|
This section explains how to launch a Linux kernel inside QEMU without
|
|
having to make a full bootable image. It is very useful for fast Linux
|
|
kernel testing.
|
|
|
|
The syntax is:
|
|
|
|
.. parsed-literal::
|
|
|
|
|qemu_system| -kernel bzImage -drive file=rootdisk.img,format=raw -append "root=/dev/sda"
|
|
|
|
Use ``-kernel`` to provide the Linux kernel image and ``-append`` to
|
|
give the kernel command line arguments. The ``-initrd`` option can be
|
|
used to provide an INITRD image.
|
|
|
|
If you do not need graphical output, you can disable it and redirect the
|
|
virtual serial port and the QEMU monitor to the console with the
|
|
``-nographic`` option. The typical command line is:
|
|
|
|
.. parsed-literal::
|
|
|
|
|qemu_system| -kernel bzImage -drive file=rootdisk.img,format=raw \
|
|
-append "root=/dev/sda console=ttyS0" -nographic
|
|
|
|
Use :kbd:`Ctrl+a c` to switch between the serial console and the monitor (see
|
|
:ref:`GUI_keys`).
|