Files
documentation/source/tutorials/ex_sbl_shell_cli.rst
T
Aiden Park f7e97417f5 Add a tutorial page for Debugging SBL on QEMU with GDB (#55)
This page is to provide basic GDB usage on QEMU target
for better understanding SBL flow.
- Prepare SBL QEMU image
- Prepare GDB helper scripts
- Launch QEMU target
- Launch GDB
- Transit Stage1A to Stage1B
- Transit Stage1B to Stage2
- Transit Stage2 to OsLoader

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-10-01 09:30:11 -07:00

62 lines
2.4 KiB
ReStructuredText

.. _ExerciseSblShellCli:
Exercise \\- \ SBL Shell/CLI
------------------------------
.. note::
**In this exercise, we'll learn how to execute SBL Shell Commands.**
* Used ``help<ENTER>`` to list the available commands
You can execute |SPN| with the following steps:
1. Working on Command Prompt
2. Execute cmd on Shell by type-in:
+------------+------------------------------------------------+
| **exit** | \\- \ Exit the shell |
+------------+------------------------------------------------+
| **help** | \\- \ List supported commands |
+------------+------------------------------------------------+
| **hob** | \\- \ List HOBs |
+------------+------------------------------------------------+
| **mem** | \\- \ Read or write system memory |
+------------+------------------------------------------------+
| **mmap** | \\- \ Display memory map |
+------------+------------------------------------------------+
| **perf** | \\- \ Display performance data |
+------------+------------------------------------------------+
| **boot** | \\- \ Print or modify the OS boot option list |
+------------+------------------------------------------------+
| **cpuid** | \\- \ Read CPU specific information |
+------------+------------------------------------------------+
| **io** | \\- \ Read or write I/O ports |
+------------+------------------------------------------------+
| **msr** | \\- \ Read or write model specific registers |
+------------+------------------------------------------------+
| **mtrr** | \\- \ Display current MTRR configuration |
+------------+------------------------------------------------+
| **pci** | \\- \ Display PCI devices (example) |
+------------+------------------------------------------------+
| **reset** | \\- \ Reset the system |
+------------+------------------------------------------------+
| **ucode** | \\- \ Display microcode version |
+------------+------------------------------------------------+
**Example**::
pci - Display PCI devices
.. image:: /images/ex3.jpg
:alt: Compile completed
:align: center
.. tip::
Exit Shell by close QEMU