You've already forked documentation
mirror of
https://github.com/Dasharo/documentation.git
synced 2026-03-06 15:26:51 -08:00
f7e97417f5
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>
62 lines
2.4 KiB
ReStructuredText
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
|